Coder Social home page Coder Social logo

Proxy support? about binance-rs-async HOT 11 CLOSED

igosuki avatar igosuki commented on July 23, 2024
Proxy support?

from binance-rs-async.

Comments (11)

KennyYanXM avatar KennyYanXM commented on July 23, 2024 1

you can install proxychains4 and use following command to run behind a proxy:
proxychains4 cargo run

from binance-rs-async.

Igosuki avatar Igosuki commented on July 23, 2024

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)

from binance-rs-async.

Praying avatar Praying commented on July 23, 2024

websocket also need to be set

from binance-rs-async.

Igosuki avatar Igosuki commented on July 23, 2024

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 ?

from binance-rs-async.

Praying avatar Praying commented on July 23, 2024

Websocket is different from rest, so they need different proxy setting

from binance-rs-async.

Igosuki avatar Igosuki commented on July 23, 2024

from binance-rs-async.

Praying avatar Praying commented on July 23, 2024

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.

from binance-rs-async.

Igosuki avatar Igosuki commented on July 23, 2024

That level of customisation would be best served by accessing the underlying client builder directly in the config, I need to think about it.

from binance-rs-async.

Praying avatar Praying commented on July 23, 2024

Do you has a discord or telegram? maybe we can talk about it more effectively.

from binance-rs-async.

Igosuki avatar Igosuki commented on July 23, 2024

Sure, https://discord.gg/KuUN9K9A

from binance-rs-async.

Igosuki avatar Igosuki commented on July 23, 2024

no more news on this, closing.

from binance-rs-async.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.