Order Books
Get order books returns a full order book for a crypto pair from an exchange.
Get Order Books
GEThttps://api.adesic.com/v2/cex/{exchange}/{market}/orders
Returns a snapshot of the recent level 2 orderbook for a crypto pair on an exchange.
Path Parameters
| Name | Type | Description |
|---|---|---|
| exchange* | string | Unique exchange identifier used by Adesic. |
| market* | string | Unique Crypto Pair identifier used by the exchange. |
Query Parameters
| Name | Type | Description |
|---|---|---|
| apiKey* | string | Your Adesic API Key |
200: OK Success
success-response.js
{
"exchange":"coinbasepro",
"market":"BTC/USD",
"timestamp":14601360013,
"bids":
[
[
61947.91,
1.48088
],
[
61947.9,
0.5
],
[
61944.07,
0.44094
]
],
"asks":
[
[
61947.92,
2.28573
],
[
61952.89,
0.11214
],
[
61952.9,
0.50224
]
]
}Copy & Paste Code
cURL
curl-request.sh
curl -H "api-key: API KEY" https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/ordersResponse Object
Example URL: https://api.adesic.com/v2/cex/coinbasepro/BTC-USD/orders
response.json
{
"exchange":"coinbasepro",
"market":"BTC/USD",
"timestamp ":14601360013,
"bids":
[
[
61947.91,
1.48088
],
[
61947.9,
0.5
],
[
61944.07,
0.44094
]
],
"asks":
[
[
61947.92,
2.28573
],
[
61952.89,
0.11214
],
[
61952.9,
0.50224
]
]
}Response Attributes
| Attribute Name | Data Type | Description |
|---|---|---|
| exchange | string | The exchange id the order book is from. |
| market | string | The crypto pair the order book is about. |
| timestamp | integer | The unique timestamp identifier of the order book on the exchange. |
| bids | array | Arrays of bids in the market [[float, float], [float, float]] |
| asks | array | Arrays of asks in the market [[float, float], [float, float]] |