Tai.Trading.Order (tai v0.0.64)
Link to this section Summary
Link to this section Types
Link to this type
callback()
Specs
Link to this type
client_id()
Specs
client_id() :: Ecto.UUID.t()
Link to this type
credential_id()
Specs
credential_id() :: Tai.Venue.credential_id()
Link to this type
product_symbol()
Specs
product_symbol() :: Tai.Venues.Product.symbol()
Link to this type
product_type()
Specs
product_type() :: Tai.Venues.Product.type()
Link to this type
side()
Specs
side() :: :buy | :sell
Link to this type
status()
Specs
status() :: :enqueued | :skip | :create_accepted | :open | :partially_filled | :filled | :expired | :rejected | :create_error | :pending_amend | :amend_error | :pending_cancel | :cancel_accepted | :canceled | :cancel_error
Specs
t() :: %Tai.Trading.Order{ client_id: client_id(), close: boolean() | nil, credential_id: credential_id(), 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: callback(), 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, venue_product_symbol: venue_product_symbol() }
Link to this type
time_in_force()
Specs
time_in_force() :: :gtc | :fok | :ioc
Link to this type
type()
Specs
type() :: :limit
Link to this type
venue_id()
Specs
venue_id() :: Tai.Venue.id()
Link to this type
venue_order_id()
Specs
Link to this type
venue_product_symbol()
Specs
venue_product_symbol() :: Tai.Venues.Product.venue_symbol()