Table of Contents
The purpose of this repository is to enhance investment research and harness the capabilities of large language models (LLMs). Currently, there are two features available in this repository:
These features leverage the power of LLMs to provide valuable insights and information to investors, enabling them to make informed decisions. By utilizing these tools, investors can gain a deeper understanding of market sentiment and potential investment opportunities. Key features of Findastic:
These features are designed to provide users with valuable insights into the market, keep them up-to-date with the latest developments, and help them make informed decisions about their investments. Findastic is a comprehensive platform/data providor that aims to offer a range of tools and resources to help investors stay ahead of the curve. pip install -r requirements.txt In the next step, we need to set the following API keys namely:-
Note: Other than Open AI, the free version of the API keys should suffice for general individual academic research. Cohere AI currently has a trial API key plan which allows 5000 requests per month while AI21 is free till July 31st 2023. We use Cohere/AI21 wherever we see a indistinguishable output between OpenAI and the alternative. However, our experimentation process shows that OpenAI's text DaVinci model performs the best especially in reasoning,classification and segmentation. Once we have all the API keys set up, we create a yaml file in the /data folder as follows:- cd data apis.yaml config sample OPENBB:
ALPHA_VANTAGE_KEY:
FINANCIALMODELLING_AND_PREP_KEY:
FINNHUB_KEY:
POLYGON_KEY:
FRED_KEY:
STOCKS:
- 'AAPL'
- 'TSLA'
- 'V'
- 'MSFT'
- 'AMZN'
- 'NVDA'
- 'META'
- 'GOOG'
- 'BRK-B'
- 'JNJ'
LLMS:
COHERE_API_KEY:
OPENAI_API_KEY:
AI21_API_KEY: This example above is for 10 stocks listed above. Please keep your stock tickers that you want analyzed by adding to the STOCKS key in the yaml. We are using OpenBB as our data vendor as it is an open-source investment research platform. We are collecting the following information about stocks.
In order to collect data, run the following command. python main.py This would create folders for each stock along with the necessary analysis. The algorithm we use is as follows:-
Generate a sentiment score of a headline
The outputs can only be [Strongly Negative,Negative,Neutral,Positive,Strongly Positive]
Input: Tesla Should Consider Buying Ads. It Could Help the Stock.
Output: Negative
Input: Tesla Inc. stock falls Tuesday, still outperforms market
Output: Negative
Input: Tesla: the problem is Musk’s multitasking, not his stake
Output: Negative
Input: GM earnings preview; Tesla raises 2023 capital expenditure forecast
Output: Each headline has a different set of training examples depending on its similarity with the trained examples. The algorithm we use is as follows:-
A sample output is as follows:- Positive News
1. iPad net sales increased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to higher net sales of iPad and iPad Air.
2. Services net sales increased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to higher net sales from cloud services, the App Store and music.
3. Services gross margin increased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to higher Services net sales.
4. The Company's effective tax rate for the first quarter of 2023 was lower compared to the same quarter in 2022 due primarily to a higher U. S. federal R & D credit, lower state income taxes and a lower effective tax rate on foreign earnings, largely offset by lower tax benefits from share-based compensation. Negative News:
1. Europe net sales decreased during the first quarter of 2023 compared to the same quarter in 2022 due to the weakness in foreign currencies relative to the U. S. dollar, which contributed to lower net sales of iPhone and Mac.
2. Japan net sales decreased during the first quarter of 2023 compared to the same quarter in 2022 due to the weakness of the yen relative to the U. S. dollar, which contributed to lower net sales of Services and Mac.
3. Mac net sales decreased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to lower net sales of MacBook Pro.
4. Wearables, Home and Accessories net sales decreased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to lower net sales of AirPods, partially offset by higher net sales of Watch.
5. Products Gross Margin Products gross margin decreased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to the weakness in foreign currencies relative to the U. S. dollar and lower Products volume.
6. Services gross margin percentage decreased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to the weakness in foreign currencies relative to the U. S. dollar and higher Services costs, partially offset by improved leverage.
7. iPhone iPhone net sales decreased during the first quarter of 2023 compared to the same quarter in 2022 due primarily to lower net sales from the Company’s new iPhone models launched in the fourth quarter of 2022. Here is the roadmap to the following questions:-
Reach out to the maintainer at one of the following places: |