Fix build

This commit is contained in:
2025-10-06 01:38:02 +07:00
parent 347c78afc7
commit de48e758cf
3 changed files with 2 additions and 4 deletions

View File

@@ -279,7 +279,7 @@ public class TradingService : ITradingService
{ {
_logger.LogInformation( _logger.LogInformation(
$"[{shortAddress}][{ticker}] Trader previously got a position open but the position was close by trader"); $"[{shortAddress}][{ticker}] Trader previously got a position open but the position was close by trader");
await _messengerService.SendClosedPosition(a.Account.Address, oldTrade); // TODO : Send position closed
a.Trades.Remove(oldTrade); a.Trades.Remove(oldTrade);
} }
} }

View File

@@ -212,7 +212,7 @@ async function init () {
app.log.info(`Idempotency: Stored response for request ${requestId}`) app.log.info(`Idempotency: Stored response for request ${requestId}`)
} catch (error) { } catch (error) {
app.log.error(`Idempotency: Failed to store response for request ${requestId}:`, error) app.log.error(error, `Idempotency: Failed to store response for request ${requestId}`)
} }
} }
} }

View File

@@ -60,8 +60,6 @@ test('GMX get position history - Closed positions with actual PnL', async (t) =>
sdk, sdk,
0, 0,
10, 10,
fromTimestamp,
toTimestamp
) )
console.log(`\n📅 Closed positions in last 7 days: ${result.length}`) console.log(`\n📅 Closed positions in last 7 days: ${result.length}`)