Fix few things

This commit is contained in:
2025-08-27 04:32:05 +07:00
parent 82fa0d20d2
commit 9d808cfe1a
10 changed files with 53 additions and 183 deletions

View File

@@ -5,17 +5,17 @@ import {Ticker, TradeDirection} from '../../src/generated/ManagingApiTypes'
test('GMX Position Opening', async (t) => {
await t.test('should open a long position for BTC', async () => {
const sdk = await getClientForAddress('0x932167388dD9aad41149b3cA23eBD489E2E2DD78')
const sdk = await getClientForAddress('0x0b4A132cb6ed8fa66953bf61a53D0B91DaCaAd78')
const result = await openGmxPositionImpl(
sdk,
Ticker.ETH,
Ticker.BTC,
TradeDirection.Long,
0.00678,
0.00009129924572776991,
2,
4410,
3500,
6000
111350,
110000,
114000
)
console.log('Position opening result:', result)
assert.ok(result, 'Position opening result should be defined')