Workbench.BalanceSnapshots.MidPrice (workbench v0.0.17)
Link to this section Summary
Link to this section Types
Link to this type
asset()
Specs
asset() :: Tai.Venues.Account.asset()
Link to this type
error_reasons()
Specs
error_reasons() :: {quote_pair(), :not_found | :no_inside_bid | :no_inside_ask | :no_inside_bid_or_ask}
Link to this type
quote_pair()
Specs
Link to this type
venue()
Specs
venue() :: Tai.Venues.Adapter.venue_id()
Link to this section Functions
Link to this function
first(asset, quote_pairs)
Specs
first(asset(), [quote_pair()]) :: {:ok, Decimal.t()} | {:error, error_reasons()}
Link to this function