import { createTradePtExactOutInstruction } from "@exponent-labs/exponent-sdk/client/clmm";
import { PublicKey } from "@solana/web3.js";
const ix = createTradePtExactOutInstruction({
trader: traderKeypair.publicKey,
market: new PublicKey("market..."),
ticks: new PublicKey("ticks..."),
tokenSyTrader: new PublicKey("tokenSyTrader..."),
tokenPtTrader: new PublicKey("tokenPtTrader..."),
tokenSyEscrow: new PublicKey("tokenSyEscrow..."),
tokenPtEscrow: new PublicKey("tokenPtEscrow..."),
addressLookupTable: new PublicKey("lookupTable..."),
tokenProgram: new PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),
syProgram: new PublicKey("syProgram..."),
tokenFeeTreasurySy: new PublicKey("tokenFeeTreasurySy..."),
tokenFeeTreasuryPt: new PublicKey("tokenFeeTreasuryPt..."),
eventAuthority: new PublicKey("eventAuthority..."),
program: new PublicKey("program..."),
amountOut: 1_000_000n,
swapDirection: { buyPt: {} },
amountInConstraint: 1_100_000n,
priceSpotLimit: 0.95,
});