xtb-api-unofficial - v0.1.0
    Preparing search index...

    Interface Quote

    Real-time quote/tick data.

    Contains current market prices and optional daily high/low information.

    const quote: Quote = {
    symbol: 'AAPL.US',
    bid: 150.25,
    ask: 150.35,
    spread: 0.10,
    high: 152.80,
    low: 149.50,
    time: 1640995200000 // Unix timestamp
    };

    console.log(`${quote.symbol}: $${quote.bid}/$${quote.ask} (spread: $${quote.spread})`);
    interface Quote {
        ask: number;
        bid: number;
        high?: number;
        low?: number;
        spread: number;
        symbol: string;
        time?: number;
    }
    Index

    Properties

    ask: number

    Current ask (sell) price

    bid: number

    Current bid (buy) price

    high?: number

    Daily high price

    low?: number

    Daily low price

    spread: number

    Bid-ask spread

    symbol: string

    Symbol name

    time?: number

    Quote timestamp (Unix milliseconds)