mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
feat: 更新市场平仓逻辑,添加数量参数并调整reduceOnly处理以符合交易所要求
This commit is contained in:
@@ -353,7 +353,8 @@ export async function marketClose(
|
|||||||
symbol,
|
symbol,
|
||||||
side,
|
side,
|
||||||
type,
|
type,
|
||||||
closePosition: "true",
|
quantity,
|
||||||
|
reduceOnly: "true",
|
||||||
};
|
};
|
||||||
|
|
||||||
await deduplicateOrders(adapter, symbol, openOrders, locks, timers, pendings, type, side, log);
|
await deduplicateOrders(adapter, symbol, openOrders, locks, timers, pendings, type, side, log);
|
||||||
|
|||||||
Reference in New Issue
Block a user