Get market data snapshot
curl --request GET \
--url https://api.anchorage-staging.com/v2/trading/marketdata \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/trading/marketdata"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/trading/marketdata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"timestamp": "2025-05-08T16:17:01.863332Z",
"symbol": "BTC-USD",
"spread": "0.001",
"sizeBuckets": [
"1",
"5",
"10"
],
"bids": [
{
"price": "101022.85",
"size": "1.00000000"
},
{
"price": "101003.14",
"size": "5.00000000"
},
{
"price": "100998.21",
"size": "10.00000000"
}
],
"offers": [
{
"price": "101253.98",
"size": "1.00000000"
},
{
"price": "101253.98",
"size": "5.00000000"
},
{
"price": "101253.98",
"size": "10.00000000"
}
],
"amountBuckets": []
}
]
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Get market data snapshot
Permissions required: Execute trades or Read trade activity
Get real-time market data snapshot for a trading symbol from the liquidity provider.
GET
/
trading
/
marketdata
Get market data snapshot
curl --request GET \
--url https://api.anchorage-staging.com/v2/trading/marketdata \
--header 'Api-Access-Key: <api-key>'import requests
url = "https://api.anchorage-staging.com/v2/trading/marketdata"
headers = {"Api-Access-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Access-Key': '<api-key>'}};
fetch('https://api.anchorage-staging.com/v2/trading/marketdata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"timestamp": "2025-05-08T16:17:01.863332Z",
"symbol": "BTC-USD",
"spread": "0.001",
"sizeBuckets": [
"1",
"5",
"10"
],
"bids": [
{
"price": "101022.85",
"size": "1.00000000"
},
{
"price": "101003.14",
"size": "5.00000000"
},
{
"price": "100998.21",
"size": "10.00000000"
}
],
"offers": [
{
"price": "101253.98",
"size": "1.00000000"
},
{
"price": "101253.98",
"size": "5.00000000"
},
{
"price": "101253.98",
"size": "10.00000000"
}
],
"amountBuckets": []
}
]
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}{
"errorType": "InternalError",
"message": "Missing required field 'amount'."
}Query Parameters
Was this page helpful?