Exchange

주문 생성

특정 페어를 매수/매도하기 위한 주문을 생성합니다.

post/v1/orders

Request

  • Base URL
    https://api.upbit.com
  • URL
    https://api.upbit.com/v1/orders
  • Auth
    none declared

Request body

marketstring required

주문을 생성하고자 하는 대상 페어(거래쌍). (필수)

side'ask' | 'bid' required

주문 방향(매수/매도)

volumestring decimal

주문 수량

pricestring decimal

주문 단가 또는 총액

ord_type'limit' | 'price' | 'market' | 'best' required

주문 유형.

  • limit: 지정가 주문
  • price: 시장가 주문(매수)
  • market: 시장가 주문(매도)
  • best: 최유리 주문
identifierstring

클라이언트 지정 주문 식별자

time_in_force'fok' | 'ioc' | 'post_only'

주문 체결 조건.

  • fok: Fill or Kill
  • ioc: Immediate or Cancel
  • post_only: 메이커 전용 주문
smp_type'cancel_maker' | 'cancel_taker' | 'reduce'

자전거래 체결 방지(SMP) 모드.

  • cancel_maker: 메이커 주문 취소
  • cancel_taker: 테이커 주문 취소
  • reduce: 자전거래가 발생할 수량만큼 메이커·테이커 주문 수량 차감

Example request

{
  "market": "KRW-BTC",
  "volume": "0.01",
  "price": "1000",
  "identifier": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
}

Response

Object of created order

marketstring required

페어(거래쌍)의 코드

uuidstring required

주문의 유일 식별자

side'ask' | 'bid' required

주문 방향(매수/매도)

ord_type'limit' | 'price' | 'market' | 'best' required

주문 유형.

pricestring decimal

주문 단가 또는 총액

지정가 주문의 경우 단가, 시장가 매수 주문의 경우 매수 총액입니다.

state'wait' | 'watch' | 'done' | 'cancel' required

주문 상태

  • wait: 체결 대기
  • watch: 예약 주문 대기
  • done: 체결 완료
  • cancel: 주문 취소
created_atstring required

주문 생성 시각 (KST 기준)

[형식] yyyy-MM-ddTHH:mm:ss+09:00

volumestring decimal

주문 요청 수량

remaining_volumestring decimal required

체결 후 남은 주문 양

executed_volumestring decimal required

체결된 양

reserved_feestring decimal required

수수료로 예약된 비용

remaining_feestring decimal required

남은 수수료

paid_feestring decimal required

사용된 수수료

lockedstring decimal required

거래에 사용 중인 비용

trades_countinteger required

해당 주문에 대한 체결 건수

time_in_force'fok' | 'ioc' | 'post_only'

주문 체결 옵션

identifierstring

주문 생성시 클라이언트가 지정한 주문 식별자.

  • identifier 필드는 2024년 10월 18일 이후 생성된 주문에 대해서만 제공됩니다.
smp_type'reduce' | 'cancel_maker' | 'cancel_taker'

자전거래 체결 방지(Self-Match Prevention) 모드

prevented_volumestring decimal required

자전거래 방지로 인해 취소된 수량.

동일 사용자의 주문 간 체결이 발생하지 않도록 설정(SMP)에 따라 취소된 주문 수량입니다.

prevented_lockedstring decimal required

자전거래 방지로 인해 해제된 자산. 자전거래 체결 방지 설정으로 인해 취소된 주문의 잔여 자산입니다.

  • 매수 주문의 경우: 취소된 금액
  • 매도 주문의 경우: 취소된 수량

Example response

{
  "market": "KRW-BTC",
  "uuid": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae",
  "side": "ask",
  "ord_type": "limit",
  "state": "wait",
  "created_at": "2025-06-25T15:42:25+09:00",
  "trades_count": 1,
  "time_in_force": "ioc",
  "identifier": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae",
  "smp_type": "cancel_maker",
  "trades": [
    {
      "market": "KRW-BTC",
      "uuid": "795dff29-bba6-49b2-baab-63473ab7931c",
      "price": "1375",
      "volume": "5.377594",
      "funds": "7394.19175",
      "trend": "down",
      "created_at": "2025-08-09T16:44:00.597751+09:00",
      "side": "ask"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.