News for hackers. Stuff that matters.
Re:A terminal stock watcher and stock position tracker by slig on Wednesday February 03, 2021 @08:30AM (#26013415)
For anyone looking for a Yahoo Finance API alternative, try http://alphavantage.co/
Re:A terminal stock watcher and stock position tracker by rcar1046 on Wednesday February 03, 2021 @10:28AM (#26014453)
I would look into https://iexcloud.io/ as well. I used their excellent set of APIs to build https://stockdaddy.io/
Re:A terminal stock watcher and stock position tracker by kennethh on Thursday February 04, 2021 @03:50AM (#26023824)
Pretty cool site, like the simple layout.
Re:A terminal stock watcher and stock position tracker by tbrock on Wednesday February 03, 2021 @09:24AM (#26013805)
Eh, no websocket for prices? I like finnhub (https://finnhub.io) or alpaca (https://alpaca.markets/) better.
Re:A terminal stock watcher and stock position tracker by jordache on Wednesday February 03, 2021 @12:15PM (#26015985)
public websockets API? Doesn't that introduce a lot of scaling issues for the API provider?
Re:A terminal stock watcher and stock position tracker by coder543 on Wednesday February 03, 2021 @01:56PM (#26017585)
Not really. A websocket is "just" a TCP connection.

If the API provider is using a language+framework that can't easily handle lots of concurrent TCP connections, then yes, that could cause scaling issues, but... that's a choice.

There are plenty of ways to build scalable socket servers, and it's especially feasible in languages like Go and Elixir.

Re:A terminal stock watcher and stock position tracker by jordache on Wednesday February 10, 2021 @04:03PM (#26094768)
i thought websocket pattern requires statefulness on the server side. That's the finite constraint that I'm thinking of.
Re:A terminal stock watcher and stock position tracker by coder543 on Wednesday February 10, 2021 @04:48PM (#26095262)
Server side state can take many forms. In general, you already have to track state per customer anyways, and that often goes in a database. You can also keep per client state in the database too, if it won’t fit in memory for some reason.

idk, it all depends on what you’re using the websockets for. If you have to send messages from one websocket client to another, things can get harder because those two websockets might not be connected to the same server.

Re:A terminal stock watcher and stock position tracker by jkarneges on Wednesday February 03, 2021 @01:56PM (#26017572)
It does, but it doesn’t have to. :) https://fanout.io

(Disclosure: founder)

Re:A terminal stock watcher and stock position tracker by slig on Wednesday February 03, 2021 @09:32AM (#26013879)
I forgot to write "a [free] alternative to Yahoo Finances"
Re:A terminal stock watcher and stock position tracker by jdoss on Wednesday February 03, 2021 @08:46AM (#26013516)
A free API key is great, but what is the catch? The whole Robinhood drama about them selling data to third parties has me leery about anything "free" in finance SaaS.
Re:A terminal stock watcher and stock position tracker by alisonkisk on Wednesday February 03, 2021 @10:03AM (#26014171)
Robinhood drama isn't "selling data" it's selling access to fulfill bids.

It's akin ordering delivery from a store and having Instacart be the only option.

Most of the drama was misinformed speculation. A bit was suspicion that the order fulfiller was untrustworthy (because the reason they are willing to provide the service is that they know you will make bad trades, so what happens if you make a good trade that makes them lose money?)

Re:A terminal stock watcher and stock position tracker by kristopolous on Wednesday February 03, 2021 @08:50AM (#26013555)
It's tiered. They have a "pay me" tier.
Re:A terminal stock watcher and stock position tracker by jdoss on Wednesday February 03, 2021 @08:53AM (#26013576)
I totally missed that. Thanks!

edit: For those wondering what the price is it's on this page https://www.alphavantage.co/premium/ which is not very apparent from the front page.

Re:A terminal stock watcher and stock position tracker by Terretta on Wednesday February 03, 2021 @09:32AM (#26013873)
They mention they are “partnered with” https://polygon.io/stocks and send you there for real time.
Re:A terminal stock watcher and stock position tracker by welterde on Wednesday February 03, 2021 @09:08AM (#26013684)
Sadly the limits for the free tier look too low to even run this CLI ticker application off of it (or is it possible to query more than one symbol in one API call?).
Re:A terminal stock watcher and stock position tracker by slig on Wednesday February 03, 2021 @09:30AM (#26013859)
FWIW, last year I was playing with this API and they were not verifying the key properly: just appended anything at the end of the key and it worked.
Re:A terminal stock watcher and stock position tracker by hdra on Wednesday February 03, 2021 @09:52AM (#26014056)
I cant find any info regarding this, but do they have data on global exchanges? More specifically those in Asia?
Re:A terminal stock watcher and stock position tracker by kruxigt on Wednesday February 03, 2021 @10:44AM (#26014649)
What would you say pros and cons are compared to yahoo?
Re:A terminal stock watcher and stock position tracker by slig on Wednesday February 03, 2021 @02:52PM (#26018301)
It's a supported API, with free and paid plans. The Yahoo API has been officially dead for years, they just didn't pull the plug yet.
Re:A terminal stock watcher and stock position tracker by kruxigt on Wednesday February 03, 2021 @05:34PM (#26020099)
Yeah, the state of Yahoo is really strange. It's still the best free one I've found. Why I'm looking for alternatives..