# `kiwoomcli domestic orders credit-sell`

```text
usage: kiwoomcli domestic orders credit-sell [-h] --exchange {KRX,NXT,SOR}
                                             --code CODE --qty QTY
                                             [--price PRICE]
                                             --order-type {limit,market,conditional-limit,after-hours-close,pre-open,after-hours-single,best-limit,top-priority,limit-ioc,market-ioc,best-ioc,limit-fok,market-fok,best-fok,stop-limit,mid,mid-ioc,mid-fok}
                                             --credit-deal {financing,financing-all}
                                             [--loan-date LOAN_DATE]
                                             [--condition-price CONDITION_PRICE]
                                             [--confirm]
                                             [--format {pretty,json,jsonl,yaml}]
                                             [--profile PROFILE]
                                             [--mode {real,demo}]

options:
  -h, --help            show this help message and exit
  --exchange {KRX,NXT,SOR}
                        국내거래소구분
  --code CODE           6자리 국내 종목코드
  --qty QTY             주문수량
  --price PRICE         주문단가
  --order-type {limit,market,conditional-limit,after-hours-close,pre-open,after-hours-single,best-limit,top-priority,limit-ioc,market-ioc,best-ioc,limit-fok,market-fok,best-fok,stop-limit,mid,mid-ioc,mid-fok}
                        매매구분
  --credit-deal {financing,financing-all}
                        신용거래구분
  --loan-date LOAN_DATE
                        대출일 YYYYMMDD
  --condition-price CONDITION_PRICE
                        조건단가
  --confirm             지정하면 실제 주문을 전송합니다. 미지정 시 미전송 주문 확인을 출력합니다.
  --format {pretty,json,jsonl,yaml}
                        출력 형식
  --profile PROFILE     사용할 계좌 별칭입니다. --mode/KIWOOM_MODE가 없을 때 생략하면 현재 계좌 별칭을
                        사용합니다.
  --mode {real,demo}    계좌 별칭 대신 모드를 직접 지정합니다.

Summary:
  신용 매도주문.

Behavior:
  --confirm 없이는 실제 주문 API를 호출하지 않고 미전송 주문 확인만 출력합니다.

Examples:
  kiwoomcli domestic orders credit-sell --exchange KRX --code 005930 --qty 10 --order-type limit --credit-deal financing --price 70000

OpenAPI mapping:
  API ID: kt10007
  Request: POST /api/dostk/crdordr
  --exchange -> dmst_stex_tp (required)
  --code -> stk_cd (required)
  --qty -> ord_qty (required)
  --price -> ord_uv (optional)
  --order-type -> trde_tp (required)
      limit = 0
      market = 3
      conditional-limit = 5
      after-hours-close = 81
      pre-open = 61
      after-hours-single = 62
      best-limit = 6
      top-priority = 7
      limit-ioc = 10
      market-ioc = 13
      best-ioc = 16
      limit-fok = 20
      market-fok = 23
      best-fok = 26
      stop-limit = 28
      mid = 29
      mid-ioc = 30
      mid-fok = 31
  --credit-deal -> crd_deal_tp (required)
      financing = 33
      financing-all = 99
  --loan-date -> crd_loan_dt (optional)
  --condition-price -> cond_uv (optional)
```
