修复审计P1:基数纠偏用开仓止损并清空币数量、Gate保证金/手动平仓成交价/全仓实盘空仓校验、OKX·Binance占位函数、快照超时。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4277,6 +4277,11 @@ def get_live_position_exchange_metrics(exchange_symbol, direction):
|
||||
return parse_ccxt_position_metrics(p)
|
||||
|
||||
|
||||
def try_persist_exchange_margin_for_order(conn, order_id, exchange_symbol, direction, order_leverage=None, max_attempts=6, sleep_s=0.45):
|
||||
"""Binance 暂无 order_monitors.exchange_margin_usdt 列;占位避免开仓后 NameError."""
|
||||
return False
|
||||
|
||||
|
||||
def opened_at_str_to_ms(opened_at_str):
|
||||
if not opened_at_str:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user