Exchange Order Book Depth
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/exchange/depthimport requests
url = "https://api.asksurf.ai/gateway/v1/exchange/depth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/exchange/depth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"ask_depth": 123,
"asks": [
{
"amount": 123,
"price": 123
}
],
"bid_depth": 123,
"bids": [
{
"amount": 123,
"price": 123
}
],
"exchange": "<string>",
"mid_price": 123,
"pair": "<string>",
"spread": 123,
"spread_pct": 123
}
],
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/SimpleListResponseExchangeDepthItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}Exchange
Order Book Depth
GET
/
gateway
/
v1
/
exchange
/
depth
Exchange Order Book Depth
curl --request GET \
--url https://api.asksurf.ai/gateway/v1/exchange/depthimport requests
url = "https://api.asksurf.ai/gateway/v1/exchange/depth"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.asksurf.ai/gateway/v1/exchange/depth', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"ask_depth": 123,
"asks": [
{
"amount": 123,
"price": 123
}
],
"bid_depth": 123,
"bids": [
{
"amount": 123,
"price": 123
}
],
"exchange": "<string>",
"mid_price": 123,
"pair": "<string>",
"spread": 123,
"spread_pct": 123
}
],
"meta": {
"cached": true,
"credits_used": 123
},
"$schema": "https://example.com/schemas/SimpleListResponseExchangeDepthItem.json"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"$schema": "https://example.com/schemas/DataAPIError.json"
}