View Source ExTwelveData.RealTimePrices.Handler behaviour (ExTwelveData v0.4.0)

Implement the Handler behaviour to process real-time price updates coming from Twelve Data.

Summary

Callbacks

Invoked when a price update is received.

Types

@type price() :: %{
  price: integer(),
  currency: String.t(),
  symbol: String.t(),
  exchange: String.t(),
  timestamp: integer(),
  type: String.t(),
  day_volume: integer()
}

Callbacks

Link to this callback

handle_price_update(price)

View Source
@callback handle_price_update(price()) :: :ok

Invoked when a price update is received.