Beispiel #1
0
def create_order_googl_dis_hedge(account) -> dm.Order:
    return dm.Order(account, 'SPY_PUT_OPTION', dm.OrderAction.SELL,
                    req_qty=1, lmt_price=None, ib_id=4)
Beispiel #2
0
def create_order_googl_acq_hedge(account) -> dm.Order:
    return dm.Order(account, 'SPY_PUT_OPTION', dm.OrderAction.BUY,
                    req_qty=1, lmt_price=23., ib_id=2)
Beispiel #3
0
def create_order_googl_dis(account) -> dm.Order:
    return dm.Order(account, 'GOOGL', dm.OrderAction.SELL,
                    req_qty=1, lmt_price=None, ib_id=3)
Beispiel #4
0
def create_order_googl_acq(account) -> dm.Order:
    return dm.Order(account, 'GOOGL', dm.OrderAction.BUY,
                    req_qty=1, lmt_price=None, ib_id=1)