미체결 주문 조회

종목 별 / 주문 방식 별로 미체결 주문 조회

📘

Permission: 주문조회 (History)

Request Header

필드필수설명
X-COINONE-PAYLOADtrueRequest body object -> JSON string -> base64
X-COINONE-SIGNATUREtrueHMAC(X-COINONE-PAYLOAD, SECRET_KEY, SHA512).hexdigest()

Request Body

필드타입필수설명
access_tokenStringtrue사용자의 액세스 토큰
nonceStringtrueUUID nonce
* 예: "022f53b2-8b2f-40c6-8e51-b594f562ee83")
quote_currencyStringfalse마켓 기준 통화
* 예: KRW
target_currencyStringfalse주문하려는 종목의 심볼
* 예: BTC
order_typeArray[String]false조회하고자하는 주문 유형,
["LIMIT"], ["STOP_LIMIT"],이 가능하며,
["LIMIT", "STOP_LIMIT"], [] 또는 생략시 모든 타입 조회 가능

Response Body

필드타입설명
resultString정상 처리 시 "success", 에러 발생 시 "error" 반환
error_codeString정상 처리 시 "0", 에러 발생 시 에러코드 "0" 이 아닌 값 반환
active_ordersArray[Object]배열 형태의 미체결 주문 목록
- order_idString주문 식별 가능한 ID
- typeString주문 유형
- LIMIT: 지정가
- STOP_LIMIT : 예약가
- sideString매수/매도 분류
- BUY: 매수
- SELL : 매도
- quote_currencyString마켓 기준 통화
- target_currencyString주문한 종목
- priceString주문 가격
- original_qtyString최초 주문 수량
(remain_qty + executed_qty + canceled_qty)
예: "0.01"
- remain_qtyString미체결 잔량
- executed_qtyString체결된 수량
- canceled_qtyString취소된 수량
- feeString체결 수수료
- fee_rateString체결 수수료율
- average_executed_priceString체결된 주문들의 평균 체결가
- ordered_atNumber주문 등록 시점의 타임스탬프
* unit of time: millisecond
- is_triggeredBoolean해당 주문이 발동되었는지 여부
예약가 주문 이외의 경우, null로 응답
* 예약가 주문에서만 사용
- trigger_priceString예약가 주문이 실행되는 가격 (감시가)
예약가 주문 이외의 경우, null로 응답
- triggered_atNumber(예약가 주문인 경우) 해당 주문이 발동되었을 때, 발동된 시간
is_triggered=false 일때는 null
is_triggered=true 일때는 해당 주문이 발동된 시간임
예약가 주문 이외의 경우, null로 응답
Language