Binance Connector JS
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Connects to the Binance WebSocket streams and returns a WebsocketStreamsConnection instance.

      Parameters

      • Optionaloptions: { mode?: "single" | "pool"; poolSize?: number; stream?: string | string[] } = {}

        Optional connection options.

        • Optionalmode?: "single" | "pool"

          The connection mode, either 'single' or 'pool'. Overwrite the mode option in the configuration.

        • OptionalpoolSize?: number

          The number of connections to use in pool mode. Overwrite the poolSize option in the configuration.

        • Optionalstream?: string | string[]

          The stream(s) to connect to.

      Returns Promise<MarginTradingWebsocketStreams.WebsocketStreamsConnection>

      • A promise that resolves to a WebsocketStreamsConnection instance.