get_orderbook#
- pyqqq.data.minutes.get_orderbook(code: str, time: datetime) Dict [source]#
주식 종목의 주문 호가 정보를 반환합니다.
- Parameters:
code (str) – 종목 코드
time (dtm.datetime) – 조회할 시간
- Returns:
- 호가 정보가 포함된 사전.
total_bid_volume (int): 총 매수 잔량.
total_ask_volume (int): 총 매도 잔량.
ask_price (int): 1차 매도 호가 가격.
ask_volume (int): 1차 매도 호가 잔량.
bid_price (int): 1차 매수 호가 가격.
bid_volume (int): 1차 매수 호가 잔량.
time (dtm.datetime): 현지 기준 호가 정보 조회 시간.
bids (list): 매수 호가 목록 (각 항목은 price와 volume을 포함하는 dict).
asks (list): 매도 호가 목록 (각 항목은 price과 volume을 포함하는 dict).
- Return type:
dict