GET
https://api.cryptohopper.com/v1/exchange/portal/map
Returns, for every live exchange, its market data portal key and a map between Cryptohopper market pairs and portal market pairs. Exchanges that are not on the portal get an empty key and an empty map.
No access token needed.
Example request
curl "https://api.cryptohopper.com/v1/exchange/portal/map" \
-H "access-token: YOUR_ACCESS_TOKEN"
const response = await fetch('https://api.cryptohopper.com/v1/exchange/portal/map', {
method: 'GET',
headers: {
"access-token": "YOUR_ACCESS_TOKEN"
}
});
const data = await response.json();
import requests
response = requests.get(
"https://api.cryptohopper.com/v1/exchange/portal/map",
headers={
"access-token": "YOUR_ACCESS_TOKEN"
},
)
data = response.json()
$ch = curl_init('https://api.cryptohopper.com/v1/exchange/portal/map');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'access-token: YOUR_ACCESS_TOKEN',
],
]);
$data = json_decode(curl_exec($ch), true);
Parameters
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
key |
string | Optional | Set to portal to key each market map by the portal pair. Any other value, or none, keys it by the Cryptohopper pair. |
Response
{
"data": {
"exchange_keys": {
"crypto": "cryptocom",
"binance": ""
},
"market_mapping": {
"crypto": {
"BTC/USDT": {
"ch_pair": "BTC/USDT",
"portal_pair": "BTC/USDT",
"base": "BTC",
"quote": "USDT"
}
},
"binance": []
}
}
}