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

coinbasepro webproxy not working #22254

Open
sharpduckk opened this issue Apr 23, 2024 · 3 comments
Open

coinbasepro webproxy not working #22254

sharpduckk opened this issue Apr 23, 2024 · 3 comments
Assignees

Comments

@sharpduckk
Copy link

sharpduckk commented Apr 23, 2024

Operating System

ubuntu22.04

Programming Languages

JavaScript / Nodejs

CCXT Version

4.3.4

Description

before I use 4.1.37 -> its working with web proxy (my proxy server is squid server)
I updated ccxt version to 4.3.4 then, not working now.

I think httpsProxy option not passed to ccxt exchange instance correctly (may it ignored).

also tested, proxyUrl httpagent something likethat but not working

Code

let ccxt = require('ccxt');
let exch_ccxtpro =new ccxt.pro.coinbasepro({
            'apiKey': "mykey", 
            'secret': "mysecret",
            'password': "my pw",
        });
exch_ccxtpro.httpsProxy = 'http://1.2.3.4:3128';  // my proxy server (squid)
async function main(){
    await exch_ccxtpro.loadMarkets();
    let aa =await exch_ccxtpro.watchOrderBook('BTC/USDT')
    console.log(aa)
}
main()
@ttodua ttodua self-assigned this Apr 23, 2024
@ttodua
Copy link
Member

ttodua commented Apr 23, 2024

Thanks for the report!
before I have another reply, did you try exch_ccxtpro.httpProxy = ... (instead of httpsProxy) before?

@ttodua
Copy link
Member

ttodua commented Apr 23, 2024

second, for WS proxy, you need to use wsProxy (or wssProxy) instead of http[s]Proxy

@sharpduckk
Copy link
Author

sharpduckk commented Apr 25, 2024

I tired exch_ccxtpro.httpProxy already (and wsProxy, wssProxy also)

in case of ver 4.1.37, only .httpsProxy works for me

with newer version(v4.3.4) I tried (httpsProxy) on gateio -> it works

but coinbasepro was not, It may has something difference..

any other way to prove it ?

thank you

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

2 participants