binance.ex icon indicating copy to clipboard operation
binance.ex copied to clipboard

Support for multiple API keys

Open Valian opened this issue 2 years ago • 1 comments

First of all, thank you a lot for creating this wrapper! It helps me a lot.

I'm making an application that acts on behalf of multiple users. Currently api key and secret are global, stored in config. I'd love to be able to make requests using different credentials.

If I'll find time I'll try to create a PR, but just wanted to create an issue to let you know such feature would be very useful :)

Valian avatar Jan 31 '24 22:01 Valian

Hey! There is a PR open on adding support for passing apikey/secret as opts instead of global vars, can you check it out? https://github.com/dvcrn/binance.ex/pull/107

Reason it's not merged yet was that the initial reporter noticed some problems with it, see this comment: https://github.com/dvcrn/binance.ex/pull/105#issuecomment-1817500535

Could you give this branch a try and report if it works for you?

dvcrn avatar Feb 01 '24 01:02 dvcrn