Binance Connector JS
    Preparing search index...

    Class ConfigurationRestAPI

    Index

    Constructors

    Properties

    apiKey: string

    The API key used for authentication.

    ConfigurationRestAPI

    apiSecret?: string

    The API secret used for authentication.

    ConfigurationRestAPI

    backoff?: number

    delay between retry attempts in milliseconds

    1000
    

    ConfigurationRestAPI

    basePath?: string

    override base path

    ConfigurationRestAPI

    compression?: boolean

    enables response compression

    true
    

    ConfigurationRestAPI

    customHeaders?: Record<string, string | string[]>

    Optional custom headers to be sent with the request

    {}
    

    ConfigurationRestAPI

    httpsAgent?: boolean | Agent

    https agent

    false
    

    ConfigurationRestAPI

    keepAlive?: boolean

    enables keep-alive functionality for the connection (if httpsAgent is set then we use httpsAgent.keepAlive instead)

    true
    

    ConfigurationRestAPI

    privateKey?: string | Buffer<ArrayBufferLike>

    private key

    ConfigurationRestAPI

    privateKeyPassphrase?: string

    private key passphrase

    ConfigurationRestAPI

    proxy?: {
        auth?: { password: string; username: string };
        host: string;
        port: number;
        protocol?: string;
    }

    HTTP/HTTPS proxy configuration

    false
    

    ConfigurationRestAPI

    retries?: number

    number of retry attempts for failed requests

    3
    

    ConfigurationRestAPI

    timeout?: number

    set a timeout (in milliseconds) for the request

    1000
    

    ConfigurationRestAPI

    timeUnit?: TimeUnit

    timeUnit (used only on SPOT API)

    ConfigurationRestAPI