CCXT.Fee (ccxt_client v0.6.1)

Copy Markdown View Source

Fee information attached to trades and orders.

Represents exchange fees with currency denomination, absolute cost, and rate (as a decimal fraction).

Fields

  • currency - Fee currency (e.g., "USDT", "BTC")
  • cost - Absolute fee amount
  • rate - Fee rate as decimal (e.g., 0.001 for 0.1%)

Summary

Functions

JSON Schema for the Fee unified type.

Types

t()

@type t() :: %CCXT.Fee{
  cost: number() | nil,
  currency: String.t() | nil,
  rate: number() | nil
}

Functions

schema()

@spec schema() :: map()

JSON Schema for the Fee unified type.