API functions for Spot markets
Searches orders
GET /v1/depth
true
View Only
Request
Query parameters
Name | Located in | Description | Example | Required | Schema |
---|---|---|---|---|---|
market | query | trading market | "AVAX-USDC" | Yes | string |
depth | query | maximum number of results to return | 10 | No | integer |
Response
Name | Type | Description | Example | Required |
---|---|---|---|---|
asks | array of [price, size] tuples | best n asks in the market | [["21","1"],["22","1"],["23","1"]] | Yes |
bids | array of [price, size] tuples | best n bids in the market | [["20","1"],["19","1"],["18","1"]] | Yes |
{
"result": {
"asks": [["21.11", "1.74"],["21.13","0.23"]],
"bids": [["21.05","0.34"],["21.02","1.25"]]
},
"success": true
}
Gets fills that meet conditions
GET /v1/fills
true