curl --request POST \
--url https://ca.raze.sh/perp/sol/quote \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"market_id": "jup:SOL-PERP",
"side": "long",
"collateral_usdc_e6": 100000000,
"leverage_bps": 50000,
"slippage_bps": 50
}
'{
"success": true,
"data": {
"market_id": "<string>",
"venue": "jup",
"side": "long",
"entry_price": 123,
"est_liquidation_price": 123,
"size": 123,
"mechanism": "funding",
"funding_or_borrow_bps_per_hour": 123,
"fee_bps": 123,
"quote_ts_ms": 123,
"slot": 123,
"provider": "oracle"
},
"error": "<string>"
}Compute expected entry, liquidation price, position size, and funding/borrow rate for a hypothetical perp open.
Reads live Pyth from the in-process oracle map; falls back to the
venue’s quote API when the feed is missing. Cached for 10s by
(market_id, side, size, leverage).
curl --request POST \
--url https://ca.raze.sh/perp/sol/quote \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"market_id": "jup:SOL-PERP",
"side": "long",
"collateral_usdc_e6": 100000000,
"leverage_bps": 50000,
"slippage_bps": 50
}
'{
"success": true,
"data": {
"market_id": "<string>",
"venue": "jup",
"side": "long",
"entry_price": 123,
"est_liquidation_price": 123,
"size": 123,
"mechanism": "funding",
"funding_or_borrow_bps_per_hour": 123,
"fee_bps": 123,
"quote_ts_ms": 123,
"slot": 123,
"provider": "oracle"
},
"error": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.raze.bot/llms.txt
Use this file to discover all available pages before exploring further.
"jup:SOL-PERP"
long, short Collateral the user is putting up, denominated in USDC micros (1e6 = $1).
100000000
Leverage in basis-points (10000 = 1x).
50000
Optional slippage tolerance in bps. Defaults to 50 (0.5%).
50