4 ms·
This is dangerous haha! It seems the price coming back from cryptonator doesn't update, TUSD is a stable coin but surely the bitcoin rate against it should be
by dcsan 7y ago
This is dangerous haha!
It seems the price coming back from cryptonator doesn't update, TUSD is a stable coin but surely the bitcoin rate against it should be updating every 30s ?
https://api.cryptonator.com/api/ticker/btc-tusd https://api.cryptonator.com/api/ticker/btc-tusd
https://www.cryptonator.com/api/ https://www.cryptonator.com/api/
> Prices are updated every 30 seconds
- joosters 7y agoIt also seems exceptionally risky to grab a price off some random website and then trade blindly on another. Shouldn't you be getting the prices from the market you are actually trading in?
- thomasfromcdnjs 7y agoYou are correct, the code is more of a tutorial, it should have error prevention. I made it pull from a third party global average because an individual market can shift a lot depending on how volatile it is.
- jacksnipe 7y agoWouldn’t you want your trading bot to have access to that volatility?!
- dcsan 7y agomy point is the API above doesn't seem to update much at all. Maybe every 30 minutes? https://apiv2.bitcoinaverage.com/#price-data https://apiv2.bitcoinaverage.com/#price-data this seems like a better free API, wondering what others use? is there anything with tickdata not just 15s?