Harden trading, training, and monitoring
This commit is contained in:
@@ -15,7 +15,7 @@ def reconciliation_snapshot(
|
||||
client: BybitClient,
|
||||
instruments: dict[str, Instrument],
|
||||
) -> dict[str, Any]:
|
||||
local_positions = storage.open_positions()
|
||||
local_positions = storage.open_positions(settings.trading_mode)
|
||||
local = [
|
||||
{
|
||||
"id": position.id,
|
||||
@@ -23,6 +23,7 @@ def reconciliation_snapshot(
|
||||
"qty": position.qty,
|
||||
"entry_price": position.entry_price,
|
||||
"notional_usdt": position.notional_usdt,
|
||||
"protective_order_id": position.protective_order_id,
|
||||
}
|
||||
for position in local_positions
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user