Change name of trades table query method to just trades()
This commit is contained in:
parent
afaca655cb
commit
fd6fe9ef94
@ -1,2 +1,2 @@
|
|||||||
from .trades import trades_on
|
from .trades import trades
|
||||||
from .upsert import upsert
|
from .upsert import upsert
|
@ -12,7 +12,7 @@ database_url = (
|
|||||||
f"@{getenv('DATABASE_HOST')}:{getenv('DATABASE_PORT')}/{getenv('DATABASE_NAME')}"
|
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"""
|
query = f"""
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM "Trades"
|
FROM "Trades"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
from database.trades import trades_on
|
from database.trades import trades
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
data = trades_on(datetime(2024, 1, 23))
|
data = trades(datetime(2024, 1, 23))
|
||||||
print(data)
|
print(data)
|
Loading…
Reference in New Issue
Block a user