Tai.Markets.Quote.mid_price

You're seeing just the function mid_price, go back to Tai.Markets.Quote module for more information.
Link to this function

mid_price(market_quote)

Specs

mid_price(t()) :: {:ok, Decimal.t()} | {:error, :no_inside_bid | :no_inside_ask}
Link to this function

mid_price(bid, ask)

Specs

mid_price(bid :: price_point(), ask :: price_point()) ::
  {:ok, Decimal.t()}
  | {:error, :no_inside_bid | :no_inside_ask | :no_inside_bid_or_ask}