tai v0.0.28 Tai.Trading.Order

Link to this section Summary

Link to this section Types

Link to this type

account_id()

account_id() :: Tai.Venues.Adapter.account_id()
Link to this type

client_id()

client_id() :: Ecto.UUID.t()
Link to this type

product_symbol()

product_symbol() :: Tai.Venues.Product.symbol()
Link to this type

product_type()

product_type() :: Tai.Venues.Product.type()
Link to this type

side()

side() :: :buy | :sell
Link to this type

status()

status() ::
  :enqueued
  | :skip
  | :create_accepted
  | :open
  | :partially_filled
  | :filled
  | :expired
  | :rejected
  | :create_error
  | :pending_amend
  | :amend_error
  | :pending_cancel
  | :cancel_accepted
  | :canceled
  | :cancel_error
Link to this type

t()

t() :: %Tai.Trading.Order{
  account_id: account_id(),
  client_id: client_id(),
  close: boolean() | nil,
  cumulative_qty: Decimal.t(),
  enqueued_at: DateTime.t(),
  error_reason: term(),
  last_received_at: DateTime.t() | nil,
  last_venue_timestamp: DateTime.t() | nil,
  leaves_qty: Decimal.t(),
  order_updated_callback: (... -> any()) | nil,
  post_only: boolean(),
  price: Decimal.t(),
  product_symbol: product_symbol(),
  product_type: product_type(),
  qty: Decimal.t(),
  side: side(),
  status: status(),
  time_in_force: time_in_force(),
  type: type(),
  updated_at: DateTime.t() | nil,
  venue_id: venue_id(),
  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()