Kujira.Fin.Book (kujira v0.1.24)

The aggregate of all existing orders on the book

Fields

  • :bids - A list of bids, descending by price (ie the limit is at index 0)

  • :asks - A list of asks, ascending by price (ie the limit is at index 0)

Summary

Types

@type t() :: %Kujira.Fin.Book{
  asks: [Kujira.Fin.Book.Price.t()],
  bids: [Kujira.Fin.Book.Price.t()]
}

Functions

Link to this function

from_query(map)

@spec from_query(map()) :: :error | {:ok, t()}