GET
https://api.sfox.com/v1/currency-pairs
Retrieve a list of currency pairs you can trade in your account.
Responses
200
{
"btcusd": {
"formatted_symbol": "BTC/USD",
"symbol": "btcusd",
"base": "btc",
"quote": "usd"
},
"ethbtc": {
"formatted_symbol": "ETH/BTC",
"symbol": "ethbtc",
"base": "eth",
"quote": "btc"
},
"ltcbtc": {
"formatted_symbol": "LTC/BTC",
"symbol": "ltcbtc",
"base": "ltc",
"quote": "btc"
}
}
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