curl --request GET \
--url 'https://ca.raze.sh/api/sol/perp/wallets/{address}/perp-positions?apiKey='{
"address": "<string>",
"data": [
{
"market_id": "<string>",
"venue": "<string>",
"position_pubkey": "<string>",
"side": "long",
"size": 123,
"entry_price": 123,
"collateral": 123,
"unrealized_pnl": 123,
"slot": 123,
"snapshot_ts": 123,
"is_open": true
}
],
"count": 123,
"is_fresh": true,
"note": "<string>"
}Derived snapshot of open positions from the perp_positions table
(latest row per position_pubkey via ReplacingMergeTree FINAL).
?fresh=true is reserved for the live-RPC truth path (Phase 5).
v1 always returns the derived snapshot and stamps is_fresh:false.
curl --request GET \
--url 'https://ca.raze.sh/api/sol/perp/wallets/{address}/perp-positions?apiKey='{
"address": "<string>",
"data": [
{
"market_id": "<string>",
"venue": "<string>",
"position_pubkey": "<string>",
"side": "long",
"size": 123,
"entry_price": 123,
"collateral": 123,
"unrealized_pnl": 123,
"slot": 123,
"snapshot_ts": 123,
"is_open": true
}
],
"count": 123,
"is_fresh": true,
"note": "<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.
Reserved for live-RPC fallback. Currently ignored.