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

    Enumeration SubscriptionEid

    Element IDs for WebSocket data subscriptions.

    These IDs specify different types of real-time data available through the XTB WebSocket API. Verified through live testing.

    // Subscribe to real-time quotes
    await ws.send('subscribeTicks', {
    getAndSubscribeElement: {
    eid: SubscriptionEid.TICKS,
    keys: ['9_AAPL.US_6']
    }
    });
    Index

    Enumeration Members

    GROUP_SETTINGS: 5

    EID 5: Group settings (xgroupsettings) — lotMin, lotMax, lotStep, tradeable

    POSITIONS: 1

    EID 1: Open positions (xcfdtrade) — symbol, side, openPrice, volume, order ID

    REQUEST_STATUS: 6

    EID 6: Request status — subscribe to get trade confirmations and execution updates

    SYMBOL_GROUPS: 4

    EID 4: Symbol groups (xsymbolgroup) — name, category, businessAssetClass

    SYMBOLS: 3

    EID 3: Symbols catalog (xcfdsymbol) — name, quoteId, idAssetClass, description, precision, groupId

    TICKS: 2

    EID 2: Tick data (xcfdtick) — bid, ask, high, low, bidVolume, askVolume

    TOTAL_BALANCE: 1043

    EID 1043: Total account balance (xtotalbalance) — balance, equity, margin, freeMargin