extend positions bug fix

This commit is contained in:
2026-04-26 06:10:18 +00:00
parent 73c4eb1bf8
commit f1839d0779
8 changed files with 167 additions and 44 deletions

View File

@@ -20,7 +20,6 @@ async def insert_df_to_mysql(
df = pd.DataFrame(params)
else:
df = params
print(f'DB INSERT: table: {table_name}; CON: {CON}; params: {params}')
await CON.run_sync(
lambda sync_conn: df.to_sql(name=table_name, con=sync_conn, if_exists='append', index=False)
)

View File

@@ -18,6 +18,7 @@ class Algo_Config:
Target_Open_Cash_Position: int
Print_Summary_Each_Loop: bool = False
Flip_Side_For_Testing: bool = False
@dataclass(kw_only=True)
class Flags: