Bingex.Swap.Model.ContractInfo (Bingex v0.1.8)

Represents contract information for a swap contract in BingX.

Summary

Types

contract_status()

@type contract_status() :: :online | :pre_online | :offline | :forbidden

t()

@type t() :: %Bingex.Swap.Model.ContractInfo{
  asset: binary(),
  closing_status: binary(),
  contract_id: term(),
  currency: binary(),
  guaranteed_stop_fee_rate: binary(),
  guaranteed_stop_status: boolean(),
  launch_time: non_neg_integer(),
  maintain_time: non_neg_integer(),
  maker_fee_rate: float(),
  min_quantity: float(),
  min_quote_amount: float(),
  off_time: non_neg_integer(),
  opening_status: binary(),
  price_precision: integer(),
  quantity_precision: integer(),
  status: contract_status(),
  symbol: binary(),
  taker_fee_rate: float(),
  transactions_status: boolean()
}

Functions

decode(data)

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