Fix convertion when getting positon

This commit is contained in:
2025-08-17 00:35:41 +07:00
parent 0aafab82b3
commit e38ad95a8b
4 changed files with 21 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
import { test } from 'node:test'
import {test} from 'node:test'
import assert from 'node:assert'
import { getClientForAddress, cancelGmxOrdersImpl } from '../../src/plugins/custom/gmx'
import { Ticker } from '../../src/generated/ManagingApiTypes'
import {cancelGmxOrdersImpl, getClientForAddress} from '../../src/plugins/custom/gmx'
import {Ticker} from '../../src/generated/ManagingApiTypes'
test('GMX Orders Closing', async (t) => {
await t.test('should close all orders for BTC', async () => {
@@ -9,7 +9,7 @@ test('GMX Orders Closing', async (t) => {
const result = await cancelGmxOrdersImpl(
sdk,
Ticker.BTC
Ticker.ETH
)
console.log('Orders closing result:', result)
assert.ok(result, 'Orders closing result should be defined')