Observe ledger movements
Subscribe to a stream of transfer responses
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": {
"ledgerMovement": {
"balances": [
{
"account": {
"assetId": "string",
"marketId": "string",
"owner": "string",
"type": "ACCOUNT_TYPE_UNSPECIFIED"
},
"balance": "string"
}
],
"entries": [
{
"amount": "string",
"fromAccount": {
"assetId": "string",
"marketId": "string",
"owner": "string",
"type": "ACCOUNT_TYPE_UNSPECIFIED"
},
"fromAccountBalance": "string",
"timestamp": "string",
"toAccount": {
"assetId": "string",
"marketId": "string",
"owner": "string",
"type": "ACCOUNT_TYPE_UNSPECIFIED"
},
"toAccountBalance": "string",
"type": "TRANSFER_TYPE_UNSPECIFIED"
}
]
}
}
}
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"
}
GET /api/v2/stream/ledger/movements
Request
Request
curl / cURL
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/stream/ledger/movements' \
-H 'Accept: application/json'
python / requests
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/stream/ledger/movements' \
-H 'Accept: application/json'
go / native
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/stream/ledger/movements' \
-H 'Accept: application/json'
nodejs / axios
curl -L -X GET 'https://vega-data.nodes.guru:3008/api/v2/stream/ledger/movements' \
-H 'Accept: application/json'