News for hackers. Stuff that matters.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by sexy_year on Wednesday February 24, 2021 @08:47PM (#26258774)
If you like stocks and are careful with the way you spend your money, you know how much time goes into buying shares of a stock. It’s tedious and I don’t have 24k for a Bloomberg terminal. Which led me to the idea during xmas break to spend the time creating my own terminal. I introduce you to “Gamestonk Terminal” (probably should’ve sent 1 tweet everyday to Elon Musk for copyrights permission eheh).

In summary, the Terminal (https://github.com/DidierRLopes/GamestonkTerminal) has 7 distinct menus: - Discover Stocks Top gainers; Sectors performance; upcoming earnings releases; top high shorted interest stocks; top stocks with low float; top orders on fidelity; and some SPAC websites with news/calendars.

- Market Sentiment Scrolling through Reddit main posts, and most tickers mentions; Extracting stocktwit sentiment based on bull/bear flags; Twitter in-depth sentiment prediction using AI; Google mentions over time.

- Research Web pages List of good pages to do research on a stock, e.g. macroaxis, zacks, macrotrends, ..

- Fundamental Analysis Read financials from a company from Market Watch, Yahoo Finance, Alpha Vantage, and Financial Modeling Prep API.

- Technical Analysis The usual technical indicators: sma, rsi, macd, adx, bbands, and more.

- Due Diligence Some features are: Latest news of the company; Analyst prices and ratings; Price target from several analysts plot over time vs stock price; Insider activity, and these timestamps marked on the stock price historical data; Latest SEC fillings; Short interest over time; A check for financial warnings based on Sean Seah book.

- Prediction Techniques The one I had more fun with. It tries to predict the stock price, from simple models like sma and arima to complex neural network models, like LSTM. The additional capability here is that all of these are easy to configure. Either through command line arguments, or even in form of a configuration file to define your NN.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by valuearb on Thursday February 25, 2021 @12:36AM (#26260050)
if it doesn't come with an ISDA, I'm not interested.

"JP Morgan Employee : But, uh... you guys are under the capital requirements for an ISDA.

Charlie Geller : By how much?

JP Morgan Employee : [thinking] Uh... how much? One billion, four hundred seventy million. So... a lot.

Charlie Geller : This makes us look bad, doesn't it? That we didn't know what the capital requirements were?

JP Morgan Employee : Uh... it's not great. But keep up those returns and give us a call way down the line, you know. Okay?"

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by ananthrk on Thursday February 25, 2021 @01:52AM (#26260408)
Can you provide some more context on this?
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by slissenburg on Thursday February 25, 2021 @01:59AM (#26260444)
Watch the movie "the big short". It's really good. This is from one of the scenes where too guys try to get a license. Although the manage a few million dollars, in order to get the license they should have even more. Or as it turns out the right connections.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by mortdeus on Thursday February 25, 2021 @03:17AM (#26260808)
the book is even better.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by wrycoder on Thursday February 25, 2021 @10:27AM (#26263733)
Both are good. The flick is quite faithful to the book, especially in tone.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by willturman on Thursday February 25, 2021 @01:58PM (#26266667)
Michael Lewis, author of the Big Short, also wrote Liar's Poker about his experience at Solomon Brothers in the mid-eighties where things like mortgage backed securities were invented. It's captivating.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by slissenburg on Thursday February 25, 2021 @03:38AM (#26260923)
Yep, plus that. Although I had to buy the Dutch (My native language) version too (first bought the English version). The subjects are pretty difficult so reading about them in my native language worked better for me.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by yakshaving_jgt on Thursday February 25, 2021 @07:19AM (#26262068)
It's the best scene in the movie. https://www.youtube.com/watch?v=Qo1OSqBQYmk
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by bidirectional on Thursday February 25, 2021 @09:15AM (#26262917)
Reading the comments, I'm struck by how I read this scene totally differently to most of them. I see an overworked, annoyed young analyst sent to deal with two rich kids (starting a hedge fund with money they made 'taking boats down the river', then skipping the ISDA requirements by calling their neighbour) who are wasting everyone's time by not even doing the absolute minimum research -- it was 2006, just Google ISDA and you find out the requirements.

Also a security guard kicking out two men in suits from a lobby is just weirdly unrealistic.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by omarhaneef on Thursday February 25, 2021 @10:07AM (#26263489)
To test this out, I googled ISDA capital requirements and sure enough it doesn't mention the capital requirements in any of the links I found (ymmv).

I think the issue is that they're bespoke transactions so the credit support required may change depending on the context.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by ThisIsTheWay on Thursday February 25, 2021 @10:56AM (#26264166)
Its a great scene, but this one takes the cake: https://www.youtube.com/watch?v=xbiDrzTd8fE

"That's a nice shirt, do they make it for men?"

"Somehow you're like Dora the Explorer and you're the first person who has found this thing..."

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by jdmoreira on Thursday February 25, 2021 @11:45AM (#26264810)
It's a great scene, but this one takes the cake: https://m.youtube.com/watch?v=DQ5VfKSYvSk

"There’s some shady stuff going down. God, this is intimate. I feel like I’m financially inside of you or something."

"I'm jacked. Jacked to tits!"

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by ThisIsTheWay on Thursday February 25, 2021 @04:49PM (#26268780)
Literally laughed out loud, thanks for the smile on a tough afternoon.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by Flockster on Thursday February 25, 2021 @01:55AM (#26260424)
It's a quote from "The Big Short".
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by barrenko on Thursday February 25, 2021 @03:00AM (#26260737)
I could watch The Big Short and Moneyball all day every day.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by jamesbfb on Thursday February 25, 2021 @07:06AM (#26262004)
I swear we must be the same person!
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by chrisfinazzo on Thursday February 25, 2021 @10:00AM (#26263405)
Don't forget the best line in the movie, usable anytime there is a bit of malfeasance afoot:

"Holy shit, that’s just fucking crazy. That’s fraud!"

I find myself quoting this a hell of a lot in the last few years.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by n0on3 on Thursday February 25, 2021 @01:55AM (#26260423)
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by sezna on Thursday February 25, 2021 @01:53AM (#26260413)
Quote from the movie Margin Call.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by thisarticle on Thursday February 25, 2021 @02:39AM (#26260631)
Also a good movie, but wrong. The Big Short is correct.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by omarhaneef on Thursday February 25, 2021 @10:09AM (#26263503)
You're thinking of: "Please, speak as you might to a young child or a Golden Retriever. It wasn't brains that got me here, I can assure you that."
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by ThisIsTheWay on Thursday February 25, 2021 @10:57AM (#26264196)
Jeremy Irons is a god in Margin Call, such a good performance.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by fareesh on Thursday February 25, 2021 @10:13AM (#26263552)
Ah the wily Brownhole fund from the 2008 collapse
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by josephjrobison on Thursday February 25, 2021 @01:01AM (#26260168)
Wrap it in a SaaS and dummies like me will buy it! Make a mill!
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by spyridonas on Thursday February 25, 2021 @04:54AM (#26261336)
He should accept GME stock as payment medium. 10 stocks per year
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by jk7tarYZAQNpTQa on Thursday February 25, 2021 @11:06AM (#26264301)
I'll give you my GME when you pry it from my dead, cold hands.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by orky56 on Thursday February 25, 2021 @01:57AM (#26260431)
This right here except a mil is an understatement
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by josephjrobison on Thursday February 25, 2021 @01:01PM (#26265874)
Make a trill!
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by tambourine_man on Wednesday February 24, 2021 @10:57PM (#26259528)
Looks awesome. I’d love to see some screen shots as I’m not that literate on the jargon
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by addajones on Wednesday February 24, 2021 @10:32PM (#26259393)
You are a blessing. I thank you to the moon and back. Will definitely check this out and definitely supporting you for your incredible work.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by 29athrowaway on Wednesday February 24, 2021 @11:43PM (#26259784)
Did you use floating point or fixed point numbers?
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by Guest42 on Thursday February 25, 2021 @12:05AM (#26259902)
Great question, I remember inheriting some code that mixed the two and led to some “interesting” results.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by bidirectional on Thursday February 25, 2021 @08:09AM (#26262340)
I can't see any reason to use fixed point numbers here, seems like floating point would be perfectly sufficient.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by 29athrowaway on Thursday February 25, 2021 @11:51AM (#26264884)
Floating point numbers are inadequate to manipulate accounts representing currency, and for finance at a large.

https://stackoverflow.com/questions/3730019/why-not-use-doub...

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by nwallin on Friday February 26, 2021 @02:58PM (#26279146)
You're cargo culting. Floating point numbers are perfectly fine for financial modeling and forecasting. If your goal is to figure out what stocks to buy/sell, it doesn't matter if your software calculates the P/E ratio as 19.232738273816 but the actual value is 19.232738273817. It doesn't even matter if you calculate it as 19.23 but the actual value is 19.22.

When you're storing balances or transacting payments between institutions, you need to emulate a specific set of operations, part of which includes using fixed point numbers. It is not sufficient to just use fixed point, you also need the correct number of digits (AFAIK it's 4 digits with US currency) you need the correct rounding mode, etc.

Every few years someone comes along with a big new idea to rewrite the aging dinosaur COBOL code that runs the financial world in something modern. It never works. Nobody wants to go through the old COBOL code to figure out exactly what the code does, they take a greenfield approach with a description of what the UI is and an incomplete spec of the operations that need to happen. And then when it comes time to test the system, they get balances and numbers that are wrong. Because the only thing they know is "we need to use fixed point" but never bother to understand the actual full scope of how basic financial arithmetic is unique, and different from "normal" arithmetic.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by 29athrowaway on Friday February 26, 2021 @03:17PM (#26279375)
The problem gets compounded as you chain more operations together. Financial calculations often involve long sequences of operations and that is where you can see the true effect of what I am mentioning.

With numbers that are large enough, a 1% or 0.1% difference means a lot of money. And if you have an automated system making decisions based on those numbers that can translate into financial ruin, legal problems, etc.

Leave the ad hominem aside, btw, noone wants to hear about it.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by dan-robertson on Friday February 26, 2021 @07:35PM (#26281515)
Fixed point numbers have finite precision. As soon as you multiply two fixed point numbers you risk losing precision unless you use more space for your result. You can’t fix your “long chain of calculation” by making it fixed point as you’ll still be rounding things (unless it happens that all your numbers need 54-63 bits of precision and you were wasting bits on the exponent)

Apart from in accounting, the two problems with floats are nonassociativity and speed, neither of which are particularly relevant here.

The risk of losing money does not look like subtle floating point rounding errors. It looks like someone fucking up a formula in excel or the model being wrong or the model being right but risk not being hedged.plenty of people in finance will add percentages as x + y instead of doing (1-(1+x)*(1+y)) because it’s simpler (this works fine because log(1+x) is approximately x when it’s small, and it can obviously be made better by taking the log earlier but plenty of percentage inputs to a model may be rough guesses anyway (who cares if you write 5% or log(5%)))

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by coolgeek on Saturday February 27, 2021 @12:42AM (#26282954)
> Nobody wants to go through the old COBOL code to figure out exactly what the code does, they take a greenfield approach with a description of what the UI is and an incomplete spec of the operations that need to happen.

The only way to improve on this description would be to note that the contract rate for each of the persons involved in this endeavor would be in the $485/hour range (of which, the labor provider might get $50). And then to note the 12 layers of management sign-off/approval on top of that - billed separately.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by bidirectional on Thursday February 25, 2021 @12:20PM (#26265262)
No, for finance at large floats are often fine. Plenty of financial calculations cannot be done precisely using fixed point or arbitrary precision numbers either, so there's no point giving up the performance/ease of use that floating point offers. Billions of dollars is transacted based on Excel calculations every day, this whole fixed point for finance thing is a programmer myth.

Of course as you say for accounting you don't want to use floating point, but I can't see anything like that in this application.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by imtringued on Thursday February 25, 2021 @11:09AM (#26264349)
Have you considered the problem that any publicly available indicator suffers from the fact that being the first to execute the strategy is the only way to make money? This would imply an entirely algorithmic trading strategy to reduce any potential for delay. That's how we end up with HFT. Maybe not subsecond HFT but <10s HFT.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by nashequilibrium on Thursday February 25, 2021 @02:15AM (#26260522)
Does it have the chat feature as well?
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by throwaway122378 on Wednesday February 24, 2021 @10:21PM (#26259325)
Anyway to see the UI for people who don’t know anything about code but looking for a investment alternative
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by druidmaster on Wednesday February 24, 2021 @10:45PM (#26259460)
You may want to add a Dockerfile.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by nodesocket on Thursday February 25, 2021 @12:23AM (#26259981)
Just pushed a really simply start of a Docker PR https://github.com/DidierRLopes/GamestonkTerminal/pull/13. Take a look and contribute.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by yellowapple on Wednesday February 24, 2021 @11:16PM (#26259640)
Nothing stopping you from submitting a PR :)
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by ghego1 on Thursday February 25, 2021 @03:02AM (#26260744)
Impressive work, I didn't know could code!
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by RivieraKid on Thursday February 25, 2021 @05:30AM (#26261571)
> probably should’ve sent 1 tweet everyday to Elon Musk for copyrights permission eheh

Why? I assume you're doing this as an advertisment?

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by croutonwagon on Wednesday February 24, 2021 @11:27PM (#26259690)
I dont have a github account....

But i was working through sigaloid's post here

https://github.com/DidierRLopes/GamestonkTerminal/issues/2

And was still hitting a error on compile

Generally ending with

NFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_dfdaf2b8ece8a02eb11f050ec701c0ec NOW. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Ran the following to clear the error

sudo apt-get install build-essential libssl-dev libffi-dev python3-dev

Pretty sure libssl-dev and python3-dev were the only ones needed though

Also UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')

So the following was needed as sigaloid stated

pip3 install python-Levenshtein

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by nodesocket on Thursday February 25, 2021 @12:05AM (#26259899)
Where is the market data (price, volume, etc) from? All open source projects related to stocks seem to use Yahoo quotes, which is essentially abandoned and not supported at all. No SLA or any indication of long term survival.

I found Alpaca[1] which looks decent in terms of a stock API and their upstream data provider Polygon.io[2] which looks even better but costs $199/mo for essentially per tick market data.

[1] https://alpaca.markets/ [2] https://polygon.io

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by sevencolors on Thursday February 25, 2021 @01:02AM (#26260169)
According to the docs it uses https://www.alphavantage.co/
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by cambalache on Thursday February 25, 2021 @01:22AM (#26260258)
He just wanted to push his service. HN comment section has been unbearable recently with the substantial increase of people doing this. It has always been present but now it is almost reaching the point of making the comment section worthless.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by TaylorAlexander on Thursday February 25, 2021 @02:29AM (#26260573)
For real, this has been a big problem for a lot of people. So I built a real time comment pruning algorithm service that lets you browse HN with only quality comments. Subscribe today!
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by Hnrobert42 on Thursday February 25, 2021 @07:13AM (#26262041)
Who just wanted to push this service? OP or sevencolors?

Either way, as a counterweight to all the conspiracy theory nonsense on the web, I have been making an effort to not assume I know people’s hidden intentions. I’d like to invite you to join me in that.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by ImprovedSilence on Thursday February 25, 2021 @12:35PM (#26265478)
Yeah im just as lost as you. Im not really sure who is pushing what service that is their own... either way, I did find all the links relevant, and worthwhile knowing about..... shrug
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by cambalache on Thursday February 25, 2021 @11:54AM (#26264927)
Nigerian princes must really love you.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by lallysingh on Thursday February 25, 2021 @06:27AM (#26261820)
Pushing your own product has been standard and encouraged practice at HN since the beginning. This is an incubator site!
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by scaladev on Thursday February 25, 2021 @07:10AM (#26262026)
Even if you are posting a fake review as a third person?
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by wrycoder on Thursday February 25, 2021 @10:33AM (#26263827)
There are quite a lot of comments that make it to the top which say, "That's nice, I made this similar thing which is really interesting, here's a <link>." Followed by a big thread about their thing.

I don't mind those comments so much, as they can lead to good stuff, but I do mind them derailing the main thread when they are upvoted. So, I often downvote them in retaliation.

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by johnwyles on Thursday February 25, 2021 @01:38AM (#26260349)
I'm OK with it so long as it's something on GitHub, useful, and you can drop in replace it.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by cambalache on Thursday February 25, 2021 @01:49AM (#26260397)
I am OK if it is something directly relevant to the topic and it is presented in a direct manner, but no, 99% of the time it is some disingenuous thing like this: "Hey guys you are talking about nuclear engineering, that made me wonder how fishes in my zone would be affected by a nearby nuclear plant . I use allmyfishes.com which seems to be a great site detailing all the fishes in the US, there is a free tier and good paid plans. _disclaimer_ I founded allmyfishes.com"
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by csomar on Thursday February 25, 2021 @02:32AM (#26260589)
I don't think nodesocket is affiliated with the sites he linked, nor I find any links between the two?
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by roddds on Thursday February 25, 2021 @02:04AM (#26260469)
And it just happened again, in this same thread:

https://news.ycombinator.com/item?id=26260064

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by exdsq on Thursday February 25, 2021 @02:32AM (#26260583)
I think we need some sort of AI tool to identify these cases. I read a review on findbssales.io which says it could do exactly this, with a good payment model based on API calls.

Disclaimer, I built findbssales.io

Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by ecnerwala on Thursday February 25, 2021 @03:25AM (#26260852)
findbssales.io is down.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by spxdcz on Thursday February 25, 2021 @06:25AM (#26261812)
I won’t mention that website, but FYI I built it and I have no idea who posted that comment.
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by g8oz on Thursday February 25, 2021 @11:00AM (#26264244)
What is this low-quality cynicism? Why do you think that it's his service?
Re:Show HN: Can’t afford Bloomberg Terminal? No prob, I buil... by oogali on Thursday February 25, 2021 @11:15AM (#26264428)
Alpaca is primarily for trading.

They were using Polygon for data, but if I recall correctly, I believe seeing an email or such that they're going to roll out their own data and discontinue the Polygon "bridge".