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

    Interface WSRequest

    WebSocket request message format.

    Standard request format sent to XTB WebSocket API. Each request has a unique ID for matching responses.

    const request: WSRequest = {
    reqId: 'ping_1640995200_1',
    command: [{
    CoreAPI: {
    endpoint: 'meta1',
    ping: {}
    }
    }]
    };
    interface WSRequest {
        command: CoreAPICommand[];
        reqId: string;
    }
    Index

    Properties

    Properties

    command: CoreAPICommand[]

    Array of CoreAPI commands (usually contains one command)

    reqId: string

    Unique request ID for matching responses