tai v0.0.50 Tai.Advisor behaviour

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_name()

advisor_name() :: atom()
Link to this type

event()

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

group_id()

group_id() :: Tai.AdvisorGroup.id()

Link to this section Functions

Link to this function

to_name(group_id, advisor_id)

to_name(group_id(), id()) :: advisor_name()

Link to this section Callbacks

Link to this callback

after_start(state)

after_start(state()) :: {:ok, run_store()}
Link to this callback

handle_event(event, state)

handle_event(event(), state()) :: {:ok, run_store()}