MarcoPolo / btc-e-client

Clojure Client for BTC-e.com
4 stars 4 forks source link

No globals #1

Closed mediocregopher closed 10 years ago

mediocregopher commented 10 years ago

Finally got around to this. I took out the global atoms that you had, and made a little method that creates a map that we pass around. I know this is a little more work for the common case (except for the public methods, I made passing the map to those optional), but it also makes it really easy to use other currencies, and to have a bot that interacts with multiple accounts/currencies.

MarcoPolo commented 10 years ago

Looks good, I'll merge it, and push it to clojars soon

mediocregopher commented 10 years ago

Please do, our money machine isn't ever gonna arrive so I gotta do it myself :P