MM-intel endpoints are read-only HTTP routes shaped for market-maker strategy
bots. Public config/reference reads stay unauthenticated; wallet-keyed taker
PnL requires a valid bearer session for an MM user. The WebSocket
auth flow returns such a session for bots, and normal app sessions for the same
MM-whitelisted user are also accepted. They use the API base URL:
Routes
| Route | Purpose |
|---|
GET /v1/mm/recent_resolutions | returns recent resolved crypto price-leg markets for an asset and duration, ordered newest first |
GET /v1/mm/taker_pnl | requires a bearer session for an MM-whitelisted user and returns lifetime PnL stats for the user behind a wallet, or stats: null when unknown |
GET /v1/mm/max_payouts | returns the current max-payout caps enforced during quote aggregation |
Recent Resolutions
GET https://api.longshot.xyz/v1/mm/recent_resolutions?asset=BTC&duration_secs=300&limit=8
This endpoint only works for crypto price-leg markets.
Asset ticker, such as BTC, ETH, SOL, or XRP.
Market window duration in seconds. Use 300 for 5 minute windows or 900
for 15 minute windows.
Maximum number of rows to return. Defaults to 8; capped at 50.
{
"asset": "BTC",
"duration_secs": 300,
"resolutions": [
{
"market_id": 123,
"outcome": "YES",
"resolved_at_ms": 1710000000000
}
]
}
Taker PnL
GET https://api.longshot.xyz/v1/mm/taker_pnl?wallet=0x0000000000000000000000000000000000000000
Authorization: Bearer <session_token>
EVM wallet address from the RFQ taker metadata. Skip this lookup when the RFQ
is shielded and no taker wallet is present.
{
"wallet": "0x0000000000000000000000000000000000000000",
"stats": {
"total_pnl_micros": 1250000,
"total_positions": 42,
"open_positions": 3,
"wins": 21,
"losses": 18
}
}
When the wallet has no associated user, the route returns the checksummed
wallet and stats: null.
Max Payouts
GET https://api.longshot.xyz/v1/mm/max_payouts
{
"max_mention_market_payout": 25000000000,
"max_price_market_payout": 50000000000
}
Amounts are in USDC micros.