krishnavelu / alice_blue

Official Python library for Alice Blue API trading
GNU General Public License v3.0
133 stars 82 forks source link

Enhancement : Please provide an option to pass proxy dictionary as a parameter while calling the requests GET and POST #483

Closed sai061242 closed 1 year ago

sai061242 commented 1 year ago

Please enhance the API to send proxy dictionary as a parameter when invoking the GET and POST requests.

proxyDict = {"https": , "http": } requests.get(url, headers=headers, proxies=proxyDict)

krishnavelu commented 1 year ago

why this is needed?

sai061242 commented 1 year ago

I work and code. My work needs active VPN connection and the client doesn't work on VPN. I am tring to run my algo trading manually with out Clould and I am facing this issue. I tried calling sample requests GET using a proxy server and it is working fine. So if there is a way to pass in proxy server as a parameter to requests it will be very helpful.

I know deploying in cloud will resolve this but if you can make this change It might help others too who are working and doing manual algo trading. Please consider this :)

krishnavelu commented 1 year ago

You can fork my library and do this modification.