List orders
tossinvest_list_ordersList account orders by lifecycle status, choosing OPEN for working orders or CLOSED for finished orders. Filter by symbol and creation date, with pagination for closed orders.
Instructions
List the account's orders, filtered by lifecycle group.
Args:
status ('OPEN' | 'CLOSED'): OPEN returns still-working orders (individual status PENDING, PARTIAL_FILLED, PENDING_CANCEL, PENDING_REPLACE). CLOSED returns finished ones (FILLED, CANCELED, REJECTED, REPLACED, CANCEL_REJECTED, REPLACE_REJECTED, PARTIAL_FILLED).
symbol (string, optional): restrict to one symbol.
from / to (string, optional): YYYY-MM-DD inclusive bounds on order creation time (orderedAt, KST). Omit for all time.
cursor (string, optional): pagination cursor from a previous nextCursor. CLOSED only.
limit (number): 1-100, default 20. CLOSED only.
account_seq (number, optional): resolved automatically for single-account credentials.
response_format ('markdown' | 'json'): default 'markdown'.
Paging differs by status: OPEN returns every working order in one shot and ignores cursor/limit (nextCursor is always null, hasNext always false); CLOSED honours cursor and limit.
Returns { accountSeq, status, count, orders: [...], nextCursor, hasNext }. Each order carries an 'execution' object: { filledQuantity, averageFilledPrice, filledAmount, commission, tax, filledAt, settlementDate }. filledQuantity is 0 when nothing has filled — check it on CANCELED and REJECTED orders too, since those can be partially filled.
Note the two status vocabularies: the 'status' argument is a GROUP label, while 'orders[].status' is the individual order state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Inclusive end date (YYYY-MM-DD, KST) on order creation time. | |
| from | No | Inclusive start date (YYYY-MM-DD, KST) on order creation time. | |
| limit | No | Page size (max 100). Ignored when status='OPEN'. | |
| cursor | No | Pagination cursor from a previous nextCursor. Ignored when status='OPEN'. | |
| status | Yes | 'OPEN' for working orders, 'CLOSED' for finished orders. | |
| symbol | No | Restrict to one symbol. Omit for all symbols. | |
| account_seq | No | accountSeq of the account to act on (the `X-Tossinvest-Account` header). Optional: falls back to TOSSINVEST_ACCOUNT_SEQ, then to the sole account on the credentials. Get valid values from tossinvest_list_accounts. | |
| response_format | No | Output format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| orders | Yes | ||
| status | Yes | ||
| hasNext | No | ||
| truncated | No | ||
| accountSeq | Yes | ||
| nextCursor | No | Pass as `cursor` for the next page (CLOSED only) | |
| truncation_message | No |