trade29.sc.constants.TimeInForce#
- class trade29.sc.constants.TimeInForce(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
An enumeration of time in force settings.
Attributes
DAY
This order will be cancelled if it does not fill by the end of the trading day. Often the default.
GOOD_TILL_CANCELLED
This order will be good until manually cancelled or until the trade is executed.
IMMEDIATE_OR_CANCEL
This order will execute as much as possible as soon as it becomes available and then cancel any remaining unfilled part of the order
FILL_OR_KILL
This order will either fill the entire order as soon as it becomes available, or if not possible, cancel the entire order.
ALL_OR_NONE
This order will either fill the entire order as soon as it becomes available, or if not possible, stay active until it fills so or is cancelled.