Workbench.BalanceSnapshots.MidPrice (workbench v0.0.6)

Link to this section Summary

Link to this section Types

Specs

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

quote_pair() :: {venue(), usd_quote_asset :: asset()}

Specs

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

first(asset, list, errors)