curl --request GET \
--url 'https://api.sandbox.services.payward.com/v1/orderbooks/perpetual/PBTCUCZ0.BTNL?country=US&depth=2' \
--header "API-Key: $PWS_API_KEY" \
--header "API-Timestamp: $PWS_API_TIMESTAMP" \
--header "API-Sign: $PWS_API_SIGN"
{
"data": {
"symbol": "PBTCUCZ0.BTNL",
"bids": [
{
"price": "82205",
"quantity": "10"
},
{
"price": "82200",
"quantity": "10"
}
],
"asks": [
{
"price": "83475",
"quantity": "10"
},
{
"price": "83480",
"quantity": "10"
}
]
}
}
Derivatives market data
Get order book
Get the order book for a specific instrument.
GET
/
v1
/
orderbooks
/
{asset_type}
/
{symbol}
curl --request GET \
--url 'https://api.sandbox.services.payward.com/v1/orderbooks/perpetual/PBTCUCZ0.BTNL?country=US&depth=2' \
--header "API-Key: $PWS_API_KEY" \
--header "API-Timestamp: $PWS_API_TIMESTAMP" \
--header "API-Sign: $PWS_API_SIGN"
{
"data": {
"symbol": "PBTCUCZ0.BTNL",
"bids": [
{
"price": "82205",
"quantity": "10"
},
{
"price": "82200",
"quantity": "10"
}
],
"asks": [
{
"price": "83475",
"quantity": "10"
},
{
"price": "83480",
"quantity": "10"
}
]
}
}
Authorizations
Path Parameters
Query Parameters
ISO 3166-1 alpha-2 country code used to select the derivatives offering. US and supported US territory codes, such as PR, select US Derivatives. Other countries select International/EEA Derivatives, subject to geographic restrictions.
Required string length:
2Pattern:
^[A-Z]{2}$Example:
"US"