Closed Praying closed 8 months ago
If you're using an http proxy or a load balancer you can simply use its host and port, so no difference here. If we're talking about a socks proxy, that can be added (https://docs.rs/reqwest/latest/reqwest/struct.Proxy.html)
websocket also need to be set
Your requirement is unclear, as using an http proxy would simply require changing the URL in the config. What kind of proxy are you accessing exactly ?
Websocket is different from rest, so they need different proxy setting
Can you give a real world example using docker or rust mimicking your issue that we can test connectivity against ?
On Mon, Feb 20, 2023, 16:51 Praying @.***> wrote:
Websocket is different from rest, so they need different proxy setting
— Reply to this email directly, view it on GitHub https://github.com/Igosuki/binance-rs-async/issues/80#issuecomment-1437227777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADDFBQFWON4MG7N2C5QZW3WYOHHPANCNFSM6AAAAAAU43JYCE . You are receiving this because you commented.Message ID: @.***>
It seems not easy to test,which has strong correlation with country policy. But you should know that, reqwest and websocket has independent tcp connection, so reqwest set a proxy doesn't works for websocket.
That level of customisation would be best served by accessing the underlying client builder directly in the config, I need to think about it.
Do you has a discord or telegram? maybe we can talk about it more effectively.
you can install proxychains4 and use following command to run behind a proxy:
proxychains4 cargo run
no more news on this, closing.
some areas cannot access binance directly, so they need a proxy, does this project support it?