Full market configuration as returned by the O2 Exchange API.

Contains contract addresses, fee schedule, trading constraints, and the base/quote asset definitions.

const market = await client.getMarket("fFUEL/fUSDC");
console.log(market.market_id); // "0x..."
console.log(market.base.symbol); // "fFUEL"
console.log(market.quote.symbol); // "fUSDC"
interface Market {
    base: MarketAsset;
    contract_id: ContractId;
    dust: bigint;
    maker_fee: bigint;
    market_id: MarketId;
    min_order: bigint;
    pair: string;
    price_window: number;
    quote: MarketAsset;
    taker_fee: bigint;
}

Properties

Base asset (the asset being bought/sold).

contract_id: ContractId

On-chain contract ID for this order book.

dust: bigint

Dust threshold — orders below this are cancelled (chain integer).

maker_fee: bigint

Maker fee (chain integer).

market_id: MarketId

Unique market identifier (0x-prefixed hex).

min_order: bigint

Minimum order value in quote asset units (chain integer).

pair: string

Human-readable pair string (e.g., "ETH/USDC").

price_window: number

Maximum price deviation window.

Quote asset (the asset used for pricing).

taker_fee: bigint

Taker fee (chain integer).