Fix ETH openPosition
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, openGmxPositionImpl } from '../../src/plugins/custom/gmx'
|
||||
import { Ticker, TradeDirection } from '../../src/generated/ManagingApiTypes'
|
||||
import {getClientForAddress, openGmxPositionImpl} from '../../src/plugins/custom/gmx'
|
||||
import {Ticker, TradeDirection} from '../../src/generated/ManagingApiTypes'
|
||||
|
||||
test('GMX Position Opening', async (t) => {
|
||||
await t.test('should open a long position for BTC', async () => {
|
||||
@@ -9,13 +9,13 @@ test('GMX Position Opening', async (t) => {
|
||||
|
||||
const result = await openGmxPositionImpl(
|
||||
sdk,
|
||||
Ticker.BTC,
|
||||
Ticker.ETH,
|
||||
TradeDirection.Long,
|
||||
0.0002,
|
||||
0.00678,
|
||||
2,
|
||||
50003,
|
||||
96001,
|
||||
85002
|
||||
4400,
|
||||
6000,
|
||||
3500
|
||||
)
|
||||
console.log('Position opening result:', result)
|
||||
assert.ok(result, 'Position opening result should be defined')
|
||||
|
||||
Reference in New Issue
Block a user