kiwoompy

조회 (query)

시세, 잔고, 계좌, 종목 정보 등 각종 조회 기능을 담당하는 모듈입니다.

파라미터 타입 안내

모든 고정 선택지 파라미터는 의미 있는 문자열 키를 사용합니다. API 내부 코드(숫자)로의 변환은 라이브러리가 자동으로 처리합니다.

계좌·잔고 조회 파라미터

타입 의미
AllStockType "all" / "single" 전체종목구분
ExchangeType "all" / "krx" / "nxt" 거래소구분
SellType "all" / "sell" / "buy" 매도수구분
TradeSide "sell" / "buy" 매매구분 (전체 없음)
UnfilledTradeType "all" / "sell" / "buy" 미체결 매매구분
DepositQueryType "normal" / "estimated" 예수금 조회구분
DelistedQueryType "all" / "exclude_delisted" 상장폐지 조회구분
BalanceQueryType "combined" / "individual" 계좌평가잔고 조회구분
FilledQueryType "all" / "by_stock" 체결 조회구분
OrderHistoryQueryType "asc" / "desc" / "unfilled" / "filled_only" 주문체결내역 조회구분
StockBondType "all" / "stock" / "bond" 주식채권구분
MarketType "all" / "kospi" / "kosdaq" / "otcbb" / "ecn" 시장구분
ExecutionQueryType "all" / "filled" 주문체결현황 조회구분
GoodsType "all" / "domestic_stock" / "fund" / "overseas_stock" / "financial" 상품구분
SingleStockType "today_buy_sell" / "today_sell_all" 단주구분
CashCreditType "all" / "cash" / "credit" 현금신용구분
GoldOrderQueryType "asc" / "desc" 금현물 주문 조회구분
GoldTransactionType "all" / "deposit_withdraw" / "withdraw" / "trade" / "buy" / "sell" / "deposit" / "payment" 금현물 거래내역 구분
TransactionType "all" / "deposit_withdraw" / "withdraw" / "trade" / "buy" / "sell" / "deposit" / "payment" 위탁종합거래내역 구분
FlagType "off" / "on" 이진 플래그 (포함/미포함 등)

시세·종목정보 조회 파라미터

타입 의미
MrkcondExchangeType "krx" / "nxt" / "all" 거래소구분 (시세·종목정보용)
MrktType3 "all" / "kospi" / "kosdaq" 시장구분 (3코드)
MrktType3Ext "all" / "kospi" / "kosdaq" / "kospi200" 시장구분 (가격급등락용)
StkMarketType "kospi" / "kosdaq" / "etf" / "elw" / "konex" / "gold" 종목 리스트 시장구분
SectorMarketType "kospi" / "kosdaq" / "kospi200" / "kospi100" / "krx100" 업종코드 시장구분
DisplayType "qty" / "amount" 일별주가 표시구분
NewStockRightsType "all" / "rights_cert" / "rights_deed" 신주인수권구분
InstitutionTradeType "sell" / "buy" 기관 매매구분 (순매도/순매수)
EstimatedPriceType "buy" / "sell" 추정단가구분
CreditQueryType "loan" / "short" 신용매매동향 조회구분
HighLowSelectType "high" / "low" 신고저 / 고저 구분
PERType "low_pbr" / "high_pbr" / "low_per" / "high_per" / "low_roe" / "high_roe" PER 구분
TodayPrevType "today" / "prev" 당일전일구분
TickMinType "tick" / "minute" 틱/분 구분
AfterTradeType "net_buy" / "buy" / "sell" 장마감후 매매구분
AfterAmtQtyType "amount" / "qty" 장마감후 금액수량구분
InvestorType "foreign" / "institution" / "trust" / "insurance" / "bank" / "pension" / "gov" / "other_corp" 투자자별 (장중)
InvestorType2 "individual" / "foreign" / "financial_inv" / "trust" / "private_fund" / … 투자자구분 (투자자별일별매매종목)
AmtQtyType "amount" / "qty" 금액수량구분 (종목별투자자)
InvestorTradeType "net_buy" / "buy" / "sell" 매매구분 (종목별투자자)
UnitType "thousand" / "single" 단위구분 (천주/단주)

순위정보 파라미터

타입 의미
RkinfoMarketType "all" / "kospi" / "kosdaq" 순위정보 시장구분
RkinfoStexType "krx" / "nxt" / "all" 순위정보 거래소구분
RkinfoBidSortType "net_buy_qty" / "net_sell_qty" / "buy_ratio" / "sell_ratio" 호가잔량상위 정렬구분
RkinfoBidTradeType "buy" / "sell" 호가잔량급증 매매구분
RkinfoSurgeSort2Type "surge_qty" / "surge_ratio" 급증 정렬구분
RkinfoPriceChangeSortType "rise_ratio" / "rise_gap" / "fall_ratio" / "fall_gap" / "flat" 등락률상위 정렬구분
RkinfoBaseDateType "today" / "prev" 기준일구분
RkinfoSortCndType "qty" / "amount" 동일순매매 정렬조건
RkinfoOrgType "foreign" / "foreign_corp" / "financial_inv" / "trust" / "other_finance" / "bank" / "insurance" / "pension" / "gov" / "other_corp" / "institution" 장중투자자 기관구분
NetTradeType "net_buy" / "net_sell" 순매매구분
ForeignPeriodTradeType "net_sell" / "net_buy" / "both" 외국인 기간별 매매구분
ForeignConsecTradeType "net_sell" / "net_buy" 외국인 연속 순매매구분
ForeignBrokerTradeType "net_buy" / "net_sell" / "buy" / "sell" 외국계 창구 매매구분
SortAmtQtyType "amount" / "qty" 금액·수량 정렬구분
BrokerMarketType "all" / "kospi" / "kosdaq" / "single" 거래원 순간거래량 시장구분
TimeRangeType "start" / "period" 시간구분 (시작일/기간)
TradeUnitType "single" / "thousand" 거래 단위구분
MarketOpenType "all" / "intraday" / "pre" / "post" 장운영구분
AfterHoursSortType "up_rate" / "up_gap" / "down_rate" / "down_gap" / "flat" 시간외단일가 등락율 정렬기준
ForeignInstitutionQueryDateType "exclude_today" / "include_today" 외국인·기관 조회일자구분

차트 파라미터

타입 의미
ChartTickScope "1" / "3" / "5" / "10" / "30" 틱 범위 (틱차트·업종틱)
ChartMinScope "1" / "3" / "5" / "10" / "15" / "30" / "45" / "60" 분봉 범위 (주식·업종)
ChartAdjustedPrice "adjusted" / "raw" 수정주가 반영 여부
ChartAmtQtyType "amount" / "qty" 금액수량구분 (투자자 차트)
ChartTradeType "net_buy" / "buy" / "sell" 매매구분 (투자자 차트)
ChartUnitType "thousand" / "single" 단위구분 (종목별투자자기관별차트)
ChartSectorMarket "kospi" / "kosdaq" / "kospi200" 업종차트 시장구분

API 레퍼런스

::: kiwoompy.query