History.DataAdapter behaviour (history v0.0.23)

Link to this section Summary

Link to this section Types

Link to this type

adapter_type()

Specs

adapter_type() ::
  :trades
  | :candles
  | :liquidations
  | :funding_rates
  | :predicted_funding_rates
  | :lending_rates
Link to this type

for_venue_error_reason()

Specs

for_venue_error_reason() :: :venue_adapter_not_found | :adapter_type_not_found

Specs

venue() :: String.t() | atom()

Link to this section Callbacks

Specs

candles() :: module()
Link to this callback

funding_rates()

Specs

funding_rates() :: module()
Link to this callback

lending_rates()

Specs

lending_rates() :: module()

Specs

liquidations() :: module()
Link to this callback

predicted_funding_rates()

Specs

predicted_funding_rates() :: module()

Specs

trades() :: module()

Link to this section Functions

Link to this function

for_venue(venue, adapter_type)

Specs

for_venue(venue(), adapter_type()) ::
  {:ok, module()} | {:error, for_venue_error_reason()}