tai v0.0.9 Tai.Trading.OrderSubmission

Order details that are turned into an order and assigned a tracking client id

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %Tai.Trading.OrderSubmission{
  account_id: atom(),
  exchange_id: atom(),
  order_updated_callback: term(),
  price: number(),
  side: atom(),
  size: number(),
  symbol: atom(),
  time_in_force: term(),
  type: term()
}

Link to this section Functions

Link to this function buy_limit(exchange_id, account_id, symbol, price, size, time_in_force, order_updated_callback \\ nil)

Return an OrderSubmission for buy limit orders

Link to this function sell_limit(exchange_id, account_id, symbol, price, size, time_in_force, order_updated_callback \\ nil)

Return an OrderSubmission for sell limit orders