tai v0.0.9 Tai.Trading.Order
Link to this section Summary
Functions
Returns the buy side symbol
Returns true for buy side orders with a limit type, returns false otherwise
Execute the callback function if provided
Returns the limit type symbol
Returns the sell side symbol
Returns true for sell side orders with a limit type, returns false otherwise
Link to this section Types
Link to this type
status()
status() :: :enqueued | :expired | :pending | :filled | :canceling | :canceled | :error | :skip
Link to this type
t()
t() :: %Tai.Trading.Order{ account_id: atom(), client_id: client_id(), created_at: term(), enqueued_at: DateTime.t(), error_reason: term(), exchange_id: atom(), executed_size: term(), order_updated_callback: term(), price: Decimal.t(), server_id: term(), side: side(), size: Decimal.t(), status: status(), symbol: atom(), time_in_force: time_in_force(), type: type() }
Link to this section Functions
Link to this function
buy()
Returns the buy side symbol
Link to this function
buy_limit?(order)
Returns true for buy side orders with a limit type, returns false otherwise
Link to this function
execute_update_callback(previous, updated)
Execute the callback function if provided
Link to this function
limit()
Returns the limit type symbol
Link to this function
sell()
Returns the sell side symbol
Link to this function
sell_limit?(order)
Returns true for sell side orders with a limit type, returns false otherwise