Get All Currency Pairs
GET https://api.sfox.com/v1/markets/currency-pairs
Retrieve a list of currency pairs available to trade in your account.
Response Body
Each trading pair is represented as a key-value object where the key is the lowercase concatenated symbol (e.g., "btcusd") and contains detailed information about the trading pair. Each trading pair object contains the following fields:
formatted_symbol
A human-readable representation of the trading pair using standard notation (e.g., "BTC/USD").
Format: "{BASE}/{QUOTE}" with uppercase symbols.
symbol
The lowercase concatenated version of the trading pair used as an identifier (e.g., "btcusd").
Format: lowercase "{base}{quote}".
base
The base currency of the trading pair (e.g., "btc").
quote
The quote currency of the trading pair (e.g., "usd")
Responses
Example Requests
curl -H 'Authorization: Bearer <API_TOKEN>' \
-H 'Content-Type: application/json' \
-X GET \
'https://api.sfox.com/v1/markets/currency-pairs'const axios = require('axios');
axios({
method: 'get',
url: 'https://api.sfox.com/v1/markets/currency-pairs',
headers: {
'Authorization': 'Bearer <API_KEY>'
}
}).then(response => {
console.log(response)
}).catch(err => {
console.error(err)
});import requests
data = requests.get(
"https://api.sfox.com/v1/markets/currency-pairs",
headers={
"Authorization": "Bearer <API_KEY>",
}
)
print(data)Last updated