Observe liquidity provisions
GEThttps://api.n00.testnet.vega.rocks/api/v2/stream/liquidity-provisions
Subscribe to a stream of liquidity provision events for a given market and party
Request
Query Parameters
marketId string
Target market to observe for liquidity provisions.
partyId string
Target party to observe for submitted liquidity provisions.
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": {
"liquidityProvisions": [
{
"buys": [
{
"liquidityOrder": {
"offset": "string",
"proportion": 0,
"reference": "PEGGED_REFERENCE_UNSPECIFIED"
},
"orderId": "string"
}
],
"commitmentAmount": "string",
"createdAt": "string",
"fee": "string",
"id": "string",
"marketId": "string",
"partyId": "string",
"reference": "string",
"sells": [
{
"liquidityOrder": {
"offset": "string",
"proportion": 0,
"reference": "PEGGED_REFERENCE_UNSPECIFIED"
},
"orderId": "string"
}
],
"status": "STATUS_UNSPECIFIED",
"updatedAt": "string",
"version": "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/liquidity-provisions' \
-H 'Accept: application/json'