500
you are viewing a single comment's thread
view the rest of the comments
[-] Semi_Hemi_Demigod@lemmy.world 64 points 2 days ago

I'm giving a $15 bounty to whoever can code a website to ring a tiny bell every time this happens

[-] the_real_monte@sh.itjust.works 27 points 1 day ago

I made a super basic site to track the price difference since the page has loaded. A tiny bell rings if the price has gone down more than $2.43, but you might need to leave the page open for a day or 2 to actually see the price drop enough to ring the bell. I am using a free api to track the price, which has a limit to 30 requests per second. So if the page doesn't fully load for you, wait a few minutes and try reloading the page.

[-] vfsh@lemmy.blahaj.zone 7 points 1 day ago

If request rates start getting problematic you could probably drastically reduce the refresh rate, seems like once per second right now which is way overkill IMO.

Also if you want to share the source I can host a mirror of it to further increase resilience to API ratelimits

[-] the_real_monte@sh.itjust.works 5 points 1 day ago
[-] vfsh@lemmy.blahaj.zone 2 points 22 hours ago

Thanks! I grabbed my own key from FinnHub and am now hosting a mirror at https://tinybell.vfsh.dev/

[-] oxysis@lemm.ee 17 points 2 days ago

I’ll add 10¢ to the pot

[-] bpev@lemmy.world 6 points 2 days ago* (last edited 2 days ago)

Looks like polygon api can get live data 5/req a minute? https://polygon.io/pricing

I'm not super familiar with finance lingo; how is a "stock price" usually determined? ~~SMA?~~

edit: seems like "last quote" or "last trade" are probably the best for this kind of thing? https://polygon.io/docs/rest/stocks/trades-quotes/last-quote Those apis cost money, though. 😭

this post was submitted on 03 Apr 2025
500 points (98.1% liked)

Anticonsumption

317 readers
51 users here now

founded 2 years ago
MODERATORS