extend positions bug fix
This commit is contained in:
Binary file not shown.
@@ -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)
|
||||
)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user