Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: TickTape Wallets API
version: 1.0.0
summary: Independent pre-flight for Polymarket orders and copy trading.
description: 'OK / CAUTION / VETO verdicts on Polymarket orders and COPY / WATCH / VETO ratings on wallets, always with reasons and numbers. Verdicts are deterministic arithmetic on live order books plus Polymarket''s published 2026 taker-fee schedule (fee/share = rate * p * (1-p)) - not predictions and not investment advice. No custody, no execution, no account required. Humans can read. Agents can buy.
Access model: live calls are paid from the first request - HTTP 402 is the whole onboarding. Every live endpoint returns HTTP 402 with x402 payment requirements (USDC on Base) until paid. Free: append `sandbox=1` to any of the four tools for a deterministic example response (unlimited, never charged); append `x402_probe=1` to see payment requirements without paying; preflight_copy QUEUED responses are always free. Fast lane: buy credits once via POST /api/credits and authenticate with a bearer token (~0.4s responses, half price per call).
Operator safety (enforce in code, not prompts): never pay more than $0.10 per TickTape call; set a daily spend cap; only pay endpoints under https://ticktape.cc/; verify payTo matches https://ticktape.cc/llms.txt; asset must be USDC on Base (eip155:8453, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913); on retry reuse the same payment authorization.
Canonical machine spec: https://ticktape.cc/llms.txt. Machine manifest: https://ticktape.cc/agent.json. Versioning: date-based via the X-API-Version response header (current 2026-07-14); breaking changes bump the date and are announced in llms.txt. Long-running wallet computations use an async-job pattern: HTTP 202 + Retry-After on /api/preflight_copy (QUEUED), poll the same call until 200.'
contact:
name: TickTape
email: hello@ticktape.cc
url: https://ticktape.cc
termsOfService: https://ticktape.cc/terms
servers:
- url: https://ticktape.cc
description: Production (Cloudflare Pages Functions)
tags:
- name: Wallets
description: Copy-trading wallet ratings (leaderboard and red list)
paths:
/api/leaderboard:
get:
operationId: leaderboardGet
tags:
- Wallets
summary: Wallets rated COPY or WATCH for copy trading
description: 'Machine JSON of wallets worth copying, with fee-inclusive copier ROI, out-of-sample validation and reasons. Method: first-entry mirror $5/trade, 2c slippage, explicit 2026 taker fees. Live calls are paid from the first request: HTTP 402 (x402). Price per call: $0.02 USDC, or 1 credit with a bearer token. Free integration testing: `sandbox=1`.'
security:
- {}
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/sandbox'
- $ref: '#/components/parameters/x402Probe'
- $ref: '#/components/parameters/paymentSignatureHeader'
- $ref: '#/components/parameters/xPaymentHeader'
- name: Idempotency-Key
in: header
required: false
schema:
type: string
description: Optional client idempotency key; paid responses are also idempotent per x402 payment authorization (same signed authorization -> cached response, never double-charged)
responses:
'200':
description: 'Rated wallets. When settled via per-call x402, the response includes a `paid` object (`price_paid_usdc`, `receipt`), and (x402 v2) a PAYMENT-RESPONSE header. Credit-lane calls get `paid: {credits_used, credits_remaining}` instead.'
headers:
PAYMENT-RESPONSE:
$ref: '#/components/headers/PaymentResponse'
content:
application/json:
schema:
$ref: '#/components/schemas/LeaderboardResponse'
example:
ok: true
computed_at: '2026-07-13'
window: 2026-06-12..2026-07-11 (30d) + out-of-sample month where noted
method: first-entry mirror, $5/trade, entry 0.10-0.90, no crypto-updown, min clip 10 shares; ROI net of 2c slippage; fee-inclusive column adds explicit 2026 taker fees (rate*p*(1-p))
wallets:
- name: S-Works
verdict: COPY
roi_slippage_basis_pct: 11.3
roi_fee_inclusive_pct: 9.2
copied_trades: 132
win_rate_pct: 62.9
oos_validated: true
reasons:
- survived the out-of-sample month
- +9.2% fee-inclusive / +11.3% slippage-basis over 30d
- 'caveats: is a bot (iceberg execution ~24 clips per entry), copy-crowding in 102 of 319 markets'
- name: cnyek
verdict: WATCH
roi_slippage_basis_pct: 14.7
roi_fee_inclusive_pct: 12.4
copied_trades: 41
oos_trades: 9
win_rate_pct: 65.9
oos_validated: true
reasons:
- +12.4% fee-inclusive over 41 in-sample copied trades
- survived OOS, but only 9 out-of-sample trades - OOS sample too small for COPY
- name: aenews2
verdict: WATCH
roi_slippage_basis_pct: 1.9
roi_fee_inclusive_pct: -0.9
copied_trades: 62
win_rate_pct: 56.5
oos_validated: true
reasons:
- 'fee-fragile: +1.9% slippage-basis flips to -0.9% fee-inclusive in-sample'
- +17.2% in the out-of-sample month
'402':
$ref: '#/components/responses/PaymentRequired'
'400':
description: Error (JSON, never HTML). 4xx errors are never charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error (JSON, never HTML) - never charged; retry with the same payment authorization returns the cached response if the charge went through.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/red_list:
get:
operationId: redListGet
tags:
- Wallets
summary: Wallets that LOSE money for copiers (VETO)
description: 'Machine JSON of wallets a copier should refuse, same method and window as the leaderboard. Live calls are paid from the first request: HTTP 402 (x402). Price per call: $0.02 USDC, or 1 credit with a bearer token. Free integration testing: `sandbox=1`.'
security:
- {}
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/sandbox'
- $ref: '#/components/parameters/x402Probe'
- $ref: '#/components/parameters/paymentSignatureHeader'
- $ref: '#/components/parameters/xPaymentHeader'
- name: Idempotency-Key
in: header
required: false
schema:
type: string
description: Optional client idempotency key; paid responses are also idempotent per x402 payment authorization (same signed authorization -> cached response, never double-charged)
responses:
'200':
description: 'VETO-rated wallets. When settled via per-call x402, the response includes a `paid` object (`price_paid_usdc`, `receipt`), and (x402 v2) a PAYMENT-RESPONSE header. Credit-lane calls get `paid: {credits_used, credits_remaining}` instead.'
headers:
PAYMENT-RESPONSE:
$ref: '#/components/headers/PaymentResponse'
content:
application/json:
schema:
$ref: '#/components/schemas/RedListResponse'
example:
ok: true
computed_at: '2026-07-13'
window: 2026-06-12..2026-07-11 (30d) + out-of-sample month where noted
method: first-entry mirror, $5/trade, entry 0.10-0.90, no crypto-updown, min clip 10 shares; ROI net of 2c slippage; fee-inclusive column adds explicit 2026 taker fees (rate*p*(1-p))
wallets:
- name: swisstony
verdict: VETO
roi_slippage_basis_pct: -3.4
roi_fee_inclusive_pct: -5.7
copied_trades: 11649
win_rate_pct: 54.8
oos_validated: false
reasons:
- biggest wallet by volume on the tape and net-negative to copy
- -5.7% fee-inclusive (-3.4% before explicit fees) over 30d
- name: RN1
verdict: VETO
roi_slippage_basis_pct: -2.5
roi_fee_inclusive_pct: -4.8
copied_trades: 7141
win_rate_pct: 53.1
oos_validated: false
reasons:
- -4.8% fee-inclusive copier ROI over 30d
'402':
$ref: '#/components/responses/PaymentRequired'
'400':
description: Error (JSON, never HTML). 4xx errors are never charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: Server error (JSON, never HTML) - never charged; retry with the same payment authorization returns the cached response if the charge went through.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
/api/preflight_copy:
get:
operationId: preflightCopyGet
tags:
- Wallets
summary: COPY / WATCH / VETO verdict for copy-trading a wallet
description: 'Copy-trading profile with fee-inclusive copier ROI, win rate, entry-price buckets, category mix, iceberg signal and farming screen. The only parameter is `wallet` (alias `user`) - a 0x wallet address; usernames are not accepted. Method honesty: uses a fixed $5-entry / +2c-slippage simulation computed from TickTape''s private identity-tagged trade tape (every fill of 5+ shares, recorded since December 2025; all market categories since mid-January 2026), NOT from the live Polymarket API - exact size-and-delay replay is not live. Explicit 2026 taker fees; crypto up/down markets excluded; rolling 90-day window recomputed nightly; in-sample verdicts capped at WATCH (COPY requires out-of-sample validation). Coverage rule: a wallet with 10+ first entries in the rolling 90-day window has a precomputed profile (tens of thousands of wallets after each nightly run) and answers sub-second; any other wallet returns HTTP 202 verdict QUEUED with a Retry-After header (always free, never settled, never debited) and, if it has tape activity, is typically ready in minutes (the response''s retry_after_seconds tells you when to retry; worst case about an hour) - a wallet below the floor gets an explicit NO_COVERAGE profile. Covered responses include `data_through` and `next_refresh_at` (profiles refresh nightly by ~04:30 UTC) - do not re-purchase the same wallet before next_refresh_at. Full coverage rules incl. order-book archive scope: https://ticktape.cc/tech#coverage; live freshness: https://ticktape.cc/status.json. Live calls are paid from the first request: HTTP 402 (x402). Price per call: $0.10 USDC, or 5 credits with a bearer token. Free integration testing: `sandbox=1`.'
security:
- {}
- bearerAuth: []
parameters:
- $ref: '#/components/parameters/copyWallet'
- $ref: '#/components/parameters/sandbox'
- $ref: '#/components/parameters/x402Probe'
- $ref: '#/components/parameters/paymentSignatureHeader'
- $ref: '#/components/parameters/xPaymentHeader'
- name: Idempotency-Key
in: header
required: false
schema:
type: string
description: Optional client idempotency key; paid responses are also idempotent per x402 payment authorization (same signed authorization -> cached response, never double-charged)
responses:
'200':
description: 'Wallet profile for a covered wallet (verdict QUEUED ships as HTTP 202, not 200). Paid x402 calls include a `paid` object and (v2) a PAYMENT-RESPONSE header; credit-lane calls get `paid: {credits_used: 5, credits_remaining}`.'
headers:
PAYMENT-RESPONSE:
$ref: '#/components/headers/PaymentResponse'
content:
application/json:
schema:
$ref: '#/components/schemas/PreflightCopyResponse'
examples:
covered:
summary: Covered wallet (sandbox shape)
value:
ok: true
wallet: 0x00000000000000000000000000000000sandbox0
name: sandbox-whale
window:
from: '2026-04-14'
to: '2026-07-13'
days: 90
n_first_entries: 214
n_resolved: 180
n_pending: 34
win_rate_pct: 61.7
roi_slippage_basis_pct: 10.8
roi_fee_inclusive_pct: 8.6
avg_entry_price: 0.44
entry_price_buckets:
0.0-0.1: 6
0.1-0.2: 14
0.2-0.3: 27
0.3-0.4: 41
0.4-0.5: 48
0.5-0.6: 39
0.6-0.7: 22
0.7-0.8: 11
0.8-0.9: 4
0.9-1.0: 2
category_mix_pct:
sports: 62.1
politics: 21.5
other: 12.6
crypto: 3.8
clips_per_entry_avg: 3.2
both_sides_pct: 1.9
first_trade_at: '2026-04-15T09:12:44+00:00'
last_trade_at: '2026-07-13T18:03:10+00:00'
active_days: 71
verdict: WATCH
reasons:
- fee-inclusive copier ROI +8.6% (slippage-basis +10.8%) over 180 resolved first entries
- in-sample only - verdicts are capped at WATCH until the wallet survives an out-of-sample month
computed_at: '2026-07-13T03:41:00+00:00'
method: first-entry mirror computed from TickTape's identity-tagged RTDS tape (recorded since 2025-12-30), NOT from the live Polymarket API; $5 stake per first entry at whale price +$0.02 slippage, held to resolution; fee-inclusive ROI adds the 2026 taker fee rate*p*(1-p); crypto up/down window markets excluded; in-sample verdicts are capped at WATCH - COPY requires surviving an out-of-sample month
'400':
description: Error (JSON, never HTML). 4xx errors are never charged.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'402':
$ref: '#/components/responses/PaymentRequired'
'202':
description: QUEUED - wallet below coverage floor or not yet computed. Free (never charged - an attached payment is never settled and credits are never debited). Typically ready in minutes (the response's retry_after_seconds tells you when to retry); worst case about an hour. Covered wallets answer 200 sub-second.
headers:
Retry-After:
schema:
type: integer
description: seconds until the profile is expected to be ready (mirrors the body's retry_after_seconds; typically minutes, worst case about an hour)
content:
application/json:
schema:
$ref: '#/components/schemas/PreflightCopyResponse'
example:
ok: true
verdict: QUEUED
wallet: '0x1234567890abcdef1234567890abcdef12345678'
reasons:
- below coverage floor or not yet computed - typically ready in minutes, worst case about an hour
retry_after_seconds: 3600
note: this response is free - you were not charged. Retry the same call later; covered wallets answer sub-second.
'500':
description: Server error (JSON, never HTML) - never charged; retry with the same payment authorization returns the cached response if the charge went through.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: string
candidates:
type: array
items:
type: string
description: 'For multi-outcome events: valid outcome names when the requested outcome was not found.'
WalletRating:
type: object
required:
- name
- verdict
- roi_fee_inclusive_pct
- reasons
properties:
name:
type: string
description: Polymarket display name (public pseudonym).
verdict:
type: string
enum:
- COPY
- WATCH
- VETO
roi_slippage_basis_pct:
type: number
description: Simulated copier ROI over the window net of the 2c slippage floor, before explicit taker fees.
roi_fee_inclusive_pct:
type: number
description: Simulated copier ROI over the window with explicit 2026 taker fees, first-entry mirror $5/trade, 2c slippage.
copied_trades:
type: integer
description: Number of mirrored trades in the in-sample window (the 30d window in `window`).
oos_trades:
type: integer
description: Number of mirrored trades in the out-of-sample month. Present when the OOS sample size drove the verdict; distinct from copied_trades, which counts the in-sample window.
win_rate_pct:
type: number
description: Share of mirrored in-sample trades that won, in percent.
oos_validated:
type: boolean
description: True if the wallet survived the out-of-sample month.
reasons:
type: array
items:
type: string
description: Reasons and caveats behind the verdict, each carrying its numbers.
Paid:
type: object
description: 'Payment record attached to paid responses. Per-call x402 settlement: {price_paid_usdc, transaction, network, receipt}. Credit-lane (bearer token) calls: {credits_used, credits_remaining}. Absent on sandbox and free QUEUED responses.'
properties:
price_paid_usdc:
type: string
description: USDC actually settled for this call, as a decimal string (e.g. "0.02").
transaction:
type: string
description: On-chain settlement transaction hash.
network:
type: string
description: CAIP-2 network id, eip155:8453 (Base).
receipt:
type:
- string
- 'null'
format: uri
description: Basescan transaction link for the on-chain settlement.
credits_used:
type: integer
description: Credits debited for this call (credit-lane only).
credits_remaining:
type: integer
description: Credits left on the wallet after this call (credit-lane only).
X402PaymentRequiredBody:
type: object
description: x402 v1-style payment requirements (the v2 equivalent is base64-encoded in the PAYMENT-REQUIRED response header).
required:
- accepts
properties:
x402Version:
type: integer
error:
type: string
accepts:
type: array
items:
type: object
required:
- scheme
- network
- maxAmountRequired
- asset
- payTo
- resource
properties:
scheme:
type: string
const: exact
network:
type: string
description: '"base" in v1 payloads; CAIP-2 eip155:8453 in v2 headers.'
maxAmountRequired:
type: string
description: 'Atomic USDC units (6 decimals): "20000" = $0.02, "100000" = $0.10, "5000000" = $5.'
asset:
type: string
description: 'USDC on Base: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Refuse anything else.'
payTo:
type: string
description: Must equal 0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6 - verify against https://ticktape.cc/llms.txt before signing.
resource:
type: string
format: uri
description: Must be under https://ticktape.cc/ - never pay for resources elsewhere.
description:
type: string
maxTimeoutSeconds:
type: integer
PreflightCopyResponse:
type: object
description: Copy-trading profile for one wallet, computed from TickTape's identity-tagged tape (Dec 2025 onward), rolling 90-day window, recomputed nightly. QUEUED responses ship as HTTP 202 with a Retry-After header, carry only verdict/wallet/reasons/retry_after_seconds/note and are always free.
required:
- ok
- verdict
properties:
ok:
type: boolean
verdict:
type: string
enum:
- COPY
- WATCH
- VETO
- NO_COVERAGE
- QUEUED
description: COPY only for out-of-sample-validated wallets; in-sample verdicts are capped at WATCH. VETO = negative fee-inclusive copier ROI or both-sides farming pattern. NO_COVERAGE = below the 10-first-entry floor. QUEUED = not computed yet (HTTP 202 + Retry-After, free) - typically ready in minutes (retry after retry_after_seconds), worst case about an hour.
reasons:
type: array
items:
type: string
wallet:
type: string
name:
type:
- string
- 'null'
description: last pseudonym seen on the tape
window:
type: object
properties:
from:
type: string
to:
type: string
days:
type: integer
n_first_entries:
type: integer
description: distinct (market, outcome) first BUY entries in the window; crypto up/down markets excluded
n_resolved:
type: integer
n_pending:
type: integer
win_rate_pct:
type:
- number
- 'null'
roi_slippage_basis_pct:
type:
- number
- 'null'
description: $5/entry at whale price +2c slippage, held to resolution
roi_fee_inclusive_pct:
type:
- number
- 'null'
description: slippage basis minus explicit 2026 taker fees (rate*p*(1-p))
avg_entry_price:
type:
- number
- 'null'
entry_price_buckets:
type: object
additionalProperties:
type: integer
category_mix_pct:
type: object
additionalProperties:
type: number
clips_per_entry_avg:
type: number
description: iceberg signal - how many fills the wallet splits one entry into
both_sides_pct:
type: number
description: share of markets where the wallet bought BOTH outcomes (farming smell)
first_trade_at:
type:
- string
- 'null'
last_trade_at:
type:
- string
- 'null'
active_days:
type: integer
retry_after_seconds:
type: integer
description: QUEUED only
computed_at:
type: string
method:
type: string
paid:
$ref: '#/components/schemas/Paid'
RedListResponse:
type: object
required:
- ok
- computed_at
- window
- method
- wallets
properties:
ok:
type: boolean
computed_at:
type: string
format: date
window:
type: string
description: Human-readable audit window, e.g. "2026-06-12..2026-07-11 (30d) + out-of-sample month where noted".
method:
type: string
universe:
type: string
description: The selection funnel behind the ratings.
note:
type: string
wallets:
type: array
items:
$ref: '#/components/schemas/WalletRating'
description: Wallets rated VETO - copying them lost money for the simulated copier.
paid:
$ref: '#/components/schemas/Paid'
LeaderboardResponse:
type: object
required:
- ok
- computed_at
- window
- method
- wallets
properties:
ok:
type: boolean
computed_at:
type: string
format: date
window:
type: string
description: Human-readable audit window, e.g. "2026-06-12..2026-07-11 (30d) + out-of-sample month where noted".
method:
type: string
universe:
type: string
description: The selection funnel behind the ratings.
note:
type: string
wallets:
type: array
items:
$ref: '#/components/schemas/WalletRating'
description: Wallets rated COPY or WATCH.
paid:
$ref: '#/components/schemas/Paid'
parameters:
x402Probe:
name: x402_probe
in: query
description: Set to 1 to receive the HTTP 402 payment requirements for this call without paying. Free, always.
schema:
type: integer
enum:
- 1
sandbox:
name: sandbox
in: query
description: Set to 1 for a free deterministic example response. Never rate-limited, never charged. Use it to wire up parsing before paying.
schema:
type: integer
enum:
- 1
copyWallet:
name: wallet
in: query
description: 'Trader proxy wallet, 0x + 40 hex chars (alias: user=). The only parameter for preflight_copy - size/delay knobs do not exist; the verdict uses a fixed $5-entry / +2c-slippage simulation.'
schema:
type: string
pattern: ^0x[0-9a-fA-F]{40}$
paymentSignatureHeader:
name: PAYMENT-SIGNATURE
in: header
description: 'x402 v2 (primary): signed payment payload, base64-encoded. Send it when retrying a request that returned 402 with a PAYMENT-REQUIRED header. Reuse the same payment authorization on retries - the response is cached and never double-charged.'
schema:
type: string
contentEncoding: base64
xPaymentHeader:
name: X-PAYMENT
in: header
description: 'x402 v1 (also accepted): signed payment payload, base64-encoded, built from the 402 JSON body''s accepts[]. Reuse the same payment authorization on retries.'
schema:
type: string
contentEncoding: base64
headers:
PaymentRequired:
description: 'x402 v2 (primary): base64-encoded payment requirements. Decode, sign a payment authorization for exactly these terms (asset USDC on Base eip155:8453 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payTo 0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6 - verify against https://ticktape.cc/llms.txt), then retry with the PAYMENT-SIGNATURE request header.'
schema:
type: string
contentEncoding: base64
PaymentResponse:
description: 'x402 v2: base64-encoded settlement confirmation for a paid call (facilitator: Coinbase CDP; settlement synchronous). Present only when the call was settled per-call via PAYMENT-SIGNATURE.'
schema:
type: string
contentEncoding: base64
responses:
PaymentRequired:
description: 'Live calls are paid from the first request (there is no free live tier), or `x402_probe=1` was set. Pay with x402 to proceed - dual-stack:
- x402 v2 (primary): this response carries base64-encoded payment requirements in the PAYMENT-REQUIRED response header (network CAIP-2 `eip155:8453`). Retry the identical request with the PAYMENT-SIGNATURE request header. The paid 200 carries a PAYMENT-RESPONSE header.
- x402 v1 (also accepted): the JSON body carries the same requirements in `accepts[]` (network `"base"`). Retry with the X-PAYMENT request header.
Asset: USDC on Base only (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913). payTo: 0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6 - verify against https://ticktape.cc/llms.txt before signing. Per-call settlement is on-chain and adds ~2-5s (congestion tails longer); the credit lane (POST /api/credits + bearer token) responds in ~0.4s. Retrying with the SAME payment authorization returns the cached response and never double-charges. Facilitator: Coinbase CDP; settlement synchronous.'
headers:
PAYMENT-REQUIRED:
$ref: '#/components/headers/PaymentRequired'
content:
application/json:
schema:
$ref: '#/components/schemas/X402PaymentRequiredBody'
example:
x402Version: 1
error: 'live calls are paid: $0.02 via x402 (v2 PAYMENT-SIGNATURE or v1 X-PAYMENT), or use credits (POST /api/credits). Free integration testing: ?sandbox=1'
accepts:
- scheme: exact
network: base
maxAmountRequired: '20000'
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
payTo: '0xb28bcb21a054ffeeb6ce62d0f1bb0175c022d2c6'
resource: https://ticktape.cc/api/preflight_trade
description: TickTape preflight_trade - one call
maxTimeoutSeconds: 60
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: tk_<wallet>_<secret>
description: Credit-lane bearer token issued by POST /api/credits. Treat it as a secret. The last 5 tokens per wallet stay valid; credits are valid 12 months. Authenticated calls skip x402 settlement, respond in ~0.4s, and debit credits (preflight_trade / leaderboard / red_list = 1 credit; preflight_copy = 5 credits).