Body
The asset or market to trade against. Required when opening a new position. 'SOL' = 'So11111111111111111111111111111111111111112', 'ETH' = '7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs', 'BTC' = '3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh'
BTC, ETH, SOL "SOL"
The token symbol for the fee token. Currently only USDC is supported. Must be the same as input token.
USDC The amount of fee tokens to send to feeReceiver. The value must match the token mint decimals specified in feeToken (e.g., for USDC with 6 decimals, 1000000 = 1 USDC)
"1000000"
The token address (ATA) to receive the fee specified in feeTokenAmount. The ATA must match the token mint specified in feeToken
The token symbol for the input token used to fund the position. Must be the same as fee token.
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 custody token price when executing the decrease position trade
"100"
Required when opening a new position
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 100.0. Max leverage for BTC / ETH is 150.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
The 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.
