Rujira.Fin.Book.Price (rujira_ex v0.0.1)

Copy Markdown View Source

Represents a price level in the order book with associated order details.

Summary

Types

side()

@type side() :: :bid | :ask

t()

@type t() :: %Rujira.Fin.Book.Price{
  price: Decimal.t(),
  side: side(),
  total: Rujira.Amount.t(),
  value: Rujira.Amount.t()
}

Functions

new(side, arg2)

@spec new(side(), map()) :: {:ok, t()} | {:error, term()}