tai v0.0.6 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 t()
t() :: %Tai.Trading.Order{
  account_id: atom(),
  client_id: String.t(),
  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: atom(),
  size: Decimal.t(),
  status: atom(),
  symbol: atom(),
  time_in_force: atom(),
  type: atom()
}

Link to this section Functions

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

Returns the limit type symbol

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