Tradomate Orders
Tradomate Orders are the objects that define the orders that your bot will place.
This object is returned whenever a new order is placed. It contains information about the order, such as the order id, the symbol, the quantity, etc.
Structure
Properties
Property | Type | Description |
---|---|---|
symbol | str | Symbol of the order |
quantity | Optional[float] | Quantity of the order |
amount | Optional[float] | Amount of the order |
order_type | OrderType | Type of the order |
order_side | OrderSide | Side of the order |
status | OrderStatus | Status of the order |
placed_time | Optional[int] | Time when the order was placed |
filled_time | Optional[int] | Time when the order was filled |
filled_price | Optional[float] | Price at which the order was filled |
filled_quantity | Optional[float] | Quantity of the order that was filled |
rejected_time | Optional[int] | Time when the order was rejected |
reason_of_failure | ReasonOfOrderFailure | Reason of failure of the order |
comment | Optional[str] | Comment of the order |
commission | Optional[float] | Commission of the order |
tags | Dict[str, str] | Tags of the order |
Methods
None
Usage
You would normally get the order when calling the querying functions or when placing an order.
You can pass the order object as is directly to most functions that require an order object.