Body
The asset or market to trade against for the limit order.
BTC, ETH, SOL "SOL"
The token symbol for the input token used to fund the limit order.
BTC, ETH, SOL, USDC "USDC"
The amount of tokens for the input token. 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"
Required when creating a limit order request.
long, short Trigger price at which the limit order will be executed (raw value with 6 decimal places). For example, to set a trigger price of $20, pass in 20000000.
"20000000"
Sets whether to return a serialized transaction (serializedTxBase64) in the response.
Leverage of the limit order. Either provide leverage or sizeUsdDelta.
"10"
The amount in USD for the size of the limit order (raw value with 6 decimal places). Either provide leverage or sizeUsdDelta.
"10000000"
The wallet address / public key for the trader. Required when creating a limit order that returns a serialized transaction.
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 limit order. The transaction can be deserialized, signed by the owner of walletAddress and submitted onchain to execute the request
Contains relevant metadata for the serialized transaction. Null if no wallet address passed in.
