cURL
curl --request GET \ --url https://test.deribit.com/api/v2/private/get_open_orders_by_label \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": 1953, "method": "private/get_open_orders_by_label", "params": { "currency": "BTC", "label": "fooBar" } } '
{ "jsonrpc": "2.0", "id": 1953, "result": [ { "time_in_force": "good_til_cancelled", "reduce_only": false, "price": 0.0028, "post_only": false, "order_type": "limit", "order_state": "open", "order_id": "146062", "max_show": 10, "last_update_timestamp": 1550050597036, "label": "fooBar", "is_rebalance": false, "is_liquidation": false, "instrument_name": "BTC-15FEB19-3250-P", "filled_amount": 0, "direction": "buy", "creation_timestamp": 1550050597036, "average_price": 0, "api": true, "amount": 10 } ] }
Retrieves list of user’s open orders for given currency and label.
Scope: trade:read
trade:read
Try in API console
The currency symbol Currency, i.e "BTC", "ETH", "USDC"
"BTC"
"ETH"
"USDC"
BTC
ETH
USDC
USDT
EURR
user defined label for the order (maximum 64 characters)
Success response
The JSON-RPC version (2.0)
2.0
Show child attributes
The id that was sent in the request
Was this page helpful?