Change name of trades table query method to just trades()

This commit is contained in:
moshferatu 2024-01-24 08:12:38 -08:00
parent afaca655cb
commit fd6fe9ef94
3 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
from .trades import trades_on
from .trades import trades
from .upsert import upsert

View File

@ -12,7 +12,7 @@ database_url = (
f"@{getenv('DATABASE_HOST')}:{getenv('DATABASE_PORT')}/{getenv('DATABASE_NAME')}"
)
def trades_on(date: datetime = None) -> pd.DataFrame:
def trades(date: datetime = None) -> pd.DataFrame:
query = f"""
SELECT *
FROM "Trades"

View File

@ -1,5 +1,5 @@
from database.trades import trades_on
from database.trades import trades
from datetime import datetime
data = trades_on(datetime(2024, 1, 23))
data = trades(datetime(2024, 1, 23))
print(data)