{"openapi":"3.1.0","info":{"title":"CanIApe","description":"Pre-trade risk checks for tokens on Solana, Base, Ethereum, BNB Chain, Arbitrum, Polygon, Avalanche, Linea, Monad, Robinhood Chain, Tron (contract security, liquidity, slippage, unlocks, leverage crowding) and small spot backtests. Paid per call with x402: USDC on Base or USDC on Solana; the 402 challenge lists both and your client picks one.","contact":{"email":"hello@caniape.com"},"version":"0.2"},"paths":{"/v1/check":{"get":{"summary":"Check","operationId":"check_v1_check_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":60,"description":"Contract/mint address, or a symbol (Solana symbols like SOL, JUP, BONK work without chain)","title":"Token"},"description":"Contract/mint address, or a symbol (Solana symbols like SOL, JUP, BONK work without chain)"},{"name":"size","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Your trade size in USD (10 to 250000)","title":"Size"},"description":"Your trade size in USD (10 to 250000)"},{"name":"chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"description":"Optional: solana, base, ethereum, bsc, arbitrum, polygon, avalanche, linea, monad, robinhood, tron. Auto-detected from the address when omitted.","title":"Chain"},"description":"Optional: solana, base, ethereum, bsc, arbitrum, polygon, avalanche, linea, monad, robinhood, tron. Auto-detected from the address when omitted."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment required. Pay USDC on Base or Solana via x402, then retry with the payment header."}},"x-payment-info":{"protocols":[{"name":"x402"}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}}}},"/v1/free/me":{"get":{"summary":"Free Me","description":"Anonymous referral id, invite link and bonus balance for this browser. Does not consume a check.","operationId":"free_me_v1_free_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/free/check":{"get":{"summary":"Free Check","operationId":"free_check_v1_free_check_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":60,"title":"Token"}},{"name":"chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/check":{"get":{"summary":"Internal Check","operationId":"internal_check_internal_check_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":60,"title":"Token"}},{"name":"size","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Size"}},{"name":"chain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Chain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/backtest":{"post":{"summary":"Bt","operationId":"bt_v1_backtest_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"Payment required. Pay USDC on Base or Solana via x402, then retry with the payment header."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["strategy","asset"],"properties":{"strategy":{"type":"string","enum":["donchian_breakout","sma_cross","rsi_reversion"],"description":"Documented long-only daily strategy."},"asset":{"type":"string","enum":["BTC","ETH","SOL","BNB","XRP","DOGE","ADA","AVAX","LINK","NEAR","SUI","LTC","DOT","TRX","BCH","UNI","AAVE","TON","APT","ARB"],"description":"Spot asset ticker."},"start":{"type":"string","description":"Start date YYYY-MM-DD. Optional; must be on or after 2020-01-01."},"end":{"type":"string","description":"End date YYYY-MM-DD. Optional."},"params":{"type":"object","additionalProperties":{"type":"number"},"description":"Strategy parameters; defaults used when omitted."},"cost_pct_per_side":{"type":"number","minimum":0,"maximum":1,"default":0.15,"description":"Fee plus slippage in percent per side. Default 0.15."}}},"example":{"strategy":"donchian_breakout","asset":"ETH","start":"2022-01-01"}}}},"x-payment-info":{"protocols":[{"name":"x402"}],"price":{"mode":"fixed","currency":"USD","amount":"0.05"}}}},"/v1/strategies":{"get":{"summary":"Strategies","operationId":"strategies_v1_strategies_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/tokens":{"get":{"summary":"Tokens","operationId":"tokens_v1_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/chains":{"get":{"summary":"Chains","operationId":"chains_v1_chains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/health":{"get":{"summary":"Health","operationId":"health_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/llms.txt":{"get":{"summary":"Llms","operationId":"llms_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/robots.txt":{"get":{"summary":"Robots","operationId":"robots_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/admin":{"get":{"summary":"Admin","operationId":"admin_admin_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/admin/weekly":{"get":{"summary":"Admin Weekly","operationId":"admin_weekly_admin_weekly_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}