Fix config update + remove messages + Summary fix for not open position
This commit is contained in:
@@ -36,7 +36,7 @@ const plugin: FastifyPluginAsyncTypebox = async (fastify) => {
|
||||
}
|
||||
}, async (request, reply) => {
|
||||
const { account, tradeType, ticker, direction, price, quantity, leverage, stopLossPrice, takeProfitPrice } = request.body
|
||||
|
||||
|
||||
// Call the openPosition method from the GMX plugin
|
||||
return request.openGmxPosition(
|
||||
reply,
|
||||
|
||||
@@ -9,8 +9,8 @@ test('GMX Position Closing', async (t) => {
|
||||
|
||||
const result = await closeGmxPositionImpl(
|
||||
sdk,
|
||||
"DOGE",
|
||||
TradeDirection.Short
|
||||
"ADA",
|
||||
TradeDirection.Long
|
||||
)
|
||||
console.log('Position closing result:', result)
|
||||
assert.ok(result, 'Position closing result should be defined')
|
||||
|
||||
Reference in New Issue
Block a user