TradingBroker#

Constructor#

TradingBroker(data_api, trading_api, clock)

실제 거래를 수행하는 브로커 클래스입니다.

Attributes#

data_api

시세 조회 및 시장 데이터 조회를 위한 API 인터페이스

trading_api

실제 주문 및 거래 실행을 위한 API 인터페이스

Methods#

get_minute_price(code)

특정 종목의 분단위 가격 데이터를 조회합니다.

get_price(code)

특정 종목의 현재 가격을 조회합니다.

get_daily_price(code, from_date, to_date)

특정 기간 동안의 일별 가격 데이터를 조회합니다.

get_orderbook()

get_account()

현재 계좌 정보를 조회합니다.

get_pending_orders()

미체결된 모든 주문을 조회합니다.

get_positions()

모든 종목의 현재 포지션을 조회합니다.

create_order(asset_code, side, quantity[, ...])

새로운 주문을 생성합니다.

update_order(org_order_no, order_type, price)

기존 주문을 수정합니다.

cancel_order(order_no[, quantity])

주문을 취소합니다.