No project description provided
Project description
stocklake
Table of Contents
Installation
pip install stocklake
Quick start
pre requesties:
- docker && docker compose
1. setup docker compose
Let's create docker compose file.
touch docker-compose.yml
Copy this docker compose file contents into the your docker compose file.
Then, run docker containers.
docker compose up -d
This command builds the following 3 containers.
- PostgreSQL for stocklake data.
- Metabase Web UI
- PostgreSQL for metabase.
2. Download NASDAQ API data.
Run the following command to download data from nasdaq API and save into PostgreSQL.
stocklake download nasdaqapi --exchange nasdaq --store_type postgresql
3. Setup metabase
Accessing the metabase web ui (Metabase Web UI) and setup connection of stocklake PostgreSQL database with the following settings.
section | value |
---|---|
Database Type | PostgreSQL |
Host | stocklake-db |
Port | 5432 |
Database name | stocklake |
Username | postgres |
Password | password |
Other settings can be theier default values.
Now you can see the Nasdaq API data on your metabase dashborad!
Supported APIs
name | status | API Docs | Additional Information |
---|---|---|---|
Nasdaq API (Screener) | ✅ | URL | |
Polygon API (Stock Financials Vx) | ✅ | URL | Data Fields Information |
Polygon API (Tickers) | ✅ | URL | |
Wikipedia: List of S&P 500 companies | ✅ | URL |
Examples
Nasdaq API (Screener)
stocklake download nasdaqapi --exchange nasdaq --store_type postgresql
Polygon API (Stock Financials Vx)
stocklake download polygonapi stock-financials-vx --symbols AAPL --store_type postgresql
Wikipedia: List of S&P 500 companies
stocklake download wikisp500 --store_type postgresql
License
stocklake
is distributed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stocklake-0.0.15.tar.gz
(26.6 kB
view hashes)
Built Distribution
Close
Hashes for stocklake-0.0.15-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5756453d034ee03c6a1cd2ee95a17bbee575c507c9a241b6dae2a84f441f9c43 |
|
MD5 | fdb9b97015b8674cecb71294d4e17971 |
|
BLAKE2b-256 | 1acb8b9145d7bb4927fd50487785e8c6b490a9c4267f793f5dd46a9dfdcb1bc1 |