8 ms·
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 2
by sexy_year 6y ago
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 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.
- throwaway122378 6y agoAnyway to see the UI for people who don’t know anything about code but looking for a investment alternative
- throwaway122378 6y agoReally? 2 downvotes for being curious and excited about OPs platform
- addajones 6y agoYou are a blessing. I thank you to the moon and back. Will definitely check this out and definitely supporting you for your incredible work.
- druidmaster 6y agoYou may want to add a Dockerfile.
- yellowapple 6y agoNothing stopping you from submitting a PR :)
- nodesocket 6y agoJust pushed a really simply start of a Docker PR https://github.com/DidierRLopes/GamestonkTerminal/pull/13 https://github.com/DidierRLopes/GamestonkTerminal/pull/13. Take a look and contribute.
- deleted 6y ago[deleted]
- tambourine_man 6y agoLooks awesome. I’d love to see some screen shots as I’m not that literate on the jargon
- 29athrowaway 6y agoDid you use floating point or fixed point numbers?
- Guest42 6y agoGreat question, I remember inheriting some code that mixed the two and led to some “interesting” results.
- bidirectional 6y agoI can't see any reason to use fixed point numbers here, seems like floating point would be perfectly sufficient.
- 29athrowaway 6y agoFloating point numbers are inadequate to manipulate accounts representing currency, and for finance at a large. https://stackoverflow.com/questions/3730019/why-not-use-double-or-float-to-represent-currency https://stackoverflow.com/questions/3730019/why-not-use-doub...
- bidirectional 6y agoNo, 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.
- nwallin 6y agoYou'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.
- croutonwagon 6y agoI dont have a github account.... But i was working through sigaloid's post here https://github.com/DidierRLopes/GamestonkTerminal/issues/2 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
- nodesocket 6y agoWhere 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/ https://alpaca.markets/ [2] https://polygon.io https://polygon.io
- sevencolors 6y agoAccording to the docs it uses https://www.alphavantage.co/ https://www.alphavantage.co/
- cambalache 6y agoHe 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.
- johnwyles 6y agoI'm OK with it so long as it's something on GitHub, useful, and you can drop in replace it.
- cambalache 6y agoI 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"
- 6y ago
- deleted 6y ago[deleted]
- valuearb 6y agoif 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?"
- ananthrk 6y agoCan you provide some more context on this?
- sezna 6y agoQuote from the movie Margin Call.
- deleted 6y ago[deleted]
- thisarticle 6y agoAlso a good movie, but wrong. The Big Short is correct.
- omarhaneef 6y agoYou'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."
- ThisIsTheWay 6y agoJeremy Irons is a god in Margin Call, such a good performance.
- deleted 6y ago[deleted]
- josephjrobison 6y agoWrap it in a SaaS and dummies like me will buy it! Make a mill!
- orky56 6y agoThis right here except a mil is an understatement
- UShouldBWorking 6y agoI'll throw up a site and try it. By the looks of it that would be fine right?
- josephjrobison 6y agoMake a trill!
- spyridonas 6y agoHe should accept GME stock as payment medium. 10 stocks per year
- deleted 6y ago[deleted]
- jk7tarYZAQNpTQa 6y agoI'll give you my GME when you pry it from my dead, cold hands.
- nashequilibrium 6y agoDoes it have the chat feature as well?
- ghego1 6y agoImpressive work, I didn't know could code!
- RivieraKid 6y ago> probably should’ve sent 1 tweet everyday to Elon Musk for copyrights permission eheh Why? I assume you're doing this as an advertisment?
- imtringued 6y agoHave 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.