tai v0.0.10 Tai.Trading.Order

Link to this section Summary

Link to this section Types

Link to this type client_id()
client_id() :: String.t()
Link to this type side()
side() :: :buy | :sell
Link to this type status()
status() ::
  :enqueued
  | :skip
  | :pending
  | :open
  | :expired
  | :filled
  | :canceling
  | :canceled
  | :rejected
  | :error
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(),
  post_only: boolean(),
  price: Decimal.t(),
  side: side(),
  size: Decimal.t(),
  status: status(),
  symbol: atom(),
  time_in_force: time_in_force(),
  type: type(),
  venue_order_id: venue_order_id() | nil
}
Link to this type time_in_force()
time_in_force() :: :gtc | :fok | :ioc
Link to this type type()
type() :: :limit
Link to this type venue_order_id()
venue_order_id() :: String.t()

Link to this section Functions

Link to this function buy_limit?(order)
buy_limit?(t()) :: boolean()
Link to this function sell_limit?(order)
sell_limit?(t()) :: boolean()