Skip to content

Commit

Permalink
Add error handling api for sending orders of futures and options.
Browse files Browse the repository at this point in the history
  • Loading branch information
breadum committed Nov 13, 2022
1 parent 691cf05 commit 0c3d010
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kiwoom/core/kiwoom.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def on_receive_real_condition(self, code, type, condition_name, condition_index)
comm_rq_data
comm_kw_rq_data
send_order
send_order_fo
send_order_credit
set_real_reg
"""
Expand All @@ -361,6 +362,10 @@ def comm_kw_rq_data(self, arr_code, next, code_cnt, type_flag, rq_name, scr_no):
def send_order(self, rq_name, scr_no, acc_no, ord_type, code, qty, price, hoga_gb, org_order_no):
return super().send_order(rq_name, scr_no, acc_no, ord_type, code, qty, price, hoga_gb, org_order_no)

@catch_error
def send_order_fo(self, rq_name, scr_no, acc_no, code, ord_kind, sl_by_tp, ord_tp, qty, price, org_ord_no):
return super().send_order_fo(rq_name, scr_no, acc_no, code, ord_kind, sl_by_tp, ord_tp, qty, price, org_ord_no)

@catch_error
def send_order_credit(
self,
Expand Down

0 comments on commit 0c3d010

Please sign in to comment.