fetch_order_queue
Returns all current pending orders.
Syntax
def fetch_order_queue(self) -> List[Dict[str, Any]]: Returns
Returns a list of dictionaries with the following keys and values: For stocks and crypto:
order_type: “STOCK” or “CRYPTO”symbol: Symbol of assetquantity: Quantity orderedtime_in_force: Time in forceside: ‘buy’ or ‘sell’order_id: ID of orderstatus: Status of the orderfilled_qty: Quantity filledfilled_time: Time the order was filledfilled_price: Price the order was filled at
For options:
order_type: “OPTION”symbol: OCC symbol of optionbase_symbol:quantity: Quantity orderedorder_id: ID of ordertime_in_force: Time in forceside: ‘buy’ or ‘sell’status: Status of the orderfilled_qty: Quantity filledfilled_time: Time the order was filledfilled_price: Price the order was filled at
Raises
- An
Exceptionis raised if there is an error fetching the order queue.