tai v0.0.11 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
  | :pending_amend
  | :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(),
  cumulative_qty: Decimal.t(),
  enqueued_at: DateTime.t(),
  error_reason: term(),
  exchange_id: atom(),
  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()