Unsubscribe Stats
Stops receiving stats updates for the specified account and subaccount
Unsubscribe from stats updates (requires authentication)#
Stops receiving stats updates for the specified account and subaccount
Request to unsubscribe from stats updates
Parameters
sourcestringMust be 'stats'
accountstringEthereum address of the account (must match subscription)
subaccountIndicesarrayArray of subaccount indices. Must match the subscription (same indices; order does not matter). Use [] if unsubscribing from an "all subaccounts" subscription.
{
"jsonrpc": "2.0",
"method": "unsubscribe",
"params": {
"source": "stats",
"account": "0xe1c03ec3bcf509b3e8e63abcd03edc661ffe6a78",
"subaccountIndices": [
0
]
},
"id": 18
}Success response for unsubscribe requests
Parameters
message?stringSuccess message
{
"jsonrpc": "2.0",
"result": {
"message": "Unsubscribed from channel"
},
"usIn": 1234567890123,
"usOut": 1234567890456,
"usDiff": 333,
"id": 10
}Error response for failed requests
Parameters
jsonrpcstringJSON-RPC version
errorobjectusInintegerRequest received timestamp in milliseconds
usOutintegerResponse sent timestamp in milliseconds
usDiffintegerProcessing time in milliseconds
id?string | integer | nullRequest identifier (if provided in request, otherwise null)
{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid subscription params"
},
"usIn": 1234567890123,
"usOut": 1234567890456,
"usDiff": 333,
"id": 2
}Unsubscribe Fill
Stops receiving fill updates for the specified account, subaccount, and symbol
Subscribe Transfer
Subscribe to real-time account transfer updates (deposits, withdrawals, transfers, fees, etc.) for GET account/transfers. Uses the Spacetime account_transfers table. Requires account and subaccount index.