geopan / bittrex-bot

A bot designed for trading on bittrex
11 stars 4 forks source link

Use on the browser? #1

Open talvasconcelos opened 6 years ago

talvasconcelos commented 6 years ago

Hi man, (i'm sorry i didn't tested it myself...) can i use this on the browser? I mean, can i import the class on React for instance and the requests will work?

I tried a couple of times, using the node-bittrex-api and if i import it on React, webpack crashes. If i try to call the API with fetch, it shows that CORS error...

I'm trying to build (and learn) a scanner that eventually makes buys and sells on Bittrex (for now). The scanner is working but not on the browser as i wanted it. Also it would be nice if i could get info from the bot on the browser, that's why i'm aksing. That way i'd ditch the node-bittrex.api package and use your method.

Thanks, Tiago

geopan commented 6 years ago

Hi Tiago,

Thanks for opening this. I don't have much experience with React or webpack yet. I guess it is worth trying. The bittrex-bot (essentially a wrap up of the bittrex-api) is fairly simple but you will still face the CORS issue unless you enable Cross-Origin Resource Sharing somehow in your app.

Good luck with your project!

Cheers Guillaume

talvasconcelos commented 6 years ago

Any chance we can have a chat? telegram perhaps?