Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the "proxy" parameter to specify a proxy server does not work #669

Open
Krisap4uk opened this issue Jan 28, 2025 · 0 comments
Open

the "proxy" parameter to specify a proxy server does not work #669

Krisap4uk opened this issue Jan 28, 2025 · 0 comments

Comments

@Krisap4uk
Copy link

Krisap4uk commented Jan 28, 2025

When specifying a proxy parameter of the form
http://ip:port
the request does not reach the proxy server and is executed directly

// version "binance-api-node": "0.12.9"

'use strict';

const { default: Binance } = require('binance-api-node');

async function main() {
    const binanceConfig = {
        apiKey: process.env.API_KEY,
        apiSecret: process.env.API_SECRET,
        proxy: process.env.PROXY_URL,
    };
    console.log('binanceConfig:', binanceConfig);

    const binanceClient = Binance(binanceConfig);

    const deposits = await binanceClient.depositHistory({ limit: 100 });

    console.log('deposits:', deposits);
}

main().catch(error => {
    console.error(error);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant