Tai.Advisor behaviour (tai v0.0.75)
A behavior for implementing a server that receives events such as market quotes.
It can be used to receive one or more quote streams to record data and create, update or cancel orders.
Link to this section Summary
Link to this section Types
Link to this type
advisor_id()
Specs
advisor_id() :: Tai.Fleets.AdvisorConfig.advisor_id()
Link to this type
advisor_name()
Specs
advisor_name() :: atom()
Link to this type
fleet_id()
Specs
fleet_id() :: Tai.Fleets.FleetConfig.id()
Link to this type
market_quote()
Specs
market_quote() :: Tai.Markets.Quote.t()
Link to this type
run_store()
Specs
run_store() :: Tai.Advisor.State.run_store()
Link to this type
state()
Specs
state() :: Tai.Advisor.State.t()
Link to this type
terminate_reason()
Specs
Link to this type
trade()
Specs
trade() :: Tai.Markets.Trade.t()
Link to this section Callbacks
Link to this callback
after_start(state)
Specs
Link to this callback
handle_market_quote(market_quote, state)
Specs
handle_market_quote(market_quote(), state()) :: {:ok, run_store()}
Link to this callback
handle_trade(trade, state)
Specs
Link to this callback
on_terminate(terminate_reason, state)
Specs
on_terminate(terminate_reason(), state()) :: term()
Link to this section Functions
Link to this function
process_name(fleet_id, advisor_id)
Specs
process_name(fleet_id(), advisor_id()) :: advisor_name()