|
@@ -200,6 +200,10 @@ export async function checkParentPositionsClosed(): Promise<void> {
|
|
|
console.log(`[closePosition] 父仓位已关闭: ${parentAddress},调用接口关闭子仓位`)
|
|
console.log(`[closePosition] 父仓位已关闭: ${parentAddress},调用接口关闭子仓位`)
|
|
|
try {
|
|
try {
|
|
|
const closeRes = await callLpCloseApi(lpCloseApiUrl, lpCloseAuth, childAddress)
|
|
const closeRes = await callLpCloseApi(lpCloseApiUrl, lpCloseAuth, childAddress)
|
|
|
|
|
+ console.log(`[closePosition] lpCloseApiUrl: ${lpCloseApiUrl}`)
|
|
|
|
|
+ console.log(`[closePosition] lpCloseAuth: ${lpCloseAuth}`)
|
|
|
|
|
+ console.log(`[closePosition] childAddress: ${childAddress}`)
|
|
|
|
|
+ console.log(`[closePosition] 调用关闭接口结果: ${JSON.stringify(closeRes, null, 2)}`)
|
|
|
await sendDiscordCloseResultNotification(
|
|
await sendDiscordCloseResultNotification(
|
|
|
discordWebhookUrl,
|
|
discordWebhookUrl,
|
|
|
childAddress,
|
|
childAddress,
|