aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md46
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
3A console-based application to watch stock prices and currency exchange rates.
4
5## Setup
6
7```
8pip install -r requirements.txt
9```
10
11### API Endpoints
12
13The application queries the following APIs. You need to register an account on
14Rapid API and subscribe to them. The application is written to try to stay under
15the request limit of the free tiers, although that will also depend on how many
16stocks and currencies you decide to query. For a small set, the free tier of the
17APIs 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
22Once you have created an account and subscribed, define the environment variable
23`RAPIDAPI_KEY` with your API key prior to running the application. The
24application queries this variable to determine your API key.
25
26### Stocks and Currency
27
28The application state is persisted in the file `state.txt`. To define which
29stocks to query, add/remove the necessary lines to this file.
30
31The syntax of a stock line is:
32
33```
34sticker price change change%
35```
36
37The syntax of a currency exchange is:
38
39```
40from/to rate
41```
42
43For stocks, you can leave all fields but the sticker to 0. For exchange rates,
44you can leave the rate to 0.
45
46See examples in the provided state file.