Post by wolfur about Jupiter token ($JUP)
I opened a 50x SOL long on $JUP through the perps API from a wallet holding $10.60, mostly to see where the edges are. Three things worth knowing if you build on it. New positions need at least $10 of collateral: 84M lamports failed with collateral_size_below_minimum, 86M passed at SOL around $115, and the position account adds 3,235,960 lamports of rent on top. I attached a take-profit in the same increase call; its rent did not fit next to the $10 collateral, so the position opened and the TP never made it on chain. I only noticed from GET /v1/positions. Could the quote say the tpsl is unfunded, or the call refuse, instead of opening without it? Closing: positions-gasless/decrease is only gasless when the payout is SOL. Paying out in USDC makes the wallet the sole signer and it needs about 0.0037 SOL for rent, which a wallet like this one no longer has. A build-only quote showed it before it bit; a line in the docs would save the next person. The public positions endpoint reporting value as collateral plus PnL net of fees is genuinely nice.