Skip to content

Commit 12c1018

Browse files
authored
Merge pull request #47 from HeyLittleJohn/initial-release
Code ready for initial release
2 parents efb409f + 87610cc commit 12c1018

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+321
-6003
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "Data Pipeline-CLI orchestrator",
99
"type": "debugpy",
1010
"request": "launch",
11-
"program": "~/option_bot/option_bot/data_pipeline/main.py",
11+
"program": "~/curator/curator/data_pipeline/main.py",
1212
"console": "integratedTerminal",
1313
"justMyCode": true,
1414
"args": [
@@ -51,7 +51,7 @@
5151
"name": "Training Agent",
5252
"type": "debugpy",
5353
"request": "launch",
54-
"program": "~/option_bot/option_bot/rl_agent/main.py",
54+
"program": "~/curator/curator/rl_agent/main.py",
5555
"console": "integratedTerminal",
5656
"justMyCode": true,
5757
"args": [

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ BUILDKIT_PROGRESS=plain
77

88
check:
99
poetry install
10-
poetry run isort option_bot/
11-
poetry run black option_bot/
12-
poetry run flake8 option_bot/
10+
poetry run isort curator/
11+
poetry run black curator/
12+
poetry run flake8 curator/
1313

1414
DESCRIPTION="DB Update"
1515
update_db:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Install [pyenv](https://github.com/pyenv/pyenv) and use it to create a virtualen
1818

1919
### Poetry
2020

21-
We use [Poetry](https://python-poetry.org/) for dependency management. Once poetry is installed on your machine and you've cloned this repo, go into the project root `option_bot` directory and run `poetry install` to install all dependencies indicated in the pyTOML.
21+
We use [Poetry](https://python-poetry.org/) for dependency management. Once poetry is installed on your machine and you've cloned this repo, go into the project root `curator` directory and run `poetry install` to install all dependencies indicated in the pyTOML.
2222

2323
### Data Sources
2424

@@ -29,7 +29,7 @@ Likewise, store your username, password, and MFA QR code for Robinhood locally u
2929

3030
## Using the App
3131

32-
To begin using the app, navigate to your root `option_bot` folder (after having poetry installed everything), and run the following command to build your local db:
32+
To begin using the app, navigate to your root `curator` folder (after having poetry installed everything), and run the following command to build your local db:
3333
```CLI Command Here```
3434

3535
Then run the below command to view the available CLI for the project:

alembic/env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from sqlalchemy.ext.asyncio import create_async_engine
77

88
from alembic import context
9-
from option_bot.db_tools.schemas import Base
10-
from option_bot.proj_constants import POSTGRES_DATABASE_URL
9+
from curator.db_tools.schemas import Base
10+
from curator.proj_constants import POSTGRES_DATABASE_URL
1111

1212

1313
# this is the Alembic Config object, which provides
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
TaskID,
2525
)
2626

27-
from option_bot.proj_constants import log
27+
from curator.proj_constants import log
2828

2929

3030
class QuoteScheduler(RoundRobin):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
This package contains the tools, scripts, and clients needed to download data from the Polygon API, clean it, and upload to . Downloaded data is stored in raw `.json` in the `option_bot/data/` directory.
5+
This package contains the tools, scripts, and clients needed to download data from the Polygon API, clean it, and upload to . Downloaded data is stored in raw `.json` in the `curator/data/` directory.
66

77
## Organization
88

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
from db_tools.queries import lookup_multi_ticker_ids
2323
from db_tools.utils import OptionTicker
2424

25-
from option_bot.proj_constants import POLYGON_BASE_URL, log
26-
from option_bot.utils import pool_kwarg_config
25+
from curator.proj_constants import POLYGON_BASE_URL, log
26+
from curator.utils import pool_kwarg_config
2727

2828
planned_exceptions = (
2929
InvalidArgs,
@@ -111,7 +111,7 @@ async def download_options_prices(o_tickers: list[tuple[str, int, datetime, str]
111111
o_tickers: list of OptionTicker tuples
112112
month_hist: number of months of history to pull
113113
"""
114-
pool_kwargs = {"childconcurrency": 400, "maxtasksperchild": 50000}
114+
pool_kwargs = {"childconcurrency": 250, "maxtasksperchild": 50000}
115115
op_prices = HistoricalOptionsPrices(months_hist=months_hist)
116116
await api_pool_downloader(paginator=op_prices, pool_kwargs=pool_kwargs, args_data=o_tickers)
117117

@@ -134,7 +134,7 @@ async def download_options_quotes(ticker: str, o_tickers: list[OptionTicker], mo
134134
o_tickers: list of OptionTicker tuples
135135
month_hist: number of months of history to pull
136136
"""
137-
pool_kwargs = {"childconcurrency": 40, "maxtasksperchild": 1000, "processes": 30}
137+
pool_kwargs = {"childconcurrency": 14, "maxtasksperchild": 1000, "processes": 30}
138138
o_ticker_lookup = {x.o_ticker: x.id for x in o_tickers}
139139
op_quotes = HistoricalQuotes(months_hist=months_hist, o_ticker_lookup=o_ticker_lookup)
140140
BATCH_SIZE_OTICKERS = 1000

0 commit comments

Comments
 (0)