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
Link to this type
venue()
Specs
Link to this section Callbacks
Link to this callback
candles()
Specs
candles() :: module()
Link to this callback
funding_rates()
Specs
funding_rates() :: module()
Link to this callback
lending_rates()
Specs
lending_rates() :: module()
Link to this callback
liquidations()
Specs
liquidations() :: module()
Link to this callback
predicted_funding_rates()
Specs
predicted_funding_rates() :: module()
Link to this callback
trades()
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()}