Body
The asset or market to trade against
BTC, ETH, SOL "SOL"
The token symbol for the input token used to fund the position
BTC, ETH, SOL, USDC "SOL"
The amount of tokens for the input token to open the position or deposit collateral. NOTE: The token amount needs to be an integer and must conform to the token mint decimals specified onchain. For example, to deposit 1 SOL, the value would be '1000000000' (9 decimals)
"1000000000"
The maximum slippage in (BPS) for the asset's price when executing trade
"100"
Side for the trade
long, short Leverage of the increase position, up to 1 decimal place. Either provide 'leverage' or 'sizeUsdDelta' to open a trade. Min leverage is '1.1'. Max leverage for SOL is 250.0
"11.5"
Custom priority fee in microlamports for the transaction (1,000,000 microlamports = 1 lamport). If not set, the API will automatically set the optimal priority fee
The amount in USD to increase the position size by. Must be an integer representing the USD amount multiplied by 10^6 (1 million) to align with the 6 decimal places used for USDC/USDT tokens on-chain. For example, to increase the position size by $10 USD, set 'sizeUsdDelta' to 10000000; for $0.50 USD, set 'sizeUsdDelta' to 500000. Either provide 'leverage' or 'sizeUsdDelta'.
"10000000"
TPSL requests to set. TPSL requests can only be set for positions that 150x leverage or below. Only 2 TPSLs can be set at a time.
2The wallet address / public key for the trader, Required when opening a new position.
Response
200 OK
The unique identifier (i.e. a program derived address) for the position account. Use this address to find the position account onchain.
The serialized transaction (base64 encoded) containing the instructions and given parameters for the increase position request. The transaction can be deserialized, signed by the owner of walletAddress and submitted onchain to execute the increase position request
TPSL requests created with the increase position
Contains relevant metadata for the serialized transaction. Null if no wallet address passed in.
