GET Orderbook
RFQ liquidity being super efficient, often moves rapidly to meet the market mid-price.
Therefore it is common for one side of the liquidity to be depleted completely. Or, the available liquidity switches from one direction to the opposite.
Whenever a trading direction has insufficient liquidity, the entire orderbook object (unique in base+quote addresses) will be removed completely from the endpoint. In such cases, quoting on this particular pair/direction is no longer available.
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
500
There was an exception with the server
get
/v1/orderbookGET /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