# Joyride > Joyride is a 0DTE (zero days to expiration) crypto options exchange on Solana. The sandbox is `https://devnet.joyride.exchange`, a full deployment on Solana Devnet with its own accounts; Mainnet is `https://joyride.exchange`. No API key required. Create an account in the web app at https://joyride.exchange (referral code + terms attestation), then sign in with the same wallet. A wallet with no Joyride account cannot sign in. ## Start here - Venue overview: https://docs.joyride.exchange/ - Maker evaluation and onboarding: https://docs.joyride.exchange/market-makers/overview - Trader workflow: https://docs.joyride.exchange/exchange/trading - Contract terms and instrument naming: https://docs.joyride.exchange/exchange/contracts - Collateral and margin: https://docs.joyride.exchange/exchange/collateral - Fees: https://docs.joyride.exchange/exchange/fees - Token: https://docs.joyride.exchange/exchange/token - Integration paths: https://docs.joyride.exchange/getting-started - REST schema: https://docs.joyride.exchange/_generated/openapi.yaml - WebSocket schema: https://docs.joyride.exchange/_generated/asyncapi.yaml These docs cover the RFQ venue. Confirm live listings and account readiness before constructing a trade. A requested quote, accepted RFQ, confirmed transaction, and finalized fill are distinct states. ## Integration Use HTTP and WebSocket directly from any language. Every surface derives from the single public origin `https://joyride.exchange`: - Trading WebSocket (SIWS auth, RFQ): `wss://joyride.exchange/api/client` - Oracle WebSocket (spot price): `wss://joyride.exchange/api/oracle` - Public HTTP (market reads): `https://joyride.exchange/api/v1/market/*` - Query API (self-scoped reads, Bearer): `https://joyride.exchange/api/query/*` All integrations use the `joyride.exchange` origin above. ## Market makers Market makers answer RFQs on the trading WebSocket (`wss://joyride.exchange/api/client`) with four methods: `rfq.maker.subscribe`, `rfq.maker.poll`, `rfq.maker.respond`, `rfq.maker.decline`. A market maker is a user account the exchange has approved and designated with the `rfq_quoter` role; the role cannot be enabled from the API. - Sessions: 3 concurrent authenticated sessions per account on the trading WS. A fourth session evicts the oldest with WebSocket close code `4001`, reason `session_limit`; a client that receives that close must not reconnect on its own. - Quotes: a signed `bid` and/or `ask` per quoter, one quote per quoter per request, as many quoters as answer inside the 5-second window. The taker sees the best price per side (`rfq.best`) and accepts one quote by `quote_id`; a quote not chosen receives `lost`. A delivered quote is firm until its `expires_at`, with no cancel and no replace. Makers cannot read competitor quotes. Signed quote payloads include maker and taker subaccount addresses, so this is not an identity-anonymity guarantee. - Fills arrive as `fill` and `finality` pushes on the maker channel; after a disconnect, reconcile missed fills with `GET /api/query/rfq-fills?role=maker` (Bearer). Start at https://docs.joyride.exchange/market-makers/overview; the RFQ flow is at https://docs.joyride.exchange/market-makers/rfq-quoting. Onboarding, provisioning, and maker support: support@joyride.exchange. ## Agents and the CLI The `joyride` CLI (`npm install -g joyride-cli`, Node 20+) is the reference RFQ client and the only installable surface that holds a signing key. Commands: `joyride login`, `joyride rfq subaccount` (provision the margin-vault subaccount), `joyride rfq account` (balance and readiness: not_funded | unknown | ready | short), `joyride rfq request` (requires `--side buy|sell|two-way`), `joyride rfq accept`, `joyride rfq show`, `joyride rfq list`, `joyride rfq fills`, and `joyride rfq maker watch|respond|decline` for quoters. Exit codes: 0 answered, 1 refused, 2 system failure, 3 outcome unknown. An MCP server ships in the same package (`joyride mcp install --client claude|codex|cursor`). It is a pure auth client: it resumes the session token `joyride login` stored and holds NO signing key, so `accept_rfq_quote` and `respond_rfq_quote` cannot sign and no environment variable enables it. `accept_rfq_quote` stays registered only as an explicit capability boundary: it always refuses before reading the quote or touching the trading client, then directs the operator to `joyride rfq accept` or the app. Do not configure MCP spend ceilings in an attempt to enable signing. A delivered quote is firm until its `expires_at`. There is no cancel, no replace and no amend, so the quote TTL is the only bound on how long a delivered quote remains firm; the CLI requires `--ttl` with no default for that reason. - https://docs.joyride.exchange/agents/quickstart - https://docs.joyride.exchange/agents/cli - https://docs.joyride.exchange/agents/mcp-server - https://docs.joyride.exchange/agents/maker-sdk - https://docs.joyride.exchange/agents/migrating-from-deribit (for desks porting a Deribit Block RFQ quoting loop) ## Authentication Wallet-based via SIWS (Sign-In with Solana). Any ed25519 keypair is a trading identity. ### WebSocket auth flow (on the trading WS) 1. Connect to the core trading WS `wss://joyride.exchange/api/client` 2. Request a nonce: `{"jsonrpc":"2.0","id":1,"method":"public/get_nonce"}` (no params; the nonce is not bound to a wallet) 3. Sign the message: `Sign in to Joyride\n\nWallet:
\nNonce: ` with the wallet's ed25519 key 4. Submit: `{"jsonrpc":"2.0","id":2,"method":"public/auth","params":{"wallet":"
","signature":"","message":""}}` Successful auth returns `{ wallet, account_id, roles, session_token }`. Accounts are NOT auto-provisioned; a wallet with no Joyride account yields no usable `account_id` (sign up in the web app first). Reuse the `session_token` (a JWT whose lifetime the server sets via its `exp` claim) via `public/session_resume` to reconnect without re-signing. Resume also revalidates the wallet/account binding; if the account is gone or the id was reassigned, discard the token and repeat SIWS. If SIWS reports that the account is unprovisioned, repeat the signed onboarding signup flow; Platform replays the wallet's durable account assignment on a core-side miss, so no manual database cleanup is required. ### HTTP auth Send the JWT as a Bearer token: `Authorization: Bearer ` (query API reads). ## Data conventions - RFQ money, balances, and contract quantities use canonical decimal strings with at most 6 fractional digits (`"5.500000"`, `"1.000000"`). Do not pad RFQ values to 8dp: even `"1.0000000"` is rejected with `RFQ_PRECISION_UNSUPPORTED`. - Instruments are identified by symbol only (see Instrument IDs) ## Instrument IDs Format: `{ASSET}_USDC-{DMMMYY}-{STRIKE}-{C|P}` Example: `BTC_USDC-25APR26-100000-P` BTC options are live. Discover exact symbols from live instruments in the target environment. Daily instruments expire and refresh at rollover. ## WebSocket API (JSON-RPC 2.0) ### RFQ methods (trading WS) - Requesting and accepting (any account): `rfq.create` (a package of 1 to 13 legs on one underlying and one expiry, with a `side` of `buy`, `sell` or `two_way`; a `buy` or `sell` request shows the direction to quoters and can be accepted on that side only), `rfq.accept` (a quoted side of one quote, by `quote_id`; `rfq.best` names the best per side), `rfq.get`, `rfq.list`, `rfq.subscribe` - Quoting (designated market makers only): `rfq.maker.subscribe`, `rfq.maker.poll`, `rfq.maker.respond` (one signed quote carrying `bid`, `ask` or both: only the requested side on a `buy` or `sell` request), `rfq.maker.decline` - A fill is one on-chain transaction against both parties' collateral; there are no partial fills and no cancel or replace of a delivered quote ### Query methods - `public/get_instruments`: list available options contracts (open instruments only) - `public/get_market_config`: exchange configuration (decimals/version) - query API `GET /api/query/rfq-fills`, `/api/query/rfq-positions`, `/api/query/vault-subaccount` (Bearer, self-scoped) ### Subscription channels (trading WS) - `rfq`: taker-side state pushes for the account's own requests - `rfq_maker`: `open`, `state`, `fill`, `finality` events delivered over the maker's own WebSocket connection after `rfq.maker.subscribe` (quoter role required); Joyride never calls out to a maker - Spot: standalone oracle WS (`wss://joyride.exchange/api/oracle`), raw `price`/TWAP frames ## Error codes Trading WebSocket (JSON-RPC error `code`): | Code | Meaning | Client action | |---|---|---| | 1001 | Authentication or session failure: bad signature, expired nonce, expired or invalid session token, unknown or reassigned account, or the 60-second unauthenticated idle reap | Discard any cached token, run `public/get_nonce` then `public/auth`, resend | | 1007 | Rate budget exceeded on an order-book `private/*` method; `rfq.*` methods report the same budget as `1200` / `RFQ_RATE_LIMITED` | Back off and retry; `data.retryable` is true | | 1200 | RFQ error; `data.error` carries the `RFQ_*` code (`RFQ_NOT_READY`, `RFQ_WRONG_ROLE`, `RFQ_STATE_CONFLICT`, `RFQ_RATE_LIMITED`, …) with `operation_id` and `retryable` | Branch on `data.error`; retry the same call only when `data.retryable` is true | An `rfq.*` call made before `public/auth` or `public/session_resume` returns `1200` with `data.error: "RFQ_WRONG_ROLE"` and `data.retryable: false`, not `1001`. Do not repeat the unchanged call on the unauthenticated socket. Authenticate or resume first, then issue the RFQ call again as a new attempt. WebSocket close code `4001` with reason `session_limit` on the trading socket means a fourth session evicted this one (do not auto-reconnect). ## Links - Docs: https://docs.joyride.exchange - Exchange: https://joyride.exchange - GitHub (oracle, public): https://github.com/JoyrideExchange/oracle