# `kiwoomcli domestic rankings same-net-trades`

```text
usage: kiwoomcli domestic rankings same-net-trades [-h] --from FROM_DATE
                                                   [--to TO_DATE]
                                                   --market {all,kospi,kosdaq}
                                                   --side {net-buy,net-sell}
                                                   --basis {quantity,amount}
                                                   --unit {share,thousand}
                                                   --exchange {KRX,NXT,ALL}
                                                   [--pages PAGES]
                                                   [--format {pretty,json,jsonl,yaml}]
                                                   [--profile PROFILE]
                                                   [--mode {real,demo}]

options:
  -h, --help            show this help message and exit
  --from FROM_DATE      시작일자 YYYYMMDD
  --to TO_DATE          종료일자 YYYYMMDD
  --market {all,kospi,kosdaq}
                        시장구분
  --side {net-buy,net-sell}
                        매매구분
  --basis {quantity,amount}
                        정렬조건
  --unit {share,thousand}
                        단위구분
  --exchange {KRX,NXT,ALL}
                        거래소구분
  --pages PAGES         연속조회 페이지 수입니다 (기본 1, 0은 서버가 제공하는 모든 페이지).
  --format {pretty,json,jsonl,yaml}
                        출력 형식
  --profile PROFILE     사용할 계좌 별칭입니다. --mode/KIWOOM_MODE가 없을 때 생략하면 현재 계좌 별칭을
                        사용합니다.
  --mode {real,demo}    계좌 별칭 대신 모드를 직접 지정합니다.

Summary:
  동일순매매순위요청.

Behavior:
  조회 전용 명령입니다. 계좌/주문 상태를 변경하지 않습니다.

Examples:
  kiwoomcli domestic rankings same-net-trades --from 20260626 --market all --side net-buy --basis quantity --unit share --exchange KRX

OpenAPI mapping:
  API ID: ka10062
  Request: POST /api/dostk/rkinfo
  --from -> strt_dt (required)
  --to -> end_dt (optional)
  --market -> mrkt_tp (required)
      all = 000
      kospi = 001
      kosdaq = 101
  --side -> trde_tp (required)
      net-buy = 1
      net-sell = 2
  --basis -> sort_cnd (required)
      quantity = 1
      amount = 2
  --unit -> unit_tp (required)
      share = 1
      thousand = 1000
  --exchange -> stex_tp (required)
      KRX = 1
      NXT = 2
      ALL = 3
```
