get_open_closed_orders
Retrieve open or closed orders by product type. Filter by symbol, order type, and limit. Get a unified view of active and recent order history for linear, inverse, spot, or option categories.
Instructions
Get open and/or closed orders (unified endpoint).
Args: category: Product type: linear, inverse, spot, option. symbol: Filter by symbol (optional). open_only: 0: open orders only (default), 1: recent 500 closed orders. order_filter: Filter: Order, StopOrder, tpslOrder, OcoOrder (optional). limit: Number of records (default: 20, max: 50).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>"
},
"name": "get_open_closed_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | ||
| symbol | No | ||
| open_only | No | ||
| order_filter | No | ||
| limit | No |