diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..0bbac08 --- /dev/null +++ b/README.md | |||
@@ -0,0 +1,46 @@ | |||
1 | # Market Watch | ||
2 | |||
3 | A console-based application to watch stock prices and currency exchange rates. | ||
4 | |||
5 | ## Setup | ||
6 | |||
7 | ``` | ||
8 | pip install -r requirements.txt | ||
9 | ``` | ||
10 | |||
11 | ### API Endpoints | ||
12 | |||
13 | The application queries the following APIs. You need to register an account on | ||
14 | Rapid API and subscribe to them. The application is written to try to stay under | ||
15 | the request limit of the free tiers, although that will also depend on how many | ||
16 | stocks and currencies you decide to query. For a small set, the free tier of the | ||
17 | APIs should be sufficient. Otherwise, consider subscribing to the paid tiers. | ||
18 | |||
19 | - Stock: https://rapidapi.com/amansharma2910/api/realstonks | ||
20 | - Currency: https://rapidapi.com/juhestudio-juhestudio-default/api/exchange-rate-api1 | ||
21 | |||
22 | Once you have created an account and subscribed, define the environment variable | ||
23 | `RAPIDAPI_KEY` with your API key prior to running the application. The | ||
24 | application queries this variable to determine your API key. | ||
25 | |||
26 | ### Stocks and Currency | ||
27 | |||
28 | The application state is persisted in the file `state.txt`. To define which | ||
29 | stocks to query, add/remove the necessary lines to this file. | ||
30 | |||
31 | The syntax of a stock line is: | ||
32 | |||
33 | ``` | ||
34 | sticker price change change% | ||
35 | ``` | ||
36 | |||
37 | The syntax of a currency exchange is: | ||
38 | |||
39 | ``` | ||
40 | from/to rate | ||
41 | ``` | ||
42 | |||
43 | For stocks, you can leave all fields but the sticker to 0. For exchange rates, | ||
44 | you can leave the rate to 0. | ||
45 | |||
46 | See examples in the provided state file. | ||