LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
683 stars 165 forks source link

[Question] How to set network proxy? #219

Closed inix closed 2 years ago

inix commented 2 years ago

Hi: The Binance domains are blocked in some area, how to set network proxy if using this lib? Thanks

oliver-zehentleitner commented 2 years ago

I never tried, but you can find infos here: https://github.com/aaugustin/websockets/issues/364 https://github.com/aaugustin/websockets/issues/475

inix commented 2 years ago

No progress from these two issues.

I never tried, but you can find infos here: aaugustin/websockets#364 aaugustin/websockets#475

oliver-zehentleitner commented 2 years ago

are you able to setup a proxy in your os or gateway?

inix commented 2 years ago

are you able to setup a proxy in your os or gateway?

I have http and socks proxy setup in my MacOS, but I am not familar with Python, nodejs websocket 'ws' have proxy module, I heve tested successfully using Binance Official websocket codes.

oliver-zehentleitner commented 2 years ago

ok i understand!