You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to make a simple swap operation and as one time operation, as a test.
I need it in the form of 3 types: SOL -> token, token -> SOL, token -> token
Initially I have 10 SOL on my dev account. I've tried to eliminate all the stuff from that I may not need from jupiterSpotSwap(....) and then call this function in the end of init(...). I specified subAccountIndex = 0 and marketIndex = 0 too.
It's not worked. But there'll be some or other error at runtime still, for instance:
error: Error trying to long spot position for market 0 on jupiter, subaccount start 0
How will I make a simple swap then? Is there any simple example?
And what preliminary work have I make for this: open a position, set up something.... ? And how?
The text was updated successfully, but these errors were encountered:
On devnet
I need to make a simple swap operation and as one time operation, as a test.
I need it in the form of 3 types: SOL -> token, token -> SOL, token -> token
Initially I have 10 SOL on my dev account. I've tried to eliminate all the stuff from that I may not need from
jupiterSpotSwap(....)
and then call this function in the end ofinit(...)
. I specifiedsubAccountIndex = 0
andmarketIndex = 0
too.It's not worked. But there'll be some or other error at runtime still, for instance:
How will I make a simple swap then? Is there any simple example?
And what preliminary work have I make for this: open a position, set up something.... ? And how?
The text was updated successfully, but these errors were encountered: