Fix convertion when getting positon
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -13,9 +13,9 @@ test('GMX Position Opening', async (t) => {
|
||||
TradeDirection.Long,
|
||||
0.00678,
|
||||
2,
|
||||
4400,
|
||||
6000,
|
||||
3500
|
||||
4410,
|
||||
3500,
|
||||
6000
|
||||
)
|
||||
console.log('Position opening result:', result)
|
||||
assert.ok(result, 'Position opening result should be defined')
|
||||
|
||||
Reference in New Issue
Block a user