tai v0.0.28 Tai.Advisor behaviour

A behavior for implementing a process that receives changes in the order book.

It can be used to monitor one or more quote streams and create, update or cancel orders.

Link to this section Summary

Link to this section Types

Link to this type

changes()

changes() :: term()
Link to this type

group_id()

group_id() :: Tai.AdvisorGroup.id()
Link to this type

market_quote()

market_quote() :: Tai.Markets.Quote.t()
Link to this type

product_symbol()

product_symbol() :: Tai.Venues.Product.symbol()

Link to this section Functions

Link to this function

cast_order_updated(name, old_order, updated_order, callback)

cast_order_updated(atom(), order() | nil, order(), (... -> any())) :: :ok
Link to this function

cast_order_updated(name, old_order, updated_order, callback, opts)

cast_order_updated(atom(), order() | nil, order(), (... -> any()), term()) ::
  :ok
Link to this function

to_name(group_id, advisor_id)

to_name(group_id(), id()) :: atom()

Link to this section Callbacks

Link to this callback

handle_inside_quote(venue_id, product_symbol, market_quote, changes, state)

handle_inside_quote(
  venue_id(),
  product_symbol(),
  market_quote(),
  changes(),
  state()
) :: {:ok, run_store()}