Skip to main content
POST
/
perp
/
sol
/
quote
Quote a perp open
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.

Authorizations

X-API-Key
string
header
required

Body

application/json
market_id
string
required
Example:

"jup:SOL-PERP"

side
enum<string>
required
Available options:
long,
short
collateral_usdc_e6
integer<int64>
required

Collateral the user is putting up, denominated in USDC micros (1e6 = $1).

Example:

100000000

leverage_bps
integer
required

Leverage in basis-points (10000 = 1x).

Example:

50000

slippage_bps
integer
default:50

Optional slippage tolerance in bps. Defaults to 50 (0.5%).

Example:

50

Response

200 - application/json

Quote computed (check success for failure modes)

success
boolean
data
object
error
string

Set when success=false.