Connection Model
Discover the market
Fetch
GET /v1/markets/current?asset=BTC&duration_secs=300 or use
GET /v1/markets/lookup for a specific window.Sign the order
Build the order, sign it with EIP-191 personal-sign, and encode the
65-byte signature as base64.
Read or cancel
Poll
GET /v1/rfq/{id} while the RFQ is pending, or cancel with
POST /v1/rfq/{id}/cancel.Environment URLs
| Environment | REST Base URL |
|---|---|
| Local | http://127.0.0.1:3001 |
| Demo | https://api.longshot.xyz |
| Staging | provided per team |
| Production | provided per team |
Notes From Live Demo RFQ Testing
The demo API accepted wallet auth, returned a bearer session, and completed single-leg BTC 5m RFQs. The completed RFQ response includedrequest_id,
status, odds, payout_micros, and quotes_received. For a one-leg RFQ,
the implied executable price in cents is:
Next Steps
Wallet Auth
Create and store the bearer token used by all taker REST routes.
Submit RFQs
Build the signed order payload for
POST /v1/rfq.