position
Inspect and close crypto futures holdings: retrieve current/historical data, view ADL ranking, and close one or all at market price (confirmation required).
Instructions
[VERB] Positions by intent: info (current) | history | adlRank | close (ONE position by symbol, at market) | closeAll (every position in a category). close & closeAll are destructive and require confirm; reads are normalized and history paginates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | summary (default) trims null fields to save tokens; full returns the untouched payload. | |
| limit | No | Limit per page Default:100. Maximum:100 | |
| action | Yes | What to do — info: current positions (needs: category) | history: historical positions (needs: category) | adlRank: ADL ranking | close: close ONE position by symbol, at market (destructive) (needs: category) | closeAll: close ALL positions in a category, at market (destructive) (needs: category). | |
| cursor | No | Cursor Pagination is implemented by omitting the cursor in the first query and applying the cursor from the previous query for subsequent pages | |
| dryRun | No | Preview a close/closeAll without sending it. | |
| fields | No | Optional list (array or comma-separated string) of fields to keep on each returned row. | |
| symbol | No | Optional symbol filter, e.g. BTCUSDT. | |
| confirm | No | Required to execute close/closeAll (destructive market close). | |
| endTime | No | End timestamp A Unix timestamp in milliseconds e.g.,1597026383185 The time range between startTime and endTime must not exceed 30 days | |
| posSide | No | Position side filter (long/short). | |
| category | No | Product category, e.g. USDT-FUTURES (required by info/history). | |
| fetchAll | No | history only: walk the cursor to bounded completion. | |
| startTime | No | Start timestamp A Unix timestamp in milliseconds e.g.,1597026383085 The access window is 90 days |