Exchange Perpetual Contract Snapshot
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/exchange/perpimport requests
url = "https://api.asksurf.ai/gateway/v1/exchange/perp"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/exchange/perp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"exchange": "<string>",
"funding": {
"exchange": "<string>",
"funding_rate": 123,
"index_price": 123,
"interval": "<string>",
"mark_price": 123,
"next_funding": "<string>",
"pair": "<string>"
},
"open_interest": {
"exchange": "<string>",
"open_interest_amount": 123,
"open_interest_usd": 123,
"pair": "<string>",
"timestamp": 123
},
"pair": "<string>"
},
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/DataObjectResponseExchangePerpResponse.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Exchange
Perpetual Contract Snapshot
GET
/
gateway
/
v1
/
exchange
/
perp
Exchange Perpetual Contract Snapshot
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/exchange/perpimport requests
url = "https://api.asksurf.ai/gateway/v1/exchange/perp"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/exchange/perp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"exchange": "<string>",
"funding": {
"exchange": "<string>",
"funding_rate": 123,
"index_price": 123,
"interval": "<string>",
"mark_price": 123,
"next_funding": "<string>",
"pair": "<string>"
},
"open_interest": {
"exchange": "<string>",
"open_interest_amount": 123,
"open_interest_usd": 123,
"pair": "<string>",
"timestamp": 123
},
"pair": "<string>"
},
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/DataObjectResponseExchangePerpResponse.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}