tai v0.0.28 Tai.Venues.OrderBookFeed behaviour
Behaviour to connect to a WebSocket that streams quotes from order books
Link to this section Summary
Functions
Returns an atom that will identify the process
Callbacks
Invoked after a message is received on the socket and should be used to process the message
Invoked after the process is started and should be used to setup subscriptions
Link to this section Types
Link to this section Functions
Link to this function
to_name(feed_id)
Returns an atom that will identify the process
Examples
iex> Tai.Venues.OrderBookFeed.to_name(:my_test_feed) :order_book_feed_my_test_feed
Link to this section Callbacks
Link to this callback
handle_msg(msg, feed)
Invoked after a message is received on the socket and should be used to process the message
Link to this callback
subscribe_to_order_books(pid, feed_id, symbols)
Invoked after the process is started and should be used to setup subscriptions