Skip to content

Agent prompts

Copy one of these into Claude Code, Cursor, or another coding agent. Replace $COTES_API_KEY with your API key — generate one under Account → API keys at app.cotes.ai.

Agents can also read the curated index at /llms.txt or /docs/llms.txt.

You are integrating with the SpectralBot Public Signals API.
Base URL: https://api.cotes.ai
Auth: Authorization: Bearer $COTES_API_KEY
Docs: https://spectralbot.cotes.ai/docs/
OpenAPI: https://spectralbot.cotes.ai/docs/openapi.yaml
llms.txt: https://spectralbot.cotes.ai/llms.txt
Task:
1. GET /v1/health and confirm the service is up.
2. GET /v1/contests/active?series=KXBTC15M.
3. Summarize the contest ticker, window, and each signal (side, confidence, entry_price_cents, edge_cents, outcome).
4. If there is no live contest, say so clearly.
Do not invent fields. Use only the JSON response.
Use the SpectralBot Public Signals API at https://api.cotes.ai with API key $COTES_API_KEY.
Connect to GET /v1/stream/contests?series=KXBTC15M as text/event-stream
(Authorization: Bearer $COTES_API_KEY).
For each SSE event:
- Parse event name and JSON data.
- On signal.emitted, print a one-line alert if confidence >= 75:
"{side} conf={confidence} entry={entry_price_cents}¢ edge={edge_cents}¢ ticker={ticker}"
- On contest.settled, print the settled_side and settled_price_dollars.
- Ignore other events unless useful for context.
Stop after 2 minutes or after the first settled contest, whichever comes first.
Read https://spectralbot.cotes.ai/docs/streaming/ if unsure about event shapes.
Build a small TypeScript (or Python) CLI that calls the SpectralBot Public Signals API.
Constraints:
- Base URL default https://api.cotes.ai
- API key from env COTES_API_KEY, sent as Authorization: Bearer …
- Commands:
- health
- active --series KXBTC15M
- get --ticker <full-ticker>
- stream --series KXBTC15M (print SSE frames until Ctrl+C)
- No SDK — use fetch / httpx / curl-equivalent only.
- Follow https://spectralbot.cotes.ai/docs/ and https://spectralbot.cotes.ai/docs/openapi.yaml
- Handle 401/404/429 with clear errors (problem+json).
Using only the SpectralBot Public Signals API (https://api.cotes.ai, API key $COTES_API_KEY):
1. Fetch the active KXBTC15M contest.
2. Write a short brief: strike, time remaining if inferable from window.expires_at, signal count, best edge_cents signal, and whether outcomes are still pending.
3. Cite the ticker and raised_at for every signal you mention.
Do not give trading advice. Describe the data only.