niXman / binapi

Binance API C++ implementation
Apache License 2.0
253 stars 85 forks source link

How to set proxy? #24

Closed JiangZhengok closed 3 years ago

JiangZhengok commented 3 years ago

I am from China, so I can't access binance. I want to know how to set proxy.

niXman commented 3 years ago

I had no goal of supporting a proxy, so I can only recommend using a VPN.

JiangZhengok commented 3 years ago

I had no goal of supporting a proxy, so I can only recommend using a VPN.

I have a VPN and I can access binance by firefox browser, but I don't know how to access binance in your project(binapi). I wish you can help me.

If use libcurl, we can set proxy use curl_easy_setopt(m_pCurl, CURLOPT_PROXY, "127.0.0.1:8888"); but I don't know how to set proxy in this project.

niXman commented 3 years ago

I have a VPN and I can access binance by firefox browser, but I don't know how to access binance in your project(binapi).

if you use a VPN on your device, then all traffic from this device will go through the VPN.

niXman commented 3 years ago

@JiangZhengok close please.