Example #1
0
func NewOrder() (ib.Order, error) {
	order, err := ib.NewOrder()

	if gEnableRTH {
		order.OutsideRTH = true
	}

	order.TIF = "DAY"
	if gEnableGTC {
		order.TIF = "GTC"
	}

	return order, err
}
Example #2
0
//NewOrder comment
func NewOrder() (ib.Order, error) {
	order, err := ib.NewOrder()
	order.OutsideRTH = false
	return order, err
}