tai v0.0.3 Tai.ExchangeAdapters.Binance.OrderBookFeed

WebSocket order book feed adapter for Binance

https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md

Link to this section Summary

Functions

Subscribe to streams for all symbols

Secure production Binance WebSocket url

Add the registered process name as logger metadata after the websocket has connected

Log a warning message when the WebSocket receives a message that is not explicitly handled

Snapshot the order book 5 levels deep

Link to this section Functions

Link to this function build_connection_url(url, symbols)
build_connection_url(String.t(), [atom(), ...]) :: String.t()

Subscribe to streams for all symbols

Secure production Binance WebSocket url

Link to this function handle_connect(conn, state)

Add the registered process name as logger metadata after the websocket has connected

Link to this function handle_msg(unhandled_msg, state)

Log a warning message when the WebSocket receives a message that is not explicitly handled

Link to this function start_link(args)
Link to this function start_link(url, list)
Link to this function subscribe_to_order_books(pid, feed_id, symbols)
subscribe_to_order_books(pid(), atom(), list()) :: :ok | {:error, bitstring()}

Snapshot the order book 5 levels deep