tai v0.0.56 Tai.Markets.Quote
Represents the inside bid & ask price point within the order book
Link to this section Summary
Link to this section Types
Link to this type
t()
t() :: %Tai.Markets.Quote{ asks: [price_point()], bids: [price_point()], last_received_at: integer(), last_venue_timestamp: DateTime.t() | nil, product_symbol: product_symbol(), venue_id: venue_id() }
Link to this section Functions
Link to this function
mid_price(market_quote)
Link to this function
mid_price(bid, ask)
mid_price(bid :: price_point(), ask :: price_point()) :: {:ok, Decimal.t()} | {:error, :no_inside_bid | :no_inside_ask | :no_inside_bid_or_ask}