Order Book
GET
https://api.onetrading.com/fast/v1/order-book/{instrument_code}
public
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.onetrading.com/fast/v1/order-book/?level=1&depth=16'
Response Response Example
200 - Success
{
"asks": [
{
"price": "100000",
"amount": "6"
}
],
"bids": [
{
"price": "10000",
"amount": "6"
}
]
}
Request
Path Params
instrument_code
string
required
Query Params
level
enum<string>
deprecated
Level 2 = Compiled order book up to market precision
Level 3 = Full order book
Allowed values:
123
Default:
3
Example:
1
depth
enum<string>
optional
Allowed values:
124816
Default:
16
Example:
16