API Cookbook
Practical, copy-paste recipes for wiring the Smart Money API into a bot. Recipes 1–6 call GET /v1/confirm and act on action, confidence, and size_multiplier; send your key in the X-API-Key header. Recipes 7–9 need no key at all — around 80 endpoints are public. See the full docs.
Confirm before entry (Python)
The canonical loop. Before your strategy opens a position, ask the API whether market structure agrees. Only enter when action == "CONFIRM".
Gate a Freqtrade signal
Override confirm_trade_entry so Freqtrade only takes entries the API confirms. Fail open on API errors so a timeout never blocks all trading.
Size by size_multiplier
Let conviction set position size. Multiply your base size by size_mult (0.0–1.5) so HIGH-confidence trades get more capital and weak ones get less.
size_mult of 0.0 means do not enter — same outcome as a SKIP. Treat anything below your own floor as a skip.Skip on SKIP / reduce on REDUCE
Handle all three actions explicitly. CONFIRM enters full size, REDUCE enters at the (smaller) multiplier, SKIP stands aside.
Handle 402 / 429
A 402 means the symbol or endpoint needs a higher plan; a 429 means you hit a rate limit. Treat 429/5xx as transient (back off), 402/401/403 as terminal (fix plan or key).
Use with a coding agent
Hand Claude Code, Codex, or Cursor the machine-readable references and let it wire the integration. Point it at /llms.txt for the overview and the OpenAPI spec for exact shapes.
Resources: /llms.txt (plain-text summary) · openapi.json (the live, always-current machine-readable contract) · the two public GitHub repos.
Read the liquidation heatmap (no key)
The liquidation tape is public. It is built from four live CEX force-order streams — binance, okx, bybit, bitget (bitmex ceased trading in September 2026; its rows stop there). Every response carries an exchanges object listing the venues that actually backed that response, so you can tell a quiet market apart from a coverage gap. Read it. Retained history is about 14 days, not years.
Compare funding on a common 8h basis
Perp funding is quoted per settlement interval, and the interval belongs to the instrument, not the venue: Hyperliquid settles every hour; elsewhere the majors settle every 8 hours while many other perpetuals settle every 4. A Hyperliquid rate is therefore about one eighth the size of an 8h rate for the same economic cost. Comparing the raw numbers ranks venues wrongly and inverts the direction of a funding trade. /v1/derivatives/funding-arb already normalises before choosing its legs. /v1/funding/normalised publishes each venue’s measured settlement clock (interval_hours); a venue’s own published rate is not redistributed, so the snippet applies our clock to rates you read from each venue yourself.
Read your limits instead of hardcoding them
GET /v1/plans is public and is the single source of truth for quotas, prices, symbol universe and features. Pace your client from it rather than from a number copied out of a docs page — those drift, this does not. There is no delayed-data tier: delay_seconds is 0 on every plan including Free.
The two public repositories
Both are on GitHub, both are readable without an account or a key, and between them they let you evaluate the API before you buy it — point an OpenAPI generator at the contract, or read the client source to see exactly what gets sent and returned.
tashiardit/smartmoneyapi-docs — the OpenAPI document for the product surface plus a written reference and worked examples. Use it to generate a client in any language, or to hand a coding agent a machine-readable contract instead of prose.
tashiardit/smartmoneyapi-python — the official Python client, an alternative to the raw requests calls used in these recipes. It reads your key from SMARTMONEY_API_KEY, sends it as X-API-Key, and wraps the endpoints as methods.
The repository copy of the spec is a published snapshot and can lag between updates. https://api.smartmoneyapi.com/openapi.json is regenerated from the router and is always current — if the two ever disagree, the live one is right.
Grab a free key and read the full endpoint reference.
Decision support, not execution advice. Not financial advice. Cryptocurrency trading involves substantial risk of loss.