ExCcxt.Ticker (ex_ccxt v0.1.1)

Represents a ticker (price data) for a trading symbol from a cryptocurrency exchange.

A ticker contains current market information including prices (bid, ask, last, etc.), volume data, price changes, and timestamps. This struct is returned by ticker-related functions such as ExCcxt.fetch_ticker/3 and ExCcxt.fetch_tickers/2.

Fields

  • :symbol - Trading pair symbol (e.g., "BTC/USDT")
  • :bid - Current highest bid price
  • :ask - Current lowest ask price
  • :last - Last trade price
  • :open - Opening price for the period
  • :close - Closing price for the period
  • :high - Highest price for the period
  • :low - Lowest price for the period
  • :base_volume - Volume in base currency
  • :quote_volume - Volume in quote currency
  • :change - Absolute price change
  • :percentage - Percentage price change
  • :vwap - Volume-weighted average price
  • :timestamp - Unix timestamp in milliseconds
  • :datetime - ISO datetime string
  • :info - Raw exchange-specific data

Summary

Types

t()

@type t() :: %ExCcxt.Ticker{
  ask: float() | nil,
  average: float() | nil,
  base_volume: float() | nil,
  bid: float() | nil,
  change: float() | nil,
  close: float() | nil,
  datetime: NaiveDateTime.t() | nil,
  high: float() | nil,
  info: map() | nil,
  last: float() | nil,
  low: float() | nil,
  open: float() | nil,
  percentage: float() | nil,
  quote_volume: float() | nil,
  symbol: String.t() | nil,
  timestamp: integer() | nil,
  vwap: float() | nil
}