Open & close positions
Open at market or limit, then close fully or partially.
Pick your entry
You want to…
Use
Open
curl -X POST $FLASH_API_URL/transaction-builder/open-position -d '{
"inputTokenSymbol": "USDC", "outputTokenSymbol": "SOL",
"inputAmountUi": "100.0", "leverage": 5.0, "tradeType": "LONG",
"owner": "<WALLET>"
}'Read the result
curl $FLASH_API_URL/owner/<WALLET>Close
Related
Last updated
Was this helpful?

