Observe markets depth
GEThttps://api.n00.testnet.vega.rocks/api/v2/stream/markets/depth
Subscribe to a stream of the latest market depth for a given market
Request
Query Parameters
marketIds string[]
Restrict market depth data by the given market IDs.
Responses
- 200
- 500
- default
A successful response.(streaming responses)
- application/json
- Schema
- Example (from schema)
Schema
error object
result object
{
"error": {
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
},
"result": {
"marketDepth": [
{
"buy": [
{
"ammVolume": "string",
"ammVolumeEstimated": "string",
"numberOfOrders": "string",
"price": "string",
"volume": "string"
}
],
"marketId": "string",
"sell": [
{
"ammVolume": "string",
"ammVolumeEstimated": "string",
"numberOfOrders": "string",
"price": "string",
"volume": "string"
}
],
"sequenceNumber": "string"
}
]
}
}
An internal server error
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
- curl
- python
- go
- nodejs
- CURL
curl -L -X GET 'https://api.n00.testnet.vega.rocks/api/v2/stream/markets/depth' \
-H 'Accept: application/json'