Body
The mint address for the collateral token (e.g. 'So11111111111111111111111111111111111111112' for 'SOL'). 'collateralMint' must be the same as 'marketMint' for long positions, or USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v) for short positions.
So11111111111111111111111111111111111111112, 7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs, 3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh, EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v, Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB "So11111111111111111111111111111111111111112"
The amount of tokens for the input mint 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 'collateralTokenDelta' value would be equal to '1000000000'
"1000000000"
The mint address for the input token (e.g. 'So11111111111111111111111111111111111111112' for 'SOL')
"So11111111111111111111111111111111111111112"
The asset or market to trade against. Required when opening a new position. 'SOL' = 'So11111111111111111111111111111111111111112', 'ETH' = '7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs', 'BTC' = '3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh'
So11111111111111111111111111111111111111112, 7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs, 3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh "So11111111111111111111111111111111111111112"
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. Either provide leverage or sizeUsdDelta. Max leverage for SOL is 100. Max leverage for BTC / ETH is 150
"10"
Sets whether to return a serialized transaction (serializedTxBase64) in the response
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"
Sets the type of serialized transaction to execute the action. If the transaction type is legacy, the transaction must be submitted by the client itself through the RPC. If the transaction type is instant, the transaction must be sent to the POST /transaction/execute endpoint. If the transaction type is mixed, the transactionType returned in the response will be either legacy or instant.
legacy, mixed, instant 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 unique identifier (i.e. a program derived address) for the position request. Use this address to find the position request account onchain
TPSL requests created with the increase position. Only returned when TPSL is requested.
DEPRECATED
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
Returns the type of serialized transaction to execute the action. If the transaction type is legacy, the transaction must be submitted by the client itself through the RPC. If the transaction type is instant, the transaction must be sent to the POST /transaction/execute endpoint.
mixed, instant, legacy Contains relevant metadata for the serialized transaction. Null if no wallet address passed in.
