fix: remove leftover conn.commit() after deleting paper_check_positions
This commit is contained in:
parent
0a5222a1de
commit
4c43309c16
@ -787,10 +787,6 @@ def paper_open_trade(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
conn.commit()
|
|
||||||
|
|
||||||
|
|
||||||
def paper_has_active_position(symbol: str, strategy: Optional[str] = None) -> bool:
|
def paper_has_active_position(symbol: str, strategy: Optional[str] = None) -> bool:
|
||||||
"""检查该币种是否有活跃持仓"""
|
"""检查该币种是否有活跃持仓"""
|
||||||
with get_sync_conn() as conn:
|
with get_sync_conn() as conn:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user