unsubscribeOrders
The unsubscribeOrders
method sends a JSON‑RPC request to cancel an existing subscription for order updates. It uses the subscription ID returned by a subscribeOrders
call.
Parameters
Parameter | Type | Description |
---|---|---|
subscriptionID | number | The subscription ID obtained from a previous subscribeOrders call. |
Example
wscat -c ws://<ANGSTROM_URL>:<ANGSTROM_PORT>
> {"jsonrpc": "2.0", "id": 0, "method": "angstrom_subscribeOrders", "params": [["newOrders"],["none"]]}
< { "jsonrpc": "2.0", "id": 0, "result": 5439762351020376 }
...
> {"jsonrpc": "2.0", "id": 2, "method": "angstrom_unsubscribeOrders", "params": [5439762351020376]}
< {"jsonrpc":"2.0", "id": 0, "result":true}