|
@@ -250,13 +250,13 @@ 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)
|
|
|
- // await sendDiscordCloseResultNotification(
|
|
|
|
|
- // discordWebhookUrl,
|
|
|
|
|
- // childAddress,
|
|
|
|
|
- // parentAddress,
|
|
|
|
|
- // !!closeRes?.success,
|
|
|
|
|
- // closeRes?.txid
|
|
|
|
|
- // )
|
|
|
|
|
|
|
+ await sendDiscordCloseResultNotification(
|
|
|
|
|
+ discordWebhookUrl,
|
|
|
|
|
+ childAddress,
|
|
|
|
|
+ parentAddress,
|
|
|
|
|
+ !!closeRes?.success,
|
|
|
|
|
+ closeRes?.txid
|
|
|
|
|
+ )
|
|
|
if (closeRes?.success) {
|
|
if (closeRes?.success) {
|
|
|
console.log(`[closePosition] 子仓位 ${childAddress} 关闭成功, txid: ${closeRes.txid ?? '-'}`)
|
|
console.log(`[closePosition] 子仓位 ${childAddress} 关闭成功, txid: ${closeRes.txid ?? '-'}`)
|
|
|
|
|
|