{"openapi":"3.1.0","info":{"title":"Paper Desk API","version":"0.1.0","description":"Read-only paper-trading desk data over x402 (USDC). Paper/simulated, not financial advice, no trade signals.","x-guidance":"Paid GET endpoints, no account needed; pay per call with x402 (USDC on Solana, and Base when BASE_PAY_TO_ADDRESS is set). 1) GET /api/signals/squeeze?coin=BTC ($0.01): crowded-short / Squeeze Gate verdict (PASS/BLOCK) with funding, premium, OI change, and RSI; missing fields are null with a reason; invalid coin returns 400 before payment. 2) GET /api/signals/funding?coin=BTC ($0.01): funding rate, premium, OI and OI delta for that coin. 3) GET /api/signals/macro ($0.005): combined macro score (Nasdaq, VIX, dollar) plus BTC ETF flows, with components. 4) GET /api/track-record ($0.005): paper fills, gated signals with reasons, win rate, P&L and drawdown at 5x and the 40x shadow account, clearly labeled paper/simulated. Free teaser: GET /api/signals/sample (latest-pass teaser). Also free: /api/health, /api/pricing, /llms.txt, /.well-known/x402, /openapi.json. x402 v2 is the default 402; append ?x402v=1 or send X-X402-Version: 1 for a v1-shaped body. Payments are final. There is no paid trade-signal endpoint.","termsOfService":"https://paper-desk-x402.vercel.app/terms","x-payment-recipients":{"solana":{"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"7JAuWxcEpZL2wK3gm6eTR2p7d1SAofM4EHxuTgemAAae"},"base":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xd46d5E0EBC17FAc1cb37e894A77F7d75A69Da944"}}},"servers":[{"url":"https://paper-desk-x402.vercel.app"}],"paths":{"/api/signals/squeeze":{"get":{"operationId":"getSqueezeGate","summary":"Squeeze Gate (crowded shorts) for one coin","description":"PASS/BLOCK verdict plus funding, premium, OI change, and RSI. Example: /api/signals/squeeze?coin=BTC. Free teaser: /api/signals/sample.","tags":["Signals"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}],"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"7JAuWxcEpZL2wK3gm6eTR2p7d1SAofM4EHxuTgemAAae","base":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xd46d5E0EBC17FAc1cb37e894A77F7d75A69Da944"}},"parameters":[{"name":"coin","in":"query","required":true,"description":"Hyperliquid perp on the paper desk whitelist","schema":{"type":"string","enum":["BTC","ETH","SOL","XRP"]},"example":"BTC"}],"responses":{"200":{"description":"Squeeze report","content":{"application/json":{"schema":{"type":"object"},"example":{"as_of":"2026-11-21T20:38:18-06:00","as_of_cst":"2026-11-21 20:38:18 CST","disclaimer":"Paper/simulated data from a paper-trading desk, not financial advice. Not a live trading signal.","paper":true,"simulated":true,"not_financial_advice":true,"coin":"BTC","crowded_shorts":false,"verdict":"PASS","reason":"no crowded-short block on available inputs (unchecked: rsi)","reasons":[],"funding_h":-0.0000103511,"premium":-0.0005806772,"oi_change":0.000030754672107224934,"rsi":null,"rsi_reason":"RSI was not in the last_pass snapshot; unchecked, not invented.","mark":59551,"missing":["rsi"]}}}},"400":{"description":"Missing or invalid coin (rejected before payment; not charged)"},"402":{"description":"Payment Required"},"503":{"description":"PAY_TO_ADDRESS unset, or snapshot unavailable"}}}},"/api/signals/funding":{"get":{"operationId":"getFundingOi","summary":"Funding and open interest for one coin","description":"Hourly funding, mark vs oracle premium, OI and OI change. Example: /api/signals/funding?coin=BTC.","tags":["Signals"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}],"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"7JAuWxcEpZL2wK3gm6eTR2p7d1SAofM4EHxuTgemAAae","base":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xd46d5E0EBC17FAc1cb37e894A77F7d75A69Da944"}},"parameters":[{"name":"coin","in":"query","required":true,"description":"Hyperliquid perp on the paper desk whitelist","schema":{"type":"string","enum":["BTC","ETH","SOL","XRP"]},"example":"BTC"}],"responses":{"200":{"description":"Funding/OI snapshot","content":{"application/json":{"schema":{"type":"object"},"example":{"as_of":"2026-11-21T20:38:18-06:00","as_of_cst":"2026-11-21 20:38:18 CST","disclaimer":"Paper/simulated data from a paper-trading desk, not financial advice. Not a live trading signal.","paper":true,"simulated":true,"not_financial_advice":true,"coin":"BTC","mark":59551,"funding_h":-0.0000103511,"premium":-0.0005806772,"oi":37282.63656,"oi_change":0.000030754672107224934,"px_change":0,"units":{"funding_h":"fraction per hour","premium":"mark vs oracle, fraction","oi_change":"fraction vs previous desk pass"}}}}},"400":{"description":"Missing or invalid coin (rejected before payment; not charged)"},"402":{"description":"Payment Required"},"503":{"description":"PAY_TO_ADDRESS unset, or snapshot unavailable"}}}},"/api/signals/macro":{"get":{"operationId":"getMacroScore","summary":"Macro score and ETF flows","description":"Combined Nasdaq/VIX/dollar score plus BTC spot ETF flows, with components.","tags":["Signals"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}],"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"7JAuWxcEpZL2wK3gm6eTR2p7d1SAofM4EHxuTgemAAae","base":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xd46d5E0EBC17FAc1cb37e894A77F7d75A69Da944"}},"responses":{"200":{"description":"Macro and ETF score","content":{"application/json":{"schema":{"type":"object"},"example":{"as_of":"2026-11-21T20:38:18-06:00","as_of_cst":"2026-11-21 20:38:18 CST","disclaimer":"Paper/simulated data from a paper-trading desk, not financial advice. Not a live trading signal.","paper":true,"simulated":true,"not_financial_advice":true,"combined_score":{"score":2,"components":{"macro":1,"etf_flows":1},"reason":null},"macro":{"score":1,"detail":"NQ -5.28%, VIX 35.9 (+26.2%), DXY -0.09% (daily close 2026-11-20); pts=2","components":{"nasdaq":{"change":-0.0528,"points":1},"vix":{"close":35.9,"change":0.262,"points":1},"dollar":{"change":-0.0009,"points":0}}},"etf_flows":{"score":1,"detail":"BTC spot ETF net flow 2026-11-20: -124.5M USD","last_day":{"date":"2026-11-20","net_musd":-124.5}}}}}},"402":{"description":"Payment Required"},"503":{"description":"PAY_TO_ADDRESS unset, or snapshot unavailable"}}}},"/api/track-record":{"get":{"operationId":"getTrackRecord","summary":"Paper track record","description":"Logged paper fills, gated signals, win rate, P&L and drawdown at 5x and 40x. Labeled paper/simulated.","tags":["Track record"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005"},"protocols":[{"x402":{}}],"network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"7JAuWxcEpZL2wK3gm6eTR2p7d1SAofM4EHxuTgemAAae","base":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xd46d5E0EBC17FAc1cb37e894A77F7d75A69Da944"}},"responses":{"200":{"description":"Paper track record","content":{"application/json":{"schema":{"type":"object"},"example":{"as_of":"2026-11-21T20:38:18-06:00","as_of_cst":"2026-11-21 20:38:18 CST","disclaimer":"Paper/simulated data from a paper-trading desk, not financial advice. Not a live trading signal.","paper":true,"simulated":true,"not_financial_advice":true,"label":"paper/simulated, not a live track record of real money","by_account":{"5x":{"starting_equity":150,"equity":150,"closed_trades":0,"wins":0,"losses":0,"win_rate":null,"win_rate_reason":"no closed paper trades yet","pnl":0,"max_drawdown":0,"liquidations":0},"40x":{"starting_equity":150,"equity":150,"closed_trades":0,"wins":0,"losses":0,"win_rate":null,"win_rate_reason":"no closed paper trades yet","pnl":0,"max_drawdown":0,"liquidations":0}},"fills":[],"gated_signals":[],"skipped_roles":[{"ts_cst":"2026-11-21 19:25","reason":"Macro Scout: Yahoo Finance unavailable (HTTPError); score 0"}]}}}},"402":{"description":"Payment Required"},"503":{"description":"PAY_TO_ADDRESS unset, or snapshot unavailable"}}}},"/api/signals/sample":{"get":{"operationId":"getSampleTeaser","summary":"Free latest-pass teaser","description":"Unpaid teaser of the last desk pass (verdict + combined score + links to paid routes).","tags":["Free"],"responses":{"200":{"description":"Free teaser"}}}},"/api/health":{"get":{"operationId":"getHealth","summary":"Health","tags":["Free"],"responses":{"200":{"description":"Health"}}}},"/api/pricing":{"get":{"operationId":"getPricing","summary":"Prices and payTo","tags":["Free"],"responses":{"200":{"description":"Pricing"}}}}},"x-disclaimer":"Paper/simulated data from a paper-trading desk, not financial advice. Not a live trading signal.","x-prices":{"squeeze":"$0.01","funding":"$0.01","macro":"$0.005","trackRecord":"$0.005"}}