GET Orderbook
Response notes:
Each level is
[base_quantity, price]and is per-level, not cumulative. Prices are net of the fee configured for your API key.sideis alwaysbid: each item means sellingbaseforquote. The opposite direction is a separate item.minimum_in_baseis expressed in wei of the base token. Quotes below it fail with171055.Empty or expired books, and pairs not enabled for your API key, are omitted.
Optional params:
chain(name) orchainId(numeric), andshowNative(see Native Tokens Support).
Query parameters
chainstring · enumRequiredPossible values:
Blockchain name, eg: ethereum, arbitrum, ...
Header parameters
apiKeystringRequired
The API key that was assigned to you by Native
Responses
200
Success
application/json
base_addressstringRead-onlyRequired
quote_addressstringRead-onlyRequired
base_symbolstringRead-onlyRequired
quote_symbolstringRead-onlyRequired
levelsstring[]Read-onlyRequired
sidestringRead-onlyRequired
minimum_in_basenumberRead-onlyRequired
500
There was an exception with the server
get/v1/orderbook
GET /swap-api-v2/v1/orderbook?chain=ethereum HTTP/1.1
Host: v2.api.native.org
apiKey: text
Accept: */*
[
{
"base_address": "text",
"quote_address": "text",
"base_symbol": "text",
"quote_symbol": "text",
"levels": [
"text"
],
"side": "text",
"minimum_in_base": 1
}
]Last updated