tai v0.0.18 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()
changes() :: term()
changes() :: term()
Link to this type
group_id()
group_id()
group_id() :: Tai.AdvisorGroup.id()
group_id() :: Tai.AdvisorGroup.id()
Link to this type
id()
id()
id() :: Tai.Advisor.State.id()
id() :: Tai.Advisor.State.id()
Link to this type
market_quote()
market_quote()
market_quote() :: Tai.Markets.Quote.t()
market_quote() :: Tai.Markets.Quote.t()
Link to this type
order()
order()
order() :: Tai.Trading.Order.t()
order() :: Tai.Trading.Order.t()
Link to this type
product_symbol()
product_symbol()
product_symbol() :: Tai.Venues.Product.symbol()
product_symbol() :: Tai.Venues.Product.symbol()
Link to this type
run_store()
run_store()
run_store() :: Tai.Advisor.State.run_store()
run_store() :: Tai.Advisor.State.run_store()
Link to this type
spec()
Link to this type
state()
state()
state() :: Tai.Advisor.State.t()
state() :: Tai.Advisor.State.t()
Link to this type
venue_id()
venue_id()
venue_id() :: Tai.Venues.Adapter.venue_id()
venue_id() :: Tai.Venues.Adapter.venue_id()
Link to this section Functions
Link to this function
cast_order_updated(name, old_order, updated_order, callback)
Link to this function
cast_order_updated(name, old_order, updated_order, callback, opts)
Link to this function
to_name(group_id, advisor_id)
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)
handle_inside_quote(
venue_id(),
product_symbol(),
market_quote(),
changes(),
state()
) :: {:ok, run_store()}
handle_inside_quote( venue_id(), product_symbol(), market_quote(), changes(), state() ) :: {:ok, run_store()}