I created a limit order using jupiter SDK in solana with the above parameters .
const { tx, orderPubKey } = await limitOrder.createOrder({
owner: walletKeyPair.publicKey,
inAmount: new anchor.BN(sellAmount.toString()),
outAmount: new anchor.BN(buyAmount.toString()),
inputMint: new PublicKey(sellAddress),
outputMint: new PublicKey(buyAddress),
expiredAt: transactionExpiry, // Example: new BN(new Date().valueOf() / 1000)
base: base.publicKey,
});
My outAmount was 18749259 USDC but what I received was 18730510 USDC which is less than my outAmount . Does jupiter SDK automatically apply a slippage internally ? If yes how do I set it to 0% . The docs are very unclear on this .
I created a
limit order
usingjupiter SDK
in solana with the above parameters .My
outAmount
was18749259 USDC
but what I received was18730510 USDC
which is less than myoutAmount
. Does jupiter SDK automatically apply aslippage
internally ? If yes how do I set it to 0% . The docs are very unclear on this .https://docs.jup.ag/docs/limit-order/limit-order-with-sdk