주문 목록 조회
toss_get_ordersRetrieve orders for a specific account by status, symbol, and date range. Get open or closed orders with execution details and pagination support.
Instructions
특정 계좌의 주문 목록을 조회합니다.
Args:
accountSeq (number, 필수): 계좌 시퀀스. toss_get_accounts 응답의 accountSeq 값
status (string, 필수): 주문 상태 필터.
"OPEN": 미체결 주문 (PENDING, PARTIAL_FILLED, PENDING_CANCEL, PENDING_REPLACE)
"CLOSED": 체결/취소/거부된 주문 (FILLED, CANCELED, REJECTED, REPLACED 등)
symbol (string, 선택): 종목 심볼 필터
from (string, 선택): 조회 시작일 (YYYY-MM-DD). 주문 생성 시간 기준
to (string, 선택): 조회 종료일 (YYYY-MM-DD)
cursor (string, 선택): 페이지네이션 cursor. 이전 응답의 nextCursor 값 (CLOSED만)
limit (number, 선택): 조회 건수. 기본값 20, 최대 100 (CLOSED만)
Returns:
orders[]: 주문 목록
orderId, symbol, side (BUY/SELL), orderType (LIMIT/MARKET)
timeInForce, status, price, quantity, orderAmount, currency
orderedAt, canceledAt
execution: 체결 정보 (filledQuantity, averageFilledPrice, filledAmount, commission, tax, filledAt, settlementDate)
nextCursor: 다음 페이지 cursor (CLOSED, hasNext=true일 때)
hasNext: 다음 페이지 존재 여부
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | 조회 종료일 (YYYY-MM-DD, 선택) | |
| from | No | 조회 시작일 (YYYY-MM-DD, 선택) | |
| limit | No | 조회 건수. 기본값 20, 최대 100 (CLOSED만) | |
| cursor | No | 페이지네이션 cursor. 이전 응답의 nextCursor 값 (CLOSED만, 선택) | |
| status | Yes | 주문 상태 필터. "OPEN" (미체결) 또는 "CLOSED" (완결) | |
| symbol | No | 종목 심볼 필터 (선택) | |
| accountSeq | Yes | 계좌 시퀀스. toss_get_accounts 응답의 accountSeq 값 |