Skills quotient-api
Accesses Quotient market intelligence through either x402 micropayments or API key auth, with explicit 402 challenge/settle handling when using x402.
install
source · Clone the upstream repo
git clone https://github.com/BankrBot/skills
manifest:
quotient/skill.mdsource content
Quotient API Skill
Use this skill when an agent needs Quotient market intelligence and must execute x402 payment flows correctly.
Base URL
:QUOTIENT_BASE_URLhttps://q-api.quotient.social- Use this single origin for runtime requests and discovery docs (
,/openapi.json
,/api/public/pricing
,/llms.txt
)./skill/*
Access Model
- Use x402 or API key for monetized requests.
- Prefer Bankr wallet tooling when available.
- Support vanilla SIWE/SIWX x402 clients as a first-class fallback.
- Include
when available; runtime requests can be authorized via either x402 payment handling or API key auth.x-quotient-api-key - If using Bankr signing (
), provide a Bankr API key via/agent/sign
with Agent API access enabled and signing permissions (not read-only).X-API-Key
Getting a Quotient API Key
- Sign up (or log in) at
.https://dev.quotient.social - Account creation supports:
- email login
- Google login
- New accounts include free credits, so users can try the API before paying.
- After signup/login, create or copy a Quotient API key from the Quotient account settings/developer area.
- Pass the key to the agent via config/secrets as
(or equivalent env/secret wiring used by your client).x-quotient-api-key
Operator vs Agent Signup Path
- Preferred: human operator completes signup/login and key creation, then injects the API key into agent config.
- Optional self-serve agent path: if your runtime supports browser automation plus secure secret storage, the agent can perform signup/login at
, generate a key, and store it for later requests.https://dev.quotient.social - If interactive auth (email verification, Google OAuth, CAPTCHA, 2FA, policy prompts) cannot be completed programmatically, fall back to the human-operator path.
x402 API Call Checklist
- Send request to Quotient gateway without payment headers.
- If response is
, parse402
.PAYMENT-REQUIRED - Sign payment and retry with
.PAYMENT-SIGNATURE - On success, parse
.PAYMENT-RESPONSE - Apply retry/backoff rules for
and transient429
.5xx
Required Preflight (Deterministic)
Before the first API call in a session, fetch these discovery endpoints:
/openapi.json/api/public/pricing- Treat OpenAPI as canonical route and invocation metadata.
- Treat pricing endpoint as supplemental billing/network metadata (assets, chains, credit mapping), and treat runtime
challenge data as authoritative.402 - Cache pricing metadata and refresh periodically (for example, every 15-60 minutes) or immediately when runtime
details differ from cache.402
Canonical Endpoints and Discovery
- OpenAPI:
/openapi.json - Pricing discovery endpoint:
GET /api/public/pricing - AI index:
/llms.txt
Core Endpoints
- covered markets with forecast statusGET /api/v1/markets
- markets where Q diverges from market oddsGET /api/v1/markets/mispriced
- batch lookup by slugs or condition IDsGET /api/v1/markets/lookup
- full intelligence on a single marketGET /api/v1/markets/{slug}/intelligence
- paginated analyst signals for a marketGET /api/v1/markets/{slug}/signals
References
- API reference:
/skill/references/api-reference.md - Bankr-preferred x402 flow:
/skill/references/bankr-preferred-flow.md - Vanilla x402 flow:
/skill/references/vanilla-x402-flow.md - Error handling:
/skill/references/error-handling.md