Open position

Builds a Solana transaction that opens a leveraged position. The transaction is returned unsigned — sign it with the user's wallet and submit to the network.

Flow: User deposits collateral → protocol borrows from the pool → Jupiter swaps into the target token → position is recorded on-chain.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Pool address to borrow from

string
required

User wallet address (signer)

string
required

smallest units of quote token, as a positive integer string (max 20 digits)

number
required
1.1 to 100

Leverage multiplier (1.1x – 100x, depends on pool max)

string
enum
required

LONG = buy the volatile asset, SHORT = sell it

Allowed:
integer
1 to 10000
Defaults to 50

Slippage tolerance in basis points (50 = 0.5%)

integer
≥ 10000

Optional. Astralane MEV-protect tip in lamports (min 10,000). When set, the returned transaction includes a tip transfer — submit via /bundle/submit with mevProtect: true instead of regular RPC.

Responses

400

Validation error (insufficient liquidity, leverage exceeds pool max, etc.)

401

Invalid API key

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json