Observe markets depth
Subscribe to a stream of the latest market depth for a given market
Query Parameters
marketIds string[]
List of market IDs to be obtained in the subscription.
Responses
- 200
- 500
- default
A successful response.(streaming responses)
application/json
Schema
Example (from schema)
Schema
error object
code int32
details object[]
@type string
message string
result object
Response that is received for MarketDepth subscription.
marketDepth object[]
List of market depth data.
buy object[]
Collection of price levels for the buy side of the book.
numberOfOrders uint64
price string
volume uint64
marketId string
sell object[]
Collection of price levels for the sell side of the book.
numberOfOrders uint64
price string
volume uint64
sequenceNumber uint64
{
"error": {
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
},
"result": {
"marketDepth": [
{
"buy": [
{
"numberOfOrders": "string",
"price": "string",
"volume": "string"
}
],
"marketId": "string",
"sell": [
{
"numberOfOrders": "string",
"price": "string",
"volume": "string"
}
],
"sequenceNumber": "string"
}
]
}
}
An internal server error
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
@type string
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
@type string
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
Loading...