investfly.models.portfolio.TradeOrder
str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.
A class that represents a Trade Order.
For futures, if security is a product-level Security rather than a
specific Future contract, the engine automatically resolves it to the
earliest active contract outside the platform expiry buffer.
Action semantics are security-type specific:
- CRYPTO spot supports long-only
BUY/SELLorders;SHORT/COVERare invalid. - FOREX and FUTURE support directional
BUY/SELLorders. A short strategy opens withSELLand closes withBUY; it should not emitSHORTorCOVER. - STOCK/ETF/OPTION support the full
BUY/SELL/SHORT/COVERlifecycle labels.
One atomic option-combo ticket plus optional option-structure metadata.
Trade Order Status