fix bug
This commit is contained in:
@@ -110,7 +110,7 @@ def RunOnce(run: Runtime, state: State, signals: list[SignalItem]) -> None:
|
||||
|
||||
started_at = time.monotonic()
|
||||
futures: list[tuple[str, Future]] = []
|
||||
|
||||
|
||||
try:
|
||||
deals = run.client.deals()
|
||||
portfolio = run.client.portfolio()
|
||||
@@ -172,7 +172,7 @@ def RunOnce(run: Runtime, state: State, signals: list[SignalItem]) -> None:
|
||||
(
|
||||
"持仓计算",
|
||||
run.executor.submit(
|
||||
manage_positions, run, ticks, positions, market_ok, assets.available
|
||||
manage_positions, run, ticks, positions, market_ok, assets.available, state
|
||||
),
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user