Bingex.Swap.QuoteInfo (Bingex v0.1.7)

Represents real-time quote information for a swap contract in BingX.

This module provides structured market data, including pricing and funding rate details.

Summary

Types

t()

Quote information.

Types

t()

@type t() :: %Bingex.Swap.QuoteInfo{
  funding_rate: float(),
  last_price: float(),
  mark_price: float(),
  next_funding_time: float(),
  symbol: binary()
}

Quote information.

Fields:

  • symbol (binary): Trading pair symbol (e.g., "BTC-USDT").
  • funding_rate (float): Most recent funding rate applied to the contract.
  • next_funding_time (integer): Timestamp of the next funding event.
  • mark_price (float): Current mark price of the contract.
  • last_price (float): Latest index price.

Functions

decode(data)

@spec decode(any()) :: {:ok, t()} | :error