generated from luizcartolano2/github-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84cf52f
commit 014b251
Showing
8 changed files
with
253 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## How To Analyse Stock Information? | ||
|
||
If you want to retrieve historical data and analyse it, so | ||
you're in luck! The `stock-analyser` package can help you | ||
get this done. | ||
|
||
Download the code from this GitHub repository and run some | ||
Docker commands to get a running API to do it for you: | ||
|
||
```shell | ||
docker-compose build | ||
docker-compose up | ||
``` | ||
|
||
### Endpoints | ||
|
||
#### Ping | ||
|
||
- **Method**: GET | ||
- **URL**: `http://127.0.0.1:5000/ping` | ||
|
||
#### Tickers | ||
|
||
- **Method**: GET | ||
- **URL**: `http://127.0.0.1:5000/tickers` | ||
|
||
#### Post | ||
|
||
- **Method**: POST | ||
- **URL**: `http://127.0.0.1:5000/tickers` | ||
- **Body**: | ||
```json | ||
{ | ||
"tickers": ["AAPL"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
This site contains the project documentation for the | ||
`stock-analyser`. Its aim is to give you a server that retrieves information | ||
from stock exchanges using multiple providers and also doing analyses for these. | ||
|
||
## Table Of Contents | ||
|
||
The documentation follows the best practice for | ||
project documentation as described by Daniele Procida | ||
in the [Diátaxis documentation framework](https://diataxis.fr/) | ||
and consists of four separate parts: | ||
|
||
1. [How-To Guides](how-to-guides.md) | ||
2. [Reference](reference.md) | ||
|
||
Quickly find what you're looking for depending on | ||
your use case by looking at the different pages. | ||
|
||
## Acknowledgements | ||
|
||
I want to extend my sincerest gratitude to our steadfast office plants, | ||
for silently witnessing our triumphs, failures, and occasional office drama | ||
without ever leafing us hanging. To the coffee machine, for being the unsung hero | ||
of our productivity and for always perking us up, one cup at a time. | ||
A huge shoutout to my patient family and friends, who have perfected the | ||
art of nodding along to our techno-babble without skipping a beat. | ||
And last but not least, a heartfelt thank you to the internet – for | ||
being our reliable co-pilot through the highs and lows of this project, | ||
and for providing endless cat videos during those much-needed breaks. | ||
Without all of you, this endeavor would have been as futile as trying to find a | ||
`Ctrl + Alt + Delete` button on a typewriter. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
This part of the project documentation focuses on | ||
an **information-oriented** approach. Use it as a | ||
reference for the technical implementation of the | ||
`stock-analyser` project code. | ||
|
||
## Flask Application | ||
::: src.app | ||
|
||
## API Client Application | ||
::: src.client.api_client | ||
::: src.client.api_name | ||
::: src.client.frequency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
site_name: Stock Analyser Project | ||
|
||
theme: | ||
name: "material" | ||
|
||
plugins: | ||
- mkdocstrings: | ||
handlers: | ||
custom_handler: | ||
handler_config_option: yes | ||
options: | ||
some_config_option: "a" | ||
other_config_option: 0 | ||
|
||
nav: | ||
- Stock Analyser: index.md | ||
- How-To Guides: how-to-guides.md | ||
- reference.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "2e99fe44-6a26-4cd7-8f58-1a696487c8dc", | ||
"name": "stock-analyser", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | ||
"_exporter_id": "34091265" | ||
}, | ||
"item": [ | ||
{ | ||
"name": "ping", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://127.0.0.1:5000/ping", | ||
"protocol": "http", | ||
"host": [ | ||
"127", | ||
"0", | ||
"0", | ||
"1" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"ping" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "tickers", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://127.0.0.1:5000/tickers", | ||
"protocol": "http", | ||
"host": [ | ||
"127", | ||
"0", | ||
"0", | ||
"1" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"tickers" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "post", | ||
"request": { | ||
"method": "POST", | ||
"header": [], | ||
"body": { | ||
"mode": "raw", | ||
"raw": "{\n \"tickers\": [\"APPL\"]\n}", | ||
"options": { | ||
"raw": { | ||
"language": "json" | ||
} | ||
} | ||
}, | ||
"url": { | ||
"raw": "http://127.0.0.1:5000/tickers", | ||
"protocol": "http", | ||
"host": [ | ||
"127", | ||
"0", | ||
"0", | ||
"1" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"tickers" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "prices", | ||
"request": { | ||
"method": "GET", | ||
"header": [], | ||
"url": { | ||
"raw": "http://127.0.0.1:5000/prices", | ||
"protocol": "http", | ||
"host": [ | ||
"127", | ||
"0", | ||
"0", | ||
"1" | ||
], | ||
"port": "5000", | ||
"path": [ | ||
"prices" | ||
] | ||
} | ||
}, | ||
"response": [] | ||
} | ||
] | ||
} |