Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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://www.cryptonator.com/api/ > Prices are updated every 30 seconds



It 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?


You 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.


Wouldn’t you want your trading bot to have access to that volatility?!


my point is the API above doesn't seem to update much at all. Maybe every 30 minutes?

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?




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: