{"openapi":"3.1.0","info":{"title":"AlphaPipeline API","description":"Pay-per-call ($0.005-$0.03 USDC) market/on-chain data API for AI agents and trading bots","version":"0.3.0"},"paths":{"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/unlocks/dump-risk":{"get":{"tags":["market"],"summary":"Detect tokens at risk of sell pressure from unlocks/vesting","description":"Use this endpoint when you need to assess whether a token carries dumping risk from token unlocks or ongoing vesting schedules - before entering a position, when screening a token list for a trading strategy, or when a user asks 'is this token safe from unlocks'. Returns tokens whose currently-locked or unlock-eligible supply exceeds a materiality threshold (default 3% of circulating supply), each with a computed risk_level (LOW/MEDIUM/HIGH). Data source varies automatically: when a precise unlock calendar is configured it includes days_until_unlock; otherwise (the current default, sourced from on-chain Sablier vesting contracts) it reports only the currently-locked amount, with days_until_unlock=null and timing_precision='pending_schema_verification' - treat a null value as 'timing unknown', never as 'no risk'. On the on-chain path it also reports vesting_deposit_amount/vesting_withdrawn_amount (Sablier's own depositAmount/withdrawnAmount, aggregated across streams) and vesting_progress_pct (withdrawn/deposit * 100), showing how far along the vesting schedule already is. No input parameters. Do not treat the absence of a token in this list as proof it has no lockup - coverage is limited to supported vesting mechanisms; always check the coverage_notice field in the response.","operationId":"dump_risk_endpoint_v1_unlocks_dump_risk_get","responses":{"200":{"description":"Unlock/vesting dump-risk data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DumpRiskResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (DropsTab/Sablier/CoinGecko) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/market/kimchi-alert":{"get":{"tags":["market"],"summary":"Detect Korea-vs-global crypto price arbitrage (kimchi premium)","description":"Use this endpoint when you need to know whether a cryptocurrency is trading at a premium or discount on Korean exchanges (Upbit) versus a global reference price, commonly known as the 'kimchi premium'. The global side is Coinbase spot (CoinGecko fallback), NOT a live Binance orderbook - the legacy field name binance_price_usdt is kept for backward compatibility only (see cex_reference_price_usdt / cex_price_source for the honestly-labeled fields). Call this when asked about cross-exchange arbitrage opportunities in Korean crypto markets, to detect a reverse premium (localized crash risk, triggered at -1.5% or below), or to detect a sudden premium surge within the last hour (3 percentage points or more). Returns the current premium percentage, its 1-hour change, and boolean alert flags. Input: optional `symbol` query parameter (e.g. BTC, ETH, SOL - default BTC). This is a live snapshot only - do not call it for historical or backtesting data, or for non-Korean-exchange comparisons. Free by default (KIMCHI_ALERT_ENABLED=false) as an onboarding tool - see the root `/` response's price_per_call_usdc for the live price, which is always authoritative regardless of what this static doc says.","operationId":"kimchi_alert_endpoint_v1_market_kimchi_alert_get","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"e.g. BTC, ETH, SOL","default":"BTC","title":"Symbol"},"description":"e.g. BTC, ETH, SOL"}],"responses":{"200":{"description":"Kimchi premium calculation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KimchiAlertResponse"}}}},"402":{"description":"x402 payment required (only if KIMCHI_ALERT_ENABLED=true)"},"502":{"description":"Upstream (Upbit/Coinbase) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/tools/ai-markdown":{"get":{"tags":["tools"],"summary":"Convert any webpage into clean, agent-ready Markdown","description":"Use this endpoint when you need to read the actual content of a webpage but want to avoid wasting tokens on HTML tags, ads, navigation menus, and scripts - or when raw HTML parsing is causing hallucinations in downstream reasoning. Call this before summarizing, extracting facts from, or answering questions about any arbitrary URL. Input: required `url` query parameter (the full http/https URL to convert). Returns the page title, character count, and clean Markdown body text. Do not call this for URLs requiring authentication/login, or for non-HTML resources such as PDFs or binary files - those are not supported.","operationId":"ai_markdown_endpoint_v1_tools_ai_markdown_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Webpage URL to convert","title":"Url"},"description":"Webpage URL to convert"}],"responses":{"200":{"description":"Cleaned Markdown","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkdownResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Target URL access/parsing error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/token-risk":{"get":{"tags":["security"],"summary":"Check a token contract for honeypot/scam risk before buying","description":"Use this endpoint when you need to know whether a token contract is safe to buy - call it right before entering a position on an unfamiliar or newly-listed token. Returns is_honeypot, buy/sell tax percentages, mintability, open-source status, ownership renouncement, holder count, individual GoPlus risk signals (cannot_buy, cannot_sell_all, hidden_owner, transfer_pausable, selfdestruct, is_blacklisted, slippage_modifiable, owner_percent - these feed risk_flags), is_proxy/trading_cooldown (informational only, not flagged), and a summarized risk_level (LOW/MEDIUM/HIGH/UNKNOWN) with risk_flags. All GoPlus-only fields are null on the Honeypot.is fallback path. Data source is GoPlus Security (primary), falling back to Honeypot.is if GoPlus is unavailable - check the data_source and notice fields to see which was used. Input: required `chain_id` (EVM chain id, e.g. 8453 for Base) and `contract_address` query parameters. Do not treat a null field as 'safe' - it means that field could not be determined; check risk_level and risk_flags instead.","operationId":"token_risk_endpoint_v1_security_token_risk_get","parameters":[{"name":"chain_id","in":"query","required":true,"schema":{"type":"integer","description":"EVM chain id, e.g. 8453 for Base","title":"Chain Id"},"description":"EVM chain id, e.g. 8453 for Base"},{"name":"contract_address","in":"query","required":true,"schema":{"type":"string","description":"Token contract address (0x...)","title":"Contract Address"},"description":"Token contract address (0x...)"}],"responses":{"200":{"description":"Token security / honeypot risk data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRiskResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (GoPlus/Honeypot.is) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/contract-health-audit":{"get":{"tags":["market"],"summary":"Audit LP lock/burn status for a token contract (GoPlus)","description":"Use this endpoint to check whether a token's liquidity pool tokens are locked, burned, or freely held by a single wallet before trusting its liquidity - a key rug-pull signal that security.token_risk does not cover. Reuses the same GoPlus Security data as token-risk (no extra upstream call): lp_locked_pct (recognized third-party lockers), lp_burned_pct (sent to a known burn address), top_unlocked_holder_pct (largest single non-locked LP holder), and top5_unlocked_holder_pct (top 5 non-locked holders summed), rolled up into a liquidity_health category (LOCKED / PARTIALLY_LOCKED / UNLOCKED / NO_LP_DATA). Deliberately does not include any qualitative 'suspicious transaction' judgment - only GoPlus's own numbers. Input: `chain_id` (e.g. 8453 for Base) and `contract_address` (required). Has no fallback if GoPlus fails, since Honeypot.is does not expose LP lock data.","operationId":"contract_health_audit_endpoint_v1_security_contract_health_audit_get","parameters":[{"name":"chain_id","in":"query","required":true,"schema":{"type":"integer","description":"EVM chain id, e.g. 8453 for Base","title":"Chain Id"},"description":"EVM chain id, e.g. 8453 for Base"},{"name":"contract_address","in":"query","required":true,"schema":{"type":"string","description":"Token contract address (0x...)","title":"Contract Address"},"description":"Token contract address (0x...)"}],"responses":{"200":{"description":"LP lock/burn audit result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractHealthAuditResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (GoPlus) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/token-prescreen":{"get":{"tags":["market"],"summary":"Cheap liquidity + LP-lock pre-filter before a full security check (GoPlus + GeckoTerminal)","description":"Use this endpoint to cheaply drop obviously-bad candidates out of a batch before spending the pricier security.token_risk / security.token_diagnostic calls on the survivors - this is the exact workflow the dogfooding trading bot's own new-pool discovery loop needed (2026-09-14 feedback): most new-pool candidates fail a basic liquidity/LP-lock check anyway. Combines GoPlus's LP lock/burn status (same underlying call as contract-health-audit, no extra upstream cost) with GeckoTerminal's top-pool USD liquidity (same source as dex-liquidity-slippage) into one minimal response: `liquidity_usd` and `liquidity_health` (same categories as contract-health-audit: LOCKED / PARTIALLY_LOCKED / UNLOCKED / NO_LP_DATA / UNKNOWN). Does NOT check honeypot/tax/mint risk and does NOT give the full LP-holder breakdown (top_unlocked_holder_pct, lp_holder_count, etc.) - use security.token_risk / security.contract_health_audit for that. `liquidity_usd` is null when `chain_id` isn't one this endpoint maps to a GeckoTerminal network for (currently Base, Ethereum, BSC, Polygon, Arbitrum, Optimism, Avalanche) - LP lock data is unaffected, since GoPlus takes chain_id directly. Input: `chain_id` (e.g. 8453 for Base) and `contract_address` (required).","operationId":"token_prescreen_endpoint_v1_security_token_prescreen_get","parameters":[{"name":"chain_id","in":"query","required":true,"schema":{"type":"integer","description":"EVM chain id, e.g. 8453 for Base","title":"Chain Id"},"description":"EVM chain id, e.g. 8453 for Base"},{"name":"contract_address","in":"query","required":true,"schema":{"type":"string","description":"Token contract address (0x...)","title":"Contract Address"},"description":"Token contract address (0x...)"}],"responses":{"200":{"description":"Cheap liquidity + LP-lock pre-screen result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPrescreenResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (GoPlus/GeckoTerminal) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/token-authenticity":{"get":{"tags":["market"],"summary":"Flags contracts impersonating a known mainstream asset (GoPlus fake_token/trust_list)","description":"Checks whether this contract impersonates a known mainstream asset (e.g. a fake 'USDC'), using GoPlus's fake_token/trust_list/honeypot_with_same_creator fields - same underlying token_security call as security.token_risk / contract_health_audit / token_prescreen, no extra upstream cost. `flagged_as_counterfeit=false` is NOT proof of authenticity - it only means GoPlus found no such flag on this contract at query time. `true_token_address` is only set when flagged_as_counterfeit is true. No honeypot/tax/LP checks here - use security.token_risk / security.contract_health_audit for those. No Honeypot.is fallback exists for these fields, so a GoPlus lookup failure returns null fields with data_source=none. Input: `chain_id` (e.g. 8453 for Base) and `contract_address` (required).","operationId":"token_authenticity_endpoint_v1_security_token_authenticity_get","parameters":[{"name":"chain_id","in":"query","required":true,"schema":{"type":"integer","description":"EVM chain id, e.g. 8453 for Base","title":"Chain Id"},"description":"EVM chain id, e.g. 8453 for Base"},{"name":"contract_address","in":"query","required":true,"schema":{"type":"string","description":"Token contract address (0x...)","title":"Contract Address"},"description":"Token contract address (0x...)"}],"responses":{"200":{"description":"Contract impersonation check result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenAuthenticityResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (GoPlus) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/security/token-diagnostic":{"get":{"tags":["market"],"summary":"Bundle token_risk + contract_health_audit into one objective diagnostic report","description":"Runs security.token_risk (honeypot/tax/mint/ownership) and security.contract_health_audit (LP lock/burn) in parallel against the same GoPlus data and returns both result sets combined, plus a deduped union of their risk_flags and a plain risk_flags_count. Deliberately does NOT compute a composite score or letter grade (A-F) - every field here is copied unchanged from the two underlying tools, no new weighting or judgment logic. Cheaper than calling both separately ($0.03 vs $0.04). Does not cover token unlock/vesting risk - use unlocks.dump_risk separately for that. Input: `chain_id` (e.g. 8453 for Base) and `contract_address` (required).","operationId":"token_diagnostic_endpoint_v1_security_token_diagnostic_get","parameters":[{"name":"chain_id","in":"query","required":true,"schema":{"type":"integer","description":"EVM chain id, e.g. 8453 for Base","title":"Chain Id"},"description":"EVM chain id, e.g. 8453 for Base"},{"name":"contract_address","in":"query","required":true,"schema":{"type":"string","description":"Token contract address (0x...)","title":"Contract Address"},"description":"Token contract address (0x...)"}],"responses":{"200":{"description":"Combined diagnostic result (no composite score)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenDiagnosticResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (GoPlus) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/derivatives/whale-position-audit":{"get":{"tags":["market"],"summary":"Audit a Hyperliquid wallet's open perp positions (leverage, liquidation risk, PnL)","description":"Input a Hyperliquid wallet address you already know (from an explorer, a leaderboard screenshot, on-chain sleuthing, etc.) and get back its current perpetual futures exposure: every open position with side, size, leverage, max_leverage, unrealized PnL, return_on_equity_pct, liquidation price, and distance-to-liquidation percentage (max_leverage and return_on_equity_pct are Hyperliquid's own reported fields, not derived by this endpoint). This is deliberately an audit tool, not a 'smart money' discovery tool - Hyperliquid's public API has no leaderboard or large-trader disclosure endpoint, so this does not attempt to identify or rank wallets itself. risk_flags (HIGH_LEVERAGE, NEAR_LIQUIDATION) are computed from fixed numeric thresholds only, never a qualitative judgment. Input: `address` (required, Hyperliquid/EVM wallet address, 0x...).","operationId":"whale_position_audit_endpoint_v1_derivatives_whale_position_audit_get","parameters":[{"name":"address","in":"query","required":true,"schema":{"type":"string","description":"Hyperliquid/EVM wallet address to audit (0x...)","title":"Address"},"description":"Hyperliquid/EVM wallet address to audit (0x...)"}],"responses":{"200":{"description":"Wallet position audit result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhalePositionAuditResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Hyperliquid) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/derivatives/funding-rate":{"get":{"tags":["market"],"summary":"Get perpetual futures funding rate (Bybit primary, Binance fallback)","description":"Use this endpoint when you need to gauge long/short crowding in perpetual futures before entering or hedging a position, or when asked about funding rate arbitrage / carry trade opportunities. Returns the current funding rate (as a decimal and as a percentage), the timestamp of the next funding settlement, and the funding interval in hours when available. Data source is Bybit (primary), falling back to Binance USDT-M futures if Bybit is unavailable - check data_source and notice to see which was used and read the notice for why predicted_rate equals funding_rate (neither exchange exposes a separate forecast field). Also returns mark_price and index_price (populated on both the Bybit and Binance paths) and open_interest_usd (Bybit path only - always null on the Binance fallback, since Binance's premiumIndex endpoint does not report open interest). Input: required `symbol` query parameter (e.g. BTC, ETH, or BTCUSDT - non-USDT-suffixed symbols are normalized to USDT pairs).","operationId":"funding_rate_endpoint_v1_derivatives_funding_rate_get","parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","description":"e.g. BTC, ETH, or BTCUSDT","title":"Symbol"},"description":"e.g. BTC, ETH, or BTCUSDT"}],"responses":{"200":{"description":"Perpetual futures funding rate data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingRateResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Bybit/Binance) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/derivatives/funding-rate-value":{"get":{"tags":["market"],"summary":"Cheapest-tier: just the funding rate number (no mark/index price)","description":"Thin, cheapest-tier wrapper around derivatives.funding-rate - use this when you only need the funding rate number itself (decimal and percentage), not mark_price/index_price/open_interest_usd. Same Bybit-primary/Binance-fallback data, same `symbol` input - see funding-rate for the fuller response and the predicted_rate caveat (neither exchange exposes a separate forecast field). Input: required `symbol` query parameter (e.g. BTC, ETH, or BTCUSDT).","operationId":"funding_rate_value_endpoint_v1_derivatives_funding_rate_value_get","parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","description":"e.g. BTC, ETH, or BTCUSDT","title":"Symbol"},"description":"e.g. BTC, ETH, or BTCUSDT"}],"responses":{"200":{"description":"Funding rate number only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingRateValueResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Bybit/Binance) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/market/oracle-gap":{"get":{"tags":["market"],"summary":"Hyperliquid perpetual mid price's gap from its oracle/mark price (bp)","description":"Use this when checking whether a protocol that prices off Hyperliquid's raw mid (instead of mark/oracle) is currently exposed to a mid-price swing - the exact failure mode behind the 2026-10-10 Papertrade incident on HyperEVM (a wallet moved ETH on Hyperliquid itself to swing the mid, netting roughly $1.28M from a DEX that used that mid as its reference price). Returns mid_price/mark_price/oracle_price plus mid_oracle_gap_bp and mark_oracle_gap_bp (pure (a-oracle)/oracle*10000 calculations), and an elevated boolean that is true when abs(mid_oracle_gap_bp) >= alert_threshold_bp (default 15bp, configurable via ORACLE_GAP_ALERT_THRESHOLD_BP - tuned from a 2026-10-13 quiet-market measurement where a 5bp threshold fired on 40-72% of samples). elevated is a fixed-threshold flag, not a manipulation determination - read the notice field. This is a single snapshot with no trade-flow/volume analysis (Hyperliquid's public API does not expose per-market volume). Input: required `coin` query parameter (Hyperliquid perpetual ticker, e.g. ETH or BTC).","operationId":"oracle_gap_endpoint_v1_market_oracle_gap_get","parameters":[{"name":"coin","in":"query","required":true,"schema":{"type":"string","description":"Hyperliquid perpetual ticker, e.g. ETH or BTC","title":"Coin"},"description":"Hyperliquid perpetual ticker, e.g. ETH or BTC"}],"responses":{"200":{"description":"Mid/mark/oracle price gap for one Hyperliquid perpetual","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OracleGapResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Hyperliquid) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/market/oracle-gap-bp":{"get":{"tags":["market"],"summary":"Cheapest-tier: just the mid/mark-vs-oracle bp gap (no absolute prices)","description":"Thin, cheapest-tier wrapper around market.oracle-gap - use this when you only need mid_oracle_gap_bp/mark_oracle_gap_bp and the elevated flag, not the absolute mid/mark/oracle prices. Same Hyperliquid data, same `coin` input - see oracle-gap for the fuller response and why elevated is a fixed-threshold flag, not a manipulation determination. Input: required `coin` query parameter (Hyperliquid perpetual ticker, e.g. ETH or BTC).","operationId":"oracle_gap_bp_endpoint_v1_market_oracle_gap_bp_get","parameters":[{"name":"coin","in":"query","required":true,"schema":{"type":"string","description":"Hyperliquid perpetual ticker, e.g. ETH or BTC","title":"Coin"},"description":"Hyperliquid perpetual ticker, e.g. ETH or BTC"}],"responses":{"200":{"description":"Mid/mark vs oracle bp gap only","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OracleGapBpResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Hyperliquid) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/derivatives/funding-apr-matrix":{"get":{"tags":["market"],"summary":"Annualize a perpetual funding rate into APR + carry-trade breakeven days","description":"Use this endpoint to evaluate a spot+perpetual carry trade (cash-and-carry): it takes the current funding rate (same data as funding-rate) and annualizes it into an APR, tells you which side (SHORT or LONG perp) currently collects funding, and computes how many days of that funding income it takes to recoup an assumed round-trip trading cost. This is a pure calculation layer on top of funding-rate - no extra upstream API call. Input: required `symbol` (e.g. BTC, ETH, or BTCUSDT) and optional `assumed_round_trip_cost_pct` (default 0.2 - the combined entry+exit trading fee percentage across both the spot and perpetual legs; pass your own actual fee tier for an accurate breakeven_days). Does not account for margin borrow cost, spot-perp basis risk, or perp liquidation risk.","operationId":"funding_apr_matrix_endpoint_v1_derivatives_funding_apr_matrix_get","parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","description":"e.g. BTC, ETH, or BTCUSDT","title":"Symbol"},"description":"e.g. BTC, ETH, or BTCUSDT"},{"name":"assumed_round_trip_cost_pct","in":"query","required":false,"schema":{"type":"number","description":"Combined entry+exit trading fee % across both legs, used for breakeven_days","default":0.2,"title":"Assumed Round Trip Cost Pct"},"description":"Combined entry+exit trading fee % across both legs, used for breakeven_days"}],"responses":{"200":{"description":"Annualized funding APR and carry-trade breakeven days","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingAprMatrixResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Bybit/Binance) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/dex/liquidity-slippage":{"get":{"tags":["market"],"summary":"Estimate DEX pool liquidity and trade slippage (GeckoTerminal)","description":"Use this endpoint when you need to size a trade or check whether a DEX pool has enough depth before swapping - call it before executing a swap to estimate price impact, or when comparing pools for a given token. Returns the pool's total USD liquidity, 24h volume, an ESTIMATED slippage percentage for the given trade size, and a slippage_tiers array with the same estimate at fixed $1,000/$5,000/$10,000 sizes (independent of trade_size_usd) so an agent can gauge depth at a glance. Computed under a documented approximation (see notice) since GeckoTerminal's free API only exposes combined USD liquidity, not per-token reserve amounts. Input: `network` (e.g. base, eth - default base), `trade_size_usd` (required), and either `pool_address` (a specific pool) or `token_address` (the most liquid pool for that token is selected automatically) - one of the two is required. Do not treat estimated_slippage_pct or slippage_tiers as an exact on-chain quote - always re-verify with a live quote before executing, especially for concentrated-liquidity or stableswap pools. When called with `token_address`, also returns `direct_stablecoin_pool_exists` (whether ANY pool for this token - not just the selected one - is quoted directly against a USD stablecoin) and, when the selected pool isn't USD-quoted, `alternate_direct_pool` (a different pool for the same token that is), so a multi-hop route is never assumed without checking first.","operationId":"dex_liquidity_slippage_endpoint_v1_dex_liquidity_slippage_get","parameters":[{"name":"trade_size_usd","in":"query","required":true,"schema":{"type":"number","description":"Hypothetical trade size in USD","title":"Trade Size Usd"},"description":"Hypothetical trade size in USD"},{"name":"network","in":"query","required":false,"schema":{"type":"string","description":"GeckoTerminal network id, e.g. base, eth","default":"base","title":"Network"},"description":"GeckoTerminal network id, e.g. base, eth"},{"name":"pool_address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Specific pool contract address","title":"Pool Address"},"description":"Specific pool contract address"},{"name":"token_address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Token contract address (picks the most liquid pool automatically)","title":"Token Address"},"description":"Token contract address (picks the most liquid pool automatically)"}],"responses":{"200":{"description":"DEX liquidity/slippage estimate data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DexSlippageResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (GeckoTerminal) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/arb/spread-matrix":{"get":{"tags":["market"],"summary":"CEX-DEX arbitrage spread calculator","description":"Use this endpoint before executing a cross-venue arbitrage trade to check whether a global reference price (Coinbase spot, CoinGecko fallback - NOT a specific exchange orderbook) and a DEX pool price (GeckoTerminal) diverge enough to be worth trading after an assumed flat gas cost. Returns gross/net spread percentages, a direction flag, and an is_profitable boolean against your min_spread_threshold_pct. Input: `symbol` (required), `network` (default base), `trade_size_usd` (default 1000), `min_spread_threshold_pct` (default 0.8), and either `pool_address` or `token_address` (most liquid pool auto-selected) - one of the two is required. net_spread_pct does NOT subtract the DEX pool's own swap fee (see `pool_fee_pct`, typically 0.05-1%), CEX trading fees, CEX deposit/withdrawal availability, or slippage beyond trade_size_usd - a spread that clears the threshold before those costs may not clear it after, so always re-verify with live quotes before executing.","operationId":"arb_spread_matrix_endpoint_v1_arb_spread_matrix_get","parameters":[{"name":"symbol","in":"query","required":true,"schema":{"type":"string","description":"Ticker symbol, e.g. SUI, BTC, ETH","title":"Symbol"},"description":"Ticker symbol, e.g. SUI, BTC, ETH"},{"name":"network","in":"query","required":false,"schema":{"type":"string","description":"GeckoTerminal network id, e.g. base, eth","default":"base","title":"Network"},"description":"GeckoTerminal network id, e.g. base, eth"},{"name":"trade_size_usd","in":"query","required":false,"schema":{"type":"number","description":"Hypothetical trade size in USD","default":1000.0,"title":"Trade Size Usd"},"description":"Hypothetical trade size in USD"},{"name":"min_spread_threshold_pct","in":"query","required":false,"schema":{"type":"number","description":"Net spread threshold (%) above which is_profitable is true","default":0.8,"title":"Min Spread Threshold Pct"},"description":"Net spread threshold (%) above which is_profitable is true"},{"name":"pool_address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Specific DEX pool contract address","title":"Pool Address"},"description":"Specific DEX pool contract address"},{"name":"token_address","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Token contract address (picks the most liquid pool automatically)","title":"Token Address"},"description":"Token contract address (picks the most liquid pool automatically)"}],"responses":{"200":{"description":"Arbitrage spread calculation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArbSpreadResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Coinbase/CoinGecko/GeckoTerminal) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/calendar/macro-dday":{"get":{"tags":["market"],"summary":"Countdown to the nearest major US macro event (FOMC/CPI/NFP)","description":"Use this endpoint when you need to know how much time is left before the next market-moving US macro release - a Fed interest rate decision (FOMC), CPI inflation report, or nonfarm payrolls (NFP) release - to plan position sizing or avoid holding risk into a high-impact print. Returns the nearest event's name, exact date/time (UTC and KST), a D-Day countdown, exact time remaining (days/hours/minutes), an impact level, and the next few upcoming events for context. Data is a static, pre-loaded 2026 calendar sourced from official Federal Reserve and BLS release schedules - no live external API call is made, so this endpoint is fast and never fails on an upstream outage. No input parameters required.","operationId":"macro_dday_endpoint_v1_calendar_macro_dday_get","responses":{"200":{"description":"Macro event D-Day calendar data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MacroDdayResponse"}}}},"402":{"description":"x402 payment required"},"500":{"description":"Internal processing error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/prediction/neg-risk-arbitrage":{"get":{"tags":["market"],"summary":"Detect basket arbitrage in a Polymarket neg-risk multi-outcome event","description":"Use this endpoint to scan a specific Polymarket neg-risk (mutually-exclusive, multi-outcome) event for a risk-free or near risk-free basket arbitrage: since owning exactly 1 YES share of every outcome always settles to exactly $1, a basket price away from $1 is an edge - after subtracting assumed_round_trip_cost_pct (gas + fees + slippage buffer). Also computes buy/sell_basket_capacity_shares, the actual liquidity-bottleneck size the thinnest outcome's order book can support within max_slippage_pct, so arbitrage_viable reflects what's really executable, not just a top-of-book mirage - though `*_capacity_notional_usd` still prices that size at top-of-book (optimistic beyond the first price level); use `*_capacity_vwap_notional_usd` for the realistic average fill cost. Also returns `oldest_book_snapshot_time`, the staleness bottleneck across all legs (the oldest of each leg's own order-book snapshot timestamp). Input: required `event_slug` (from the event's URL on polymarket.com) and optional `assumed_round_trip_cost_pct` (default 1.5), `max_slippage_pct` (default 1.0), `min_net_edge_pct` (default 1.0). Polymarket only - Kalshi's Data ToS explicitly forbids this kind of commercial reuse of their data, so it is never used here. Pair with exit-capacity-audit on an individual leg before sizing a real position.","operationId":"neg_risk_arbitrage_endpoint_v1_prediction_neg_risk_arbitrage_get","parameters":[{"name":"event_slug","in":"query","required":true,"schema":{"type":"string","description":"Polymarket event slug, from the event's URL on polymarket.com","title":"Event Slug"},"description":"Polymarket event slug, from the event's URL on polymarket.com"},{"name":"assumed_round_trip_cost_pct","in":"query","required":false,"schema":{"type":"number","description":"Gas + fees + slippage buffer, as a percentage of $1 basket notional","default":1.5,"title":"Assumed Round Trip Cost Pct"},"description":"Gas + fees + slippage buffer, as a percentage of $1 basket notional"},{"name":"max_slippage_pct","in":"query","required":false,"schema":{"type":"number","description":"How far past each leg's best price to walk the book when sizing basket capacity","default":1.0,"title":"Max Slippage Pct"},"description":"How far past each leg's best price to walk the book when sizing basket capacity"},{"name":"min_net_edge_pct","in":"query","required":false,"schema":{"type":"number","description":"Minimum net edge (% of $1 basket notional) required to flag arbitrage_viable: true","default":1.0,"title":"Min Net Edge Pct"},"description":"Minimum net edge (% of $1 basket notional) required to flag arbitrage_viable: true"}],"responses":{"200":{"description":"Neg-risk basket arbitrage result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionNegRiskArbitrageResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/exit-capacity-audit":{"get":{"tags":["market"],"summary":"Audit real executable liquidity for a Polymarket outcome position","description":"Use this endpoint to check whether a given position size in a specific Polymarket outcome can actually be filled right now - walks the live order book and returns whether it's fully executable, the average fill price, and the price impact versus the best quote. This is a live, point-in-time snapshot, not historical/average liquidity. Also returns `book_snapshot_time` (the book's own reported snapshot timestamp) and Polymarket's own `tick_size`/`min_order_size` for this market (null if the book response didn't include them). Input: required `position_size_shares`, and either `token_id` (if already known) or `market_slug` (+ optional `outcome`, default 'yes') to resolve it automatically - only an exact Polymarket market slug is supported, this endpoint does not do fuzzy keyword search since a wrong silent match would be worse than an error. Optional `side` ('sell' default, or 'buy'). Pair this with neg-risk-arbitrage to validate one leg of a detected opportunity before sizing it.","operationId":"exit_capacity_audit_endpoint_v1_prediction_exit_capacity_audit_get","parameters":[{"name":"position_size_shares","in":"query","required":true,"schema":{"type":"number","description":"Number of outcome shares to sell (or buy). Must be positive.","title":"Position Size Shares"},"description":"Number of outcome shares to sell (or buy). Must be positive."},{"name":"token_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The outcome's CLOB token_id / asset_id, if already known","title":"Token Id"},"description":"The outcome's CLOB token_id / asset_id, if already known"},{"name":"market_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact Polymarket market slug, used to resolve token_id automatically","title":"Market Slug"},"description":"Exact Polymarket market slug, used to resolve token_id automatically"},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","description":"'yes' (default) or 'no' - which side to resolve when using market_slug","default":"yes","title":"Outcome"},"description":"'yes' (default) or 'no' - which side to resolve when using market_slug"},{"name":"side","in":"query","required":false,"schema":{"type":"string","description":"'sell' (default) or 'buy'","default":"sell","title":"Side"},"description":"'sell' (default) or 'buy'"}],"responses":{"200":{"description":"Executable liquidity audit result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionExitCapacityAuditResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/order-split-guide":{"get":{"tags":["market"],"summary":"How many clips to split a large Polymarket position into","description":"Use this endpoint to walk a Polymarket outcome's live order book and recommend how many clips to split a large position into, so each clip's own price impact stays at or under `max_price_impact_pct_per_slice` (default 1.0%). Also returns `full_size_price_impact_pct` - the impact if the whole position were filled in one shot right now, as a baseline for why splitting helps. This is a single-snapshot calculation: it has no idea whether the book refills between clips in real trading, so treat `max_single_clip_shares` and `recommended_slice_count` as 'if you replayed this exact snapshot repeatedly', not a guarantee about live execution. Input: required `position_size_shares`, and either `token_id` (if already known) or `market_slug` (+ optional `outcome`, default 'yes') to resolve it automatically. Optional `side` ('sell' default, or 'buy') and `max_price_impact_pct_per_slice` (default 1.0).","operationId":"order_split_guide_endpoint_v1_prediction_order_split_guide_get","parameters":[{"name":"position_size_shares","in":"query","required":true,"schema":{"type":"number","description":"Total number of outcome shares to sell (or buy). Must be positive.","title":"Position Size Shares"},"description":"Total number of outcome shares to sell (or buy). Must be positive."},{"name":"token_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The outcome's CLOB token_id / asset_id, if already known","title":"Token Id"},"description":"The outcome's CLOB token_id / asset_id, if already known"},{"name":"market_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact Polymarket market slug, used to resolve token_id automatically","title":"Market Slug"},"description":"Exact Polymarket market slug, used to resolve token_id automatically"},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","description":"'yes' (default) or 'no' - which side to resolve when using market_slug","default":"yes","title":"Outcome"},"description":"'yes' (default) or 'no' - which side to resolve when using market_slug"},{"name":"side","in":"query","required":false,"schema":{"type":"string","description":"'sell' (default) or 'buy'","default":"sell","title":"Side"},"description":"'sell' (default) or 'buy'"},{"name":"max_price_impact_pct_per_slice","in":"query","required":false,"schema":{"type":"number","description":"Target ceiling on each clip's own price impact, in percent.","default":1.0,"title":"Max Price Impact Pct Per Slice"},"description":"Target ceiling on each clip's own price impact, in percent."}],"responses":{"200":{"description":"Order-splitting guide result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionOrderSplitGuideResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/bid-ask-spread-pct":{"get":{"tags":["market"],"summary":"Live top-of-book bid/ask spread for a Polymarket outcome, cheap tier","description":"Cheap tier - use this endpoint for a single Polymarket outcome's live top-of-book bid/ask spread as a percentage of mid_price. Not a liquidity or executability measure (use exit-capacity-audit/order-split-guide for that). Input: either `token_id` (if already known) or `market_slug` (+ optional `outcome`, default 'yes') to resolve it automatically.","operationId":"bid_ask_spread_pct_endpoint_v1_prediction_bid_ask_spread_pct_get","parameters":[{"name":"token_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The outcome's CLOB token_id / asset_id, if already known","title":"Token Id"},"description":"The outcome's CLOB token_id / asset_id, if already known"},{"name":"market_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact Polymarket market slug, used to resolve token_id automatically","title":"Market Slug"},"description":"Exact Polymarket market slug, used to resolve token_id automatically"},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","description":"'yes' (default) or 'no' - which side to resolve when using market_slug","default":"yes","title":"Outcome"},"description":"'yes' (default) or 'no' - which side to resolve when using market_slug"}],"responses":{"200":{"description":"Bid/ask spread result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionBidAskSpreadPctResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/orderbook-imbalance-ratio":{"get":{"tags":["market"],"summary":"Bid-side vs ask-side order-book depth ratio for a Polymarket outcome","description":"Use this endpoint for a single Polymarket outcome's bid-side vs ask-side order-book depth ratio, summed within `depth_band_pct` (default 5.0%) of each side's own best quote. 0.5 = balanced, closer to 1.0 = bid-side depth dominant, closer to 0.0 = ask-side dominant. A descriptive statistic only - not a prediction of price direction, no confidence or verdict field. Input: either `token_id` (if already known) or `market_slug` (+ optional `outcome`, default 'yes') to resolve it automatically. Optional `depth_band_pct` (default 5.0).","operationId":"orderbook_imbalance_ratio_endpoint_v1_prediction_orderbook_imbalance_ratio_get","parameters":[{"name":"token_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The outcome's CLOB token_id / asset_id, if already known","title":"Token Id"},"description":"The outcome's CLOB token_id / asset_id, if already known"},{"name":"market_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact Polymarket market slug, used to resolve token_id automatically","title":"Market Slug"},"description":"Exact Polymarket market slug, used to resolve token_id automatically"},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","description":"'yes' (default) or 'no' - which side to resolve when using market_slug","default":"yes","title":"Outcome"},"description":"'yes' (default) or 'no' - which side to resolve when using market_slug"},{"name":"depth_band_pct","in":"query","required":false,"schema":{"type":"number","description":"How far into the book, as a percent of each side's own best quote, to sum depth.","default":5.0,"title":"Depth Band Pct"},"description":"How far into the book, as a percent of each side's own best quote, to sum depth."}],"responses":{"200":{"description":"Orderbook imbalance ratio result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionOrderbookImbalanceRatioResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/liquidity-depth-after-haircut":{"get":{"tags":["market"],"summary":"Executable Polymarket depth before/after a top-of-book cancellation haircut","description":"Use this endpoint for a single Polymarket outcome's executable depth within `max_price_impact_pct` (default 5.0%) of the best quote, both before and after discounting the top-of-book level's size by `haircut_pct` (default 10.0%) to model the risk that the very best resting order gets cancelled before you can trade against it. Does not detect or flag actual spoofing (out of scope). Input: either `token_id` (if already known) or `market_slug` (+ optional `outcome`, default 'yes') to resolve it automatically. Optional `side` ('sell' default, or 'buy'), `haircut_pct` (default 10.0), `max_price_impact_pct` (default 5.0).","operationId":"liquidity_depth_after_haircut_endpoint_v1_prediction_liquidity_depth_after_haircut_get","parameters":[{"name":"token_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The outcome's CLOB token_id / asset_id, if already known","title":"Token Id"},"description":"The outcome's CLOB token_id / asset_id, if already known"},{"name":"market_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact Polymarket market slug, used to resolve token_id automatically","title":"Market Slug"},"description":"Exact Polymarket market slug, used to resolve token_id automatically"},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","description":"'yes' (default) or 'no' - which side to resolve when using market_slug","default":"yes","title":"Outcome"},"description":"'yes' (default) or 'no' - which side to resolve when using market_slug"},{"name":"side","in":"query","required":false,"schema":{"type":"string","description":"'sell' (default) or 'buy'","default":"sell","title":"Side"},"description":"'sell' (default) or 'buy'"},{"name":"haircut_pct","in":"query","required":false,"schema":{"type":"number","description":"Percent to discount the top-of-book level's size by, modeling cancellation risk.","default":10.0,"title":"Haircut Pct"},"description":"Percent to discount the top-of-book level's size by, modeling cancellation risk."},{"name":"max_price_impact_pct","in":"query","required":false,"schema":{"type":"number","description":"Price-impact bound (percent of best quote) within which depth is summed.","default":5.0,"title":"Max Price Impact Pct"},"description":"Price-impact bound (percent of best quote) within which depth is summed."}],"responses":{"200":{"description":"Liquidity depth before/after haircut result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionLiquidityDepthAfterHaircutResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/polymarket-fee-estimate":{"get":{"tags":["market"],"summary":"Polymarket's own taker fee for a hypothetical fill","description":"Use this endpoint to estimate Polymarket's own taker fee (NOT including gas, slippage, or AlphaPipeline's own charge for this call) for a hypothetical fill of `shares` at `price`, using the official bell-curve formula `shares * fee_rate * price * (1 - price)`. `fee_rate` is read live from Polymarket's own `GET /fee-rate` for the exact `token_id` - never a hardcoded category table, since per-category rates have changed before (see response `notice`). Makers pay 0 across every category; this is the taker fee only. Omit `price` to use the live best book quote for `side`. Input: either `token_id` (if already known) or `market_slug` (+ optional `outcome`, default 'yes') to resolve it automatically.","operationId":"polymarket_fee_estimate_endpoint_v1_prediction_polymarket_fee_estimate_get","parameters":[{"name":"shares","in":"query","required":true,"schema":{"type":"number","description":"Hypothetical fill size, in shares. Must be > 0.","title":"Shares"},"description":"Hypothetical fill size, in shares. Must be > 0."},{"name":"token_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The outcome's CLOB token_id / asset_id, if already known","title":"Token Id"},"description":"The outcome's CLOB token_id / asset_id, if already known"},{"name":"market_slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Exact Polymarket market slug, used to resolve token_id automatically","title":"Market Slug"},"description":"Exact Polymarket market slug, used to resolve token_id automatically"},{"name":"outcome","in":"query","required":false,"schema":{"type":"string","description":"'yes' (default) or 'no' - which side to resolve when using market_slug","default":"yes","title":"Outcome"},"description":"'yes' (default) or 'no' - which side to resolve when using market_slug"},{"name":"side","in":"query","required":false,"schema":{"type":"string","description":"'sell' (default) or 'buy' - which side of the book to read price from when price is omitted","default":"sell","title":"Side"},"description":"'sell' (default) or 'buy' - which side of the book to read price from when price is omitted"},{"name":"price","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Hypothetical fill price (0-1 exclusive). Omit to use the live best book quote for `side`.","title":"Price"},"description":"Hypothetical fill price (0-1 exclusive). Omit to use the live best book quote for `side`."}],"responses":{"200":{"description":"Polymarket taker fee estimate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionPolymarketFeeEstimateResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/polymarket-mispricing":{"get":{"tags":["market"],"summary":"Monotonicity violations across caller-asserted-equivalent Polymarket markets","description":"Use this endpoint to find monotonicity violations (higher strike priced above a lower strike) across a set of Polymarket markets that YOU have already confirmed share the same underlying asset and expiry/resolution date. This endpoint does NOT verify or infer that equivalence itself - Polymarket's API has no reliable field for it (see response `notice`); passing unrelated markets produces a meaningless or false arbitrage signal. Input: `strikes` (>=2) plus either `token_ids` or `market_slugs` (+ optional `outcomes`, default all 'yes'), same length and order as `strikes`. Not investment advice.","operationId":"polymarket_mispricing_endpoint_v1_prediction_polymarket_mispricing_get","parameters":[{"name":"strikes","in":"query","required":true,"schema":{"type":"array","items":{"type":"number"},"description":"Strike for each rung, same order as token_ids/market_slugs. At least 2 required.","title":"Strikes"},"description":"Strike for each rung, same order as token_ids/market_slugs. At least 2 required."},{"name":"token_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"CLOB token_id per rung, if already known. Mutually exclusive with market_slugs.","title":"Token Ids"},"description":"CLOB token_id per rung, if already known. Mutually exclusive with market_slugs."},{"name":"market_slugs","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Polymarket market slug per rung, used to resolve token_ids automatically.","title":"Market Slugs"},"description":"Polymarket market slug per rung, used to resolve token_ids automatically."},{"name":"outcomes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"'yes'/'no' per rung when using market_slugs (default: all 'yes').","title":"Outcomes"},"description":"'yes'/'no' per rung when using market_slugs (default: all 'yes')."}],"responses":{"200":{"description":"Polymarket monotonicity-violation report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionPolymarketMispricingResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Polymarket) error or input error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/hip4-snapshot":{"get":{"tags":["market"],"summary":"Real-time probability snapshot of Hyperliquid HIP-4 outcome markets","description":"Use this endpoint to pull a live snapshot of Hyperliquid's HIP-4 outcome (prediction) markets - crypto price binaries, sports game winners, tournament winners, Fed rate decisions, and any other market type Hyperliquid adds, all in one call. There is no curated market list: every field under `fields` on each row is parsed verbatim from Hyperliquid's own 'key:value|key2:value2' description string, so new HIP-4 market types appear automatically without any change on our side. Standalone two-sided markets (most crypto/sports games) are returned under `standalone_markets`; mutually-exclusive multi-outcome groups (e.g. a league winner, a rate-decision) are returned under `grouped_questions` with each named possibility's price plus a `fallback` for 'none of the above'. Input: optional `template` (substring filter on the market type, e.g. 'sportsContestWinner'), `underlying` (asset symbol filter for crypto markets, e.g. 'BTC'), and `limit` (default 100, max 500, applied separately to each list). No wallet or API key needed upstream. Read the response `notice` field - the mapping used to join Hyperliquid's market metadata to its live prices is not documented by Hyperliquid and was reverse-engineered from live data.","operationId":"hip4_snapshot_endpoint_v1_prediction_hip4_snapshot_get","parameters":[{"name":"template","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional substring filter on the market's template name (e.g. 'sportsContestWinner', 'priceBinary').","title":"Template"},"description":"Optional substring filter on the market's template name (e.g. 'sportsContestWinner', 'priceBinary')."},{"name":"underlying","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional asset symbol filter for crypto markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE').","title":"Underlying"},"description":"Optional asset symbol filter for crypto markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE')."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max rows per list (standalone_markets / grouped_questions each). Max 500.","default":100,"title":"Limit"},"description":"Max rows per list (standalone_markets / grouped_questions each). Max 500."}],"responses":{"200":{"description":"HIP-4 outcome market snapshot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionHip4SnapshotResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Hyperliquid) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/hip4-price-ladder":{"get":{"tags":["market"],"summary":"HIP-4 'price above $X' markets as a strike-sorted ladder","description":"Use this endpoint to see a single underlying's Hyperliquid HIP-4 price-binary markets (e.g. 'BTC above $X by <date>') laid out as a ladder sorted by strike, each with its live Yes probability. Reuses the same cached data as hip4-snapshot - no new upstream call. Input: required `underlying` (asset symbol, e.g. 'BTC', 'ETH', 'SOL', 'HYPE') and optional `limit` (default 100, max 500). Hyperliquid's public API does not expose per-outcome trading volume for HIP-4 markets, so rungs have no volume field - do not assume liquidity depth from a rung's presence. Read the response `notice` field for the same reverse-engineered-mapping caveat as hip4-snapshot.","operationId":"hip4_price_ladder_endpoint_v1_prediction_hip4_price_ladder_get","parameters":[{"name":"underlying","in":"query","required":true,"schema":{"type":"string","description":"Asset symbol for crypto price-binary markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE').","title":"Underlying"},"description":"Asset symbol for crypto price-binary markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE')."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","description":"Max rungs returned. Max 500.","default":100,"title":"Limit"},"description":"Max rungs returned. Max 500."}],"responses":{"200":{"description":"HIP-4 price ladder for one underlying","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionHip4PriceLadderResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Hyperliquid) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/hip4-price":{"get":{"tags":["market"],"summary":"Cheapest-tier: a single HIP-4 strike's Yes probability (no full ladder)","description":"Thin, cheapest-tier wrapper around hip4-price-ladder - use this when you only need one strike's Yes probability, not the full ladder. Returns the single rung closest to the requested `strike` - check `matched_strike` against your requested value before relying on `yes_price`; a large gap means no rung exists near your target (use hip4-price-ladder to see what's actually available). Input: required `underlying` (e.g. 'BTC', 'ETH', 'SOL', 'HYPE') and `strike` (target price).","operationId":"hip4_price_endpoint_v1_prediction_hip4_price_get","parameters":[{"name":"underlying","in":"query","required":true,"schema":{"type":"string","description":"Asset symbol for crypto price-binary markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE').","title":"Underlying"},"description":"Asset symbol for crypto price-binary markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE')."},{"name":"strike","in":"query","required":true,"schema":{"type":"number","description":"Target price to look up - the closest available rung is returned.","title":"Strike"},"description":"Target price to look up - the closest available rung is returned."}],"responses":{"200":{"description":"Single HIP-4 rung's Yes probability","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hip4PriceResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Hyperliquid) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/hip4-mispricing":{"get":{"tags":["market"],"summary":"Monotonicity violations across HIP-4 'above $X' price-binary markets","description":"Use this endpoint to find logical inconsistencies among a single underlying's Hyperliquid HIP-4 'above $X' price-binary markets: within the same expiry/period, a higher strike's Yes price should never exceed a lower strike's. Any reversal is quantified as `violation_bp` and a textbook `max_riskless_profit_per_usd` (the violation size itself, before fees/slippage/execution risk - not investment advice). Reuses hip4-price-ladder's cached data - no new upstream call. Only rungs sharing the exact same (expiry, period) are ever compared - see the response's `settlement_condition_note`. Input: required `underlying` (e.g. 'BTC', 'ETH', 'SOL', 'HYPE').","operationId":"hip4_mispricing_endpoint_v1_prediction_hip4_mispricing_get","parameters":[{"name":"underlying","in":"query","required":true,"schema":{"type":"string","description":"Asset symbol for crypto price-binary markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE').","title":"Underlying"},"description":"Asset symbol for crypto price-binary markets (e.g. 'BTC', 'ETH', 'SOL', 'HYPE')."}],"responses":{"200":{"description":"HIP-4 monotonicity-violation report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PredictionHip4MispricingResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (Hyperliquid) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/market/cycle-compare":{"get":{"tags":["market"],"summary":"BTC/ETH price performance vs. prior post-halving cycles, plus macro context","description":"Use this endpoint to see how far BTC/ETH price performance since the current halving (2024-04-20) compares to the same point in the 2016 and 2020 post-halving cycles, plus today's real BTC dominance and macro context (DXY, US 10Y yield). Reads from a daily-refreshed cache (no live upstream call at request time). Note: this compares raw price return, not true market-cap dominance history - free dominance-history data does not exist, so 2016-cycle dominance comparison is not included (see response `notice` field). ETH has no 2016-cycle figures since ETH did not exist yet.","operationId":"cycle_compare_endpoint_v1_market_cycle_compare_get","responses":{"200":{"description":"BTC/ETH cycle-relative price comparison","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CycleCompareResponse"}}}},"402":{"description":"x402 payment required"},"502":{"description":"Upstream (cache read) error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v1/prediction/hip4-alerts/event-types":{"get":{"tags":["market"],"summary":"[EXPERIMENTAL] List supported HIP-4 webhook event types (free)","description":"Free catalog endpoint - lists the event types GET hip4-alerts/subscribe accepts, the poll interval, default jump threshold, and subscription TTL. No payment required. Read this before calling subscribe.","operationId":"hip4_alerts_event_types_endpoint_v1_prediction_hip4_alerts_event_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/prediction/hip4-alerts/subscribe":{"get":{"tags":["market"],"summary":"[EXPERIMENTAL] Subscribe to HIP-4 probability-jump webhook alerts","description":"Register a webhook to receive Standard Webhooks-signed POST notifications (webhook-id / webhook-timestamp / webhook-signature headers, HMAC-SHA256 over 'id.timestamp.body') when a HIP-4 outcome's probability jumps by at least the configured threshold, or a new HIP-4 market appears. This is polling under the hood (every HIP4_EVENTS_POLL_INTERVAL_SECONDS, default 300s) against Hyperliquid's free info API, not a true real-time push from upstream - see the notice field in the response. EXPERIMENTAL: modeled loosely on a draft MCP Events spec (github.com/modelcontextprotocol/experimental-ext-triggers-events) that has not stabilized - the request/response shape may change. Subscriptions are not guaranteed to survive a server restart. Requires HIP4_EVENTS_ENABLED=true on the server or deliveries never fire even after a successful subscribe. Paid in USDC on Base. NOTE: this is GET with query parameters (not POST with a JSON body) - see the 'secret' parameter's own description for the resulting security trade-off.","operationId":"hip4_alerts_subscribe_endpoint_v1_prediction_hip4_alerts_subscribe_get","parameters":[{"name":"webhook_url","in":"query","required":true,"schema":{"type":"string","description":"https:// URL to receive Standard Webhooks-signed POST requests. Private/loopback IPs are rejected.","title":"Webhook Url"},"description":"https:// URL to receive Standard Webhooks-signed POST requests. Private/loopback IPs are rejected."},{"name":"secret","in":"query","required":true,"schema":{"type":"string","minLength":16,"description":"Shared secret you generate yourself (e.g. `openssl rand -base64 32`), used to HMAC-SHA256 sign each delivery. Never sent back to you - keep your own copy. SECURITY NOTE: because this endpoint is GET, this value travels in the URL query string and so is HTTPS-encrypted in transit but may be recorded in server/CDN access logs (ours and any intermediary's) the way any URL is. Treat it as a moderate-sensitivity value: rotate it if you suspect exposure, and do not reuse a secret you rely on elsewhere.","title":"Secret"},"description":"Shared secret you generate yourself (e.g. `openssl rand -base64 32`), used to HMAC-SHA256 sign each delivery. Never sent back to you - keep your own copy. SECURITY NOTE: because this endpoint is GET, this value travels in the URL query string and so is HTTPS-encrypted in transit but may be recorded in server/CDN access logs (ours and any intermediary's) the way any URL is. Treat it as a moderate-sensitivity value: rotate it if you suspect exposure, and do not reuse a secret you rely on elsewhere."},{"name":"event_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Subset of supported event types to receive (default: all). See GET /v1/prediction/hip4-alerts/event-types.","title":"Event Types"},"description":"Subset of supported event types to receive (default: all). See GET /v1/prediction/hip4-alerts/event-types."},{"name":"underlying","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional filter: only receive events for this crypto underlying (e.g. 'BTC').","title":"Underlying"},"description":"Optional filter: only receive events for this crypto underlying (e.g. 'BTC')."},{"name":"threshold_pct","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Optional per-subscription override of the prob_jump threshold (0.0-1.0 scale). Defaults to the server's HIP4_EVENTS_JUMP_THRESHOLD_PCT.","title":"Threshold Pct"},"description":"Optional per-subscription override of the prob_jump threshold (0.0-1.0 scale). Defaults to the server's HIP4_EVENTS_JUMP_THRESHOLD_PCT."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hip4AlertsSubscribeResponse"}}}},"400":{"description":"Invalid webhook_url, secret, or event_types","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"x402 payment required"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/hip4-alerts/unsubscribe":{"post":{"tags":["market"],"summary":"[EXPERIMENTAL] Cancel a HIP-4 webhook alert subscription (free)","description":"Free - cancelling your own subscription is not a paid action. Requires the exact secret supplied at subscribe time; a wrong or missing secret returns cancelled: false without revealing whether the subscription_id exists.","operationId":"hip4_alerts_unsubscribe_endpoint_v1_prediction_hip4_alerts_unsubscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hip4AlertsUnsubscribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Hip4AlertsUnsubscribeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/prediction/preview-slippage":{"get":{"tags":["market"],"summary":"Free, rate-limited preview of exit-capacity-audit on a fixed benchmark market","description":"No payment required. Runs exit-capacity-audit against a fixed benchmark market/position size (server-configured, not caller-supplied) so agents and developers can verify data quality before paying for the real endpoint. Rate-limited per IP. For arbitrary markets/sizes, use exit-capacity-audit.","operationId":"preview_slippage_endpoint_v1_prediction_preview_slippage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AlternateDirectPool":{"properties":{"pool_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Address","description":"The alternate pool's contract address."},"pool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Name"},"liquidity_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liquidity Usd"},"quote_token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Token Symbol"}},"type":"object","title":"AlternateDirectPool"},"ArbSpreadResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"symbol":{"type":"string","title":"Symbol"},"network":{"type":"string","title":"Network"},"pool_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Address"},"status_message":{"type":"string","title":"Status Message"},"is_profitable":{"type":"boolean","title":"Is Profitable"},"gross_spread_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gross Spread Pct"},"net_spread_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Net Spread Pct"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"cex_price_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cex Price Usd"},"dex_price_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dex Price Usd"},"trade_size_usd":{"type":"number","title":"Trade Size Usd"},"assumed_gas_cost_usd":{"type":"number","title":"Assumed Gas Cost Usd"},"pool_fee_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pool Fee Pct","description":"DEX pool's fee tier parsed from GeckoTerminal's pool name (e.g. 0.05 for a 0.05% pool). Informational only - net_spread_pct does NOT subtract it."},"min_spread_threshold_pct":{"type":"number","title":"Min Spread Threshold Pct"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","symbol","network","status_message","is_profitable","trade_size_usd","assumed_gas_cost_usd","min_spread_threshold_pct","data_source"],"title":"ArbSpreadResponse"},"ContractHealthAuditResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"chain_id":{"type":"integer","title":"Chain Id"},"contract_address":{"type":"string","title":"Contract Address"},"token_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Name"},"token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Symbol"},"lp_total_supply":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Total Supply"},"lp_holder_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lp Holder Count"},"lp_locked_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Locked Pct"},"lp_burned_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Burned Pct"},"top_unlocked_holder_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top Unlocked Holder Pct"},"top5_unlocked_holder_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top5 Unlocked Holder Pct","description":"Sum of the top 5 non-locked/non-burned LP holders' percentages (same lp_holders data, no extra upstream call) - catches concentration spread across several wallets that top_unlocked_holder_pct (single largest holder only) would miss."},"liquidity_health":{"type":"string","title":"Liquidity Health"},"risk_flags":{"items":{"type":"string"},"type":"array","title":"Risk Flags","default":[]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","chain_id","contract_address","liquidity_health","data_source"],"title":"ContractHealthAuditResponse"},"CycleCoinMetrics":{"properties":{"price_usd_today":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Usd Today"},"price_usd_on_current_halving":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Usd On Current Halving","description":"Price on the current cycle's halving date (2024-04-20)."},"return_since_halving_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Return Since Halving Pct","description":"% change from price_usd_on_current_halving to today."},"return_since_halving_pct_2016_cycle_same_day":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Return Since Halving Pct 2016 Cycle Same Day","description":"What the % return since halving was for the 2016 cycle, at the same days_since_halving offset. Null if price history doesn't reach back that far (see notice)."},"return_vs_2016_cycle_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Return Vs 2016 Cycle Pct","description":"return_since_halving_pct minus the 2016-cycle figure (percentage points)."},"return_since_halving_pct_2020_cycle_same_day":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Return Since Halving Pct 2020 Cycle Same Day","description":"Same as the 2016 field, but for the 2020 cycle."},"return_vs_2020_cycle_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Return Vs 2020 Cycle Pct","description":"return_since_halving_pct minus the 2020-cycle figure."},"data_ok":{"type":"boolean","title":"Data Ok"}},"type":"object","required":["data_ok"],"title":"CycleCoinMetrics"},"CycleCompareResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"cache_generated_at_utc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cache Generated At Utc","description":"When the underlying daily cache was last refreshed - prices can be up to ~24h stale."},"current_cycle_halving_date":{"type":"string","title":"Current Cycle Halving Date"},"days_since_halving":{"type":"integer","title":"Days Since Halving"},"btc":{"$ref":"#/components/schemas/CycleCoinMetrics"},"eth":{"$ref":"#/components/schemas/CycleCoinMetrics"},"btc_dominance_pct_today":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Btc Dominance Pct Today","description":"Real BTC market-cap dominance, TODAY only - no historical comparison (see notice)."},"dxy_level":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dxy Level"},"us10y_yield_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Us10Y Yield Pct"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","current_cycle_halving_date","days_since_halving","btc","eth","data_source"],"title":"CycleCompareResponse"},"DexSlippageResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"network":{"type":"string","title":"Network"},"pool_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Address"},"token_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Address"},"pool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Name"},"liquidity_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liquidity Usd"},"volume_24h_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume 24H Usd"},"trade_size_usd":{"type":"number","title":"Trade Size Usd"},"estimated_slippage_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Slippage Pct"},"price_impact_model":{"type":"string","title":"Price Impact Model"},"slippage_tiers":{"anyOf":[{"items":{"$ref":"#/components/schemas/SlippageTier"},"type":"array"},{"type":"null"}],"title":"Slippage Tiers","description":"Fixed $1,000/$5,000/$10,000 price-impact tiers computed from the same pool liquidity data, independent of the trade_size_usd query parameter - lets an agent gauge depth at a glance without multiple calls."},"quote_token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Token Symbol","description":"Parsed from GeckoTerminal's pool_name (e.g. 'USDC' from 'WETH / USDC 0.05%'). Null when the pool name doesn't match the expected 'BASE / QUOTE' format."},"quote_token_is_stablecoin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quote Token Is Stablecoin","description":"Whether quote_token_symbol is a known USD stablecoin (USDC/USDbC/USDT/DAI/etc.). If false or null, this pool does not quote directly against USD - converting the output to USD requires an additional hop/swap that this estimate does not account for. This endpoint always picks the single most-liquid pool for a token, which is not guaranteed to be USD-quoted."},"pool_fee_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Pool Fee Pct","description":"Swap fee tier of the selected pool (e.g. 0.05 for a 0.05% Uniswap v3 tier), parsed from pool_name. Disclosed for your own accounting only - NOT subtracted from estimated_slippage_pct or slippage_tiers."},"assumed_gas_cost_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Assumed Gas Cost Usd","description":"Flat per-swap gas cost estimate for this network (same table used by arb-spread-matrix), not a live on-chain gas quote."},"direct_stablecoin_pool_exists":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Direct Stablecoin Pool Exists","description":"Whether ANY pool for this token (not just the single most-liquid one selected above) is quoted directly against a USD stablecoin. Null when you passed pool_address directly instead of token_address - the full pool list for the token was never fetched, so this can't be checked."},"alternate_direct_pool":{"anyOf":[{"$ref":"#/components/schemas/AlternateDirectPool"},{"type":"null"}],"description":"Only populated when quote_token_is_stablecoin is false/null AND a stablecoin-quoted pool exists elsewhere for this token - gives that pool's address/name/liquidity so you can re-query this endpoint with that pool_address instead of assuming a multi-hop route is required."},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","network","trade_size_usd","price_impact_model","data_source"],"title":"DexSlippageResponse"},"DumpRiskResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window Days"},"supply_pct_threshold":{"type":"number","title":"Supply Pct Threshold"},"protocols_scanned":{"type":"integer","title":"Protocols Scanned"},"count":{"type":"integer","title":"Count"},"unlocks":{"items":{"$ref":"#/components/schemas/DumpRiskUnlockItem"},"type":"array","title":"Unlocks"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"},"data_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Source"},"coverage_notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Notice"}},"type":"object","required":["generated_at","supply_pct_threshold","protocols_scanned","count"],"title":"DumpRiskResponse"},"DumpRiskUnlockItem":{"properties":{"token":{"type":"string","title":"Token"},"onchain_contract":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Onchain Contract"},"unlock_date_utc":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unlock Date Utc"},"days_until_unlock":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Days Until Unlock"},"timing_precision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timing Precision"},"unlock_supply_pct":{"type":"number","title":"Unlock Supply Pct"},"unlock_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Unlock Amount"},"vesting_deposit_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vesting Deposit Amount","description":"On-chain-only field (Sablier's depositAmount, aggregated across streams). Total amount originally scheduled to vest. Null on the DropsTab path and when unavailable."},"vesting_withdrawn_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vesting Withdrawn Amount","description":"On-chain-only field (Sablier's withdrawnAmount, aggregated across streams). Amount already claimed/withdrawn so far. Null on the DropsTab path and when unavailable."},"vesting_progress_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vesting Progress Pct","description":"On-chain-only field: vesting_withdrawn_amount / vesting_deposit_amount * 100. Shows how far along the vesting schedule already is. Null on the DropsTab path and when deposit data wasn't available."},"is_insider_vc_team":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Insider Vc Team"},"category":{"type":"string","title":"Category"},"risk_level":{"type":"string","title":"Risk Level"},"volume_impact_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume Impact Pct"},"data_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Data Source"}},"type":"object","required":["token","unlock_supply_pct","category","risk_level"],"title":"DumpRiskUnlockItem","description":"Represents both data paths (DropsTab / on-chain Sablier) with a single model - that's\nwhy the DropsTab-only fields (unlock_date_utc, is_insider_vc_team, etc.) and the\non-chain-only fields (onchain_contract, timing_precision, data_source) are all\nOptional. The only fields always populated regardless of path are\ntoken/unlock_supply_pct/category/risk_level.\n(see _process_event / _refresh_unlock_cache_onchain in app/logic.py)"},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"message":{"type":"string","title":"Message"}},"type":"object","required":["error","message"],"title":"ErrorResponse"},"FundingAprMatrixResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"symbol":{"type":"string","title":"Symbol"},"funding_rate_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Funding Rate Percentage"},"funding_interval_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Funding Interval Hours"},"periods_per_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Periods Per Year"},"annualized_rate_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Annualized Rate Pct"},"funding_collector_side":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Funding Collector Side"},"daily_funding_income_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Daily Funding Income Pct"},"assumed_round_trip_cost_pct":{"type":"number","title":"Assumed Round Trip Cost Pct"},"breakeven_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Breakeven Days"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","symbol","assumed_round_trip_cost_pct","data_source"],"title":"FundingAprMatrixResponse"},"FundingRateResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"symbol":{"type":"string","title":"Symbol"},"funding_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Funding Rate"},"funding_rate_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Funding Rate Percentage"},"predicted_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Predicted Rate"},"next_funding_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"funding_interval_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Funding Interval Hours"},"mark_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mark Price","description":"Perpetual futures mark price at lookup time. Populated on both the Bybit and Binance paths."},"index_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Index Price","description":"Underlying spot index price feeding the perpetual's funding calculation. Populated on both the Bybit and Binance paths."},"open_interest_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Open Interest Usd","description":"Total open interest in USD notional. Only available via the Bybit path (Bybit's openInterestValue field) - always null on the Binance fallback, since Binance's premiumIndex endpoint does not report open interest."},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","symbol","data_source"],"title":"FundingRateResponse"},"FundingRateValueResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"symbol":{"type":"string","title":"Symbol"},"funding_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Funding Rate"},"funding_rate_percentage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Funding Rate Percentage"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","symbol","data_source"],"title":"FundingRateValueResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Hip4AlertsSubscribeResponse":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id"},"webhook_url":{"type":"string","title":"Webhook Url"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"underlying":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Underlying"},"threshold_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Threshold Pct"},"status":{"type":"string","title":"Status"},"created_at":{"type":"number","title":"Created At"},"expires_at":{"type":"number","title":"Expires At"},"notice":{"type":"string","title":"Notice"}},"type":"object","required":["subscription_id","webhook_url","event_types","status","created_at","expires_at","notice"],"title":"Hip4AlertsSubscribeResponse"},"Hip4AlertsUnsubscribeRequest":{"properties":{"subscription_id":{"type":"string","title":"Subscription Id"},"secret":{"type":"string","title":"Secret","description":"Must match the secret supplied at subscribe time."}},"type":"object","required":["subscription_id","secret"],"title":"Hip4AlertsUnsubscribeRequest"},"Hip4AlertsUnsubscribeResponse":{"properties":{"cancelled":{"type":"boolean","title":"Cancelled"}},"type":"object","required":["cancelled"],"title":"Hip4AlertsUnsubscribeResponse"},"Hip4Fallback":{"properties":{"outcome_id":{"type":"integer","title":"Outcome Id"},"label":{"type":"string","title":"Label","default":"none_of_the_above"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"}},"type":"object","required":["outcome_id"],"title":"Hip4Fallback"},"Hip4GroupedQuestion":{"properties":{"question_id":{"type":"integer","title":"Question Id"},"template":{"type":"string","title":"Template"},"fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Fields"},"fallback":{"anyOf":[{"$ref":"#/components/schemas/Hip4Fallback"},{"type":"null"}]},"outcomes":{"items":{"$ref":"#/components/schemas/Hip4NamedOutcome"},"type":"array","title":"Outcomes"}},"type":"object","required":["question_id","template","fields","outcomes"],"title":"Hip4GroupedQuestion"},"Hip4LadderRung":{"properties":{"outcome_id":{"type":"integer","title":"Outcome Id"},"strike":{"type":"number","title":"Strike","description":"The outcome's own targetPrice field, parsed as a number."},"expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"},"yes_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Yes Price","description":"Live mid-price for the 'Yes' side (0.0-1.0, an implied probability)."}},"type":"object","required":["outcome_id","strike"],"title":"Hip4LadderRung"},"Hip4MispricingViolation":{"properties":{"expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period"},"lower_strike":{"type":"number","title":"Lower Strike"},"lower_strike_yes_price":{"type":"number","title":"Lower Strike Yes Price"},"higher_strike":{"type":"number","title":"Higher Strike"},"higher_strike_yes_price":{"type":"number","title":"Higher Strike Yes Price"},"violation_bp":{"type":"number","title":"Violation Bp","description":"(higher_strike_yes_price - lower_strike_yes_price) * 10000. Always positive when present - a positive value is what makes this a violation."},"max_riskless_profit_per_usd":{"type":"number","title":"Max Riskless Profit Per Usd","description":"Textbook upper bound (= the violation size itself) per $1 notional on the smaller leg, before fees/slippage/execution risk. Not investment advice."}},"type":"object","required":["lower_strike","lower_strike_yes_price","higher_strike","higher_strike_yes_price","violation_bp","max_riskless_profit_per_usd"],"title":"Hip4MispricingViolation"},"Hip4NamedOutcome":{"properties":{"outcome_id":{"type":"integer","title":"Outcome Id"},"label":{"type":"string","title":"Label","description":"Participant name if available, else the outcome's own template name."},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price"}},"type":"object","required":["outcome_id","label"],"title":"Hip4NamedOutcome"},"Hip4PriceResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"underlying":{"type":"string","title":"Underlying"},"requested_strike":{"type":"number","title":"Requested Strike"},"matched_strike":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Matched Strike","description":"The closest available rung's strike - NOT guaranteed to equal requested_strike."},"yes_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Yes Price"},"expiry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expiry"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","underlying","requested_strike","data_source"],"title":"Hip4PriceResponse"},"Hip4Side":{"properties":{"name":{"type":"string","title":"Name","description":"Side label - usually 'Yes'/'No', sometimes a competitor's short name."},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"Live mid-price for this side (0.0-1.0, an implied probability)."}},"type":"object","required":["name"],"title":"Hip4Side"},"Hip4StandaloneMarket":{"properties":{"outcome_id":{"type":"integer","title":"Outcome Id"},"template":{"type":"string","title":"Template","description":"Hyperliquid's own market-type name for this outcome, verbatim."},"fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Fields","description":"Parsed 'key:value' pairs from Hyperliquid's own description string, verbatim - not curated."},"sides":{"items":{"$ref":"#/components/schemas/Hip4Side"},"type":"array","title":"Sides"}},"type":"object","required":["outcome_id","template","fields","sides"],"title":"Hip4StandaloneMarket"},"KimchiAlertResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"symbol":{"type":"string","title":"Symbol"},"upbit_price_krw":{"type":"number","title":"Upbit Price Krw"},"binance_price_usdt":{"type":"number","title":"Binance Price Usdt","description":"Legacy field name kept for backward compatibility - despite the name, this is NOT a live Binance price. See notice / cex_price_source."},"cex_reference_price_usdt":{"type":"number","title":"Cex Reference Price Usdt","description":"Same value as binance_price_usdt, under an honestly-named field. Prefer this for new integrations."},"cex_price_source":{"type":"string","title":"Cex Price Source","description":"Actual source of the CEX-side reference price, e.g. 'coinbase_spot_or_coingecko_fallback'."},"usdkrw_rate_estimate":{"type":"number","title":"Usdkrw Rate Estimate"},"kimchi_premium_pct":{"type":"number","title":"Kimchi Premium Pct"},"premium_change_1h_pct":{"type":"number","title":"Premium Change 1H Pct"},"alerts":{"$ref":"#/components/schemas/KimchiAlerts"},"thresholds":{"$ref":"#/components/schemas/KimchiThresholds"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","symbol","upbit_price_krw","binance_price_usdt","cex_reference_price_usdt","cex_price_source","usdkrw_rate_estimate","kimchi_premium_pct","premium_change_1h_pct","alerts","thresholds"],"title":"KimchiAlertResponse"},"KimchiAlerts":{"properties":{"reverse_premium":{"type":"boolean","title":"Reverse Premium"},"premium_surge_1h":{"type":"boolean","title":"Premium Surge 1H"}},"type":"object","required":["reverse_premium","premium_surge_1h"],"title":"KimchiAlerts"},"KimchiThresholds":{"properties":{"reverse_premium_pct":{"type":"number","title":"Reverse Premium Pct"},"surge_1h_pct":{"type":"number","title":"Surge 1H Pct"}},"type":"object","required":["reverse_premium_pct","surge_1h_pct"],"title":"KimchiThresholds"},"MacroCalendarEventBrief":{"properties":{"event_name":{"type":"string","title":"Event Name"},"event_type":{"type":"string","title":"Event Type"},"event_datetime":{"$ref":"#/components/schemas/TimestampPair"},"impact_level":{"type":"string","title":"Impact Level"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]}},"type":"object","required":["event_name","event_type","event_datetime","impact_level"],"title":"MacroCalendarEventBrief"},"MacroDdayResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"event_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Name"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"event_datetime":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"d_day":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"D Day"},"time_remaining":{"anyOf":[{"$ref":"#/components/schemas/TimeRemaining"},{"type":"null"}]},"impact_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Impact Level"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","default":[]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"upcoming_events":{"items":{"$ref":"#/components/schemas/MacroCalendarEventBrief"},"type":"array","title":"Upcoming Events","default":[]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","data_source"],"title":"MacroDdayResponse"},"MarkdownResponse":{"properties":{"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"markdown":{"type":"string","title":"Markdown"},"char_count":{"type":"integer","title":"Char Count"}},"type":"object","required":["url","title","markdown","char_count"],"title":"MarkdownResponse"},"OracleGapBpResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"coin":{"type":"string","title":"Coin"},"mid_oracle_gap_bp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mid Oracle Gap Bp"},"mark_oracle_gap_bp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mark Oracle Gap Bp"},"elevated":{"type":"boolean","title":"Elevated","description":"True when abs(mid_oracle_gap_bp) >= alert_threshold_bp. A fixed-threshold boolean, not a manipulation determination."},"alert_threshold_bp":{"type":"number","title":"Alert Threshold Bp"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","coin","elevated","alert_threshold_bp","data_source"],"title":"OracleGapBpResponse"},"OracleGapResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"coin":{"type":"string","title":"Coin"},"mid_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mid Price"},"mark_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mark Price"},"oracle_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Oracle Price"},"mid_oracle_gap_bp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mid Oracle Gap Bp","description":"(mid_price - oracle_price) / oracle_price * 10000, in basis points."},"mark_oracle_gap_bp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mark Oracle Gap Bp","description":"(mark_price - oracle_price) / oracle_price * 10000, in basis points."},"elevated":{"type":"boolean","title":"Elevated","description":"True when abs(mid_oracle_gap_bp) >= alert_threshold_bp. A fixed-threshold boolean, not a manipulation determination - see notice."},"alert_threshold_bp":{"type":"number","title":"Alert Threshold Bp"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","coin","elevated","alert_threshold_bp","data_source"],"title":"OracleGapResponse"},"PolymarketMispricingViolation":{"properties":{"lower_strike":{"type":"number","title":"Lower Strike"},"lower_token_id":{"type":"string","title":"Lower Token Id"},"lower_strike_yes_price":{"type":"number","title":"Lower Strike Yes Price"},"higher_strike":{"type":"number","title":"Higher Strike"},"higher_token_id":{"type":"string","title":"Higher Token Id"},"higher_strike_yes_price":{"type":"number","title":"Higher Strike Yes Price"},"violation_bp":{"type":"number","title":"Violation Bp","description":"(higher_strike_yes_price - lower_strike_yes_price) * 10000. Always positive when present - a positive value is what makes this a violation."},"max_riskless_profit_per_usd":{"type":"number","title":"Max Riskless Profit Per Usd","description":"Textbook upper bound (= the violation size itself) per $1 notional on the smaller leg, before fees/slippage/execution risk. Not investment advice."}},"type":"object","required":["lower_strike","lower_token_id","lower_strike_yes_price","higher_strike","higher_token_id","higher_strike_yes_price","violation_bp","max_riskless_profit_per_usd"],"title":"PolymarketMispricingViolation"},"PredictionBidAskSpreadPctResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"token_id":{"type":"string","title":"Token Id"},"market_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Slug"},"best_bid":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Best Bid"},"best_ask":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Best Ask"},"mid_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mid Price"},"spread_abs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spread Abs"},"spread_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spread Pct","description":"(best_ask - best_bid) / mid_price * 100. Null if either side of the book is empty."},"book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","token_id","data_source"],"title":"PredictionBidAskSpreadPctResponse"},"PredictionExitCapacityAuditResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"token_id":{"type":"string","title":"Token Id"},"market_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Slug"},"side":{"type":"string","title":"Side"},"position_size_shares":{"type":"number","title":"Position Size Shares"},"executable":{"type":"boolean","title":"Executable"},"best_quote":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Best Quote"},"avg_exit_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Exit Price"},"price_impact_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Impact Pct"},"max_executable_shares":{"type":"number","title":"Max Executable Shares"},"book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}],"description":"The order book's own reported snapshot timestamp, so you can judge how fresh this read is."},"tick_size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tick Size","description":"Polymarket's own reported minimum price increment for this market. Null if the book response didn't include it."},"min_order_size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Order Size","description":"Polymarket's own reported minimum order size for this market. Null if the book response didn't include it."},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","token_id","side","position_size_shares","executable","max_executable_shares","data_source"],"title":"PredictionExitCapacityAuditResponse"},"PredictionHip4MispricingResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"underlying":{"type":"string","title":"Underlying"},"expiry_groups_checked":{"type":"integer","title":"Expiry Groups Checked","description":"Number of distinct (expiry, period) rung groups actually compared."},"total_rungs_checked":{"type":"integer","title":"Total Rungs Checked"},"violation_count":{"type":"integer","title":"Violation Count"},"violations":{"items":{"$ref":"#/components/schemas/Hip4MispricingViolation"},"type":"array","title":"Violations"},"settlement_condition_note":{"type":"string","title":"Settlement Condition Note"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","underlying","expiry_groups_checked","total_rungs_checked","violation_count","violations","settlement_condition_note","data_source"],"title":"PredictionHip4MispricingResponse"},"PredictionHip4PriceLadderResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"underlying":{"type":"string","title":"Underlying"},"rung_count":{"type":"integer","title":"Rung Count"},"skipped_unparsable_count":{"type":"integer","title":"Skipped Unparsable Count","description":"Matching outcomes whose targetPrice wasn't a parseable number - excluded from rungs."},"rungs":{"items":{"$ref":"#/components/schemas/Hip4LadderRung"},"type":"array","title":"Rungs"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","underlying","rung_count","skipped_unparsable_count","rungs","data_source"],"title":"PredictionHip4PriceLadderResponse"},"PredictionHip4SnapshotResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"template_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Filter"},"underlying_filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Underlying Filter"},"standalone_count":{"type":"integer","title":"Standalone Count"},"grouped_question_count":{"type":"integer","title":"Grouped Question Count"},"standalone_markets":{"items":{"$ref":"#/components/schemas/Hip4StandaloneMarket"},"type":"array","title":"Standalone Markets"},"grouped_questions":{"items":{"$ref":"#/components/schemas/Hip4GroupedQuestion"},"type":"array","title":"Grouped Questions"},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","standalone_count","grouped_question_count","standalone_markets","grouped_questions","data_source"],"title":"PredictionHip4SnapshotResponse"},"PredictionLiquidityDepthAfterHaircutResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"token_id":{"type":"string","title":"Token Id"},"market_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Slug"},"side":{"type":"string","title":"Side"},"haircut_pct":{"type":"number","title":"Haircut Pct"},"max_price_impact_pct":{"type":"number","title":"Max Price Impact Pct"},"best_quote":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Best Quote"},"depth_shares_before_haircut":{"type":"number","title":"Depth Shares Before Haircut"},"depth_shares_after_haircut":{"type":"number","title":"Depth Shares After Haircut","description":"Same calculation as depth_shares_before_haircut, but with the top-of-book level's size discounted by haircut_pct first."},"book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","token_id","side","haircut_pct","max_price_impact_pct","depth_shares_before_haircut","depth_shares_after_haircut","data_source"],"title":"PredictionLiquidityDepthAfterHaircutResponse"},"PredictionNegRiskArbitrageResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"event_slug":{"type":"string","title":"Event Slug"},"num_outcomes":{"type":"integer","title":"Num Outcomes"},"basket_ask_sum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Basket Ask Sum"},"basket_bid_sum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Basket Bid Sum"},"buy_basket_gross_edge_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buy Basket Gross Edge Usd"},"sell_basket_gross_edge_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sell Basket Gross Edge Usd"},"assumed_round_trip_cost_pct":{"type":"number","title":"Assumed Round Trip Cost Pct"},"buy_basket_net_edge_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buy Basket Net Edge Usd"},"sell_basket_net_edge_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sell Basket Net Edge Usd"},"buy_basket_capacity_shares":{"type":"number","title":"Buy Basket Capacity Shares"},"sell_basket_capacity_shares":{"type":"number","title":"Sell Basket Capacity Shares"},"buy_basket_capacity_notional_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buy Basket Capacity Notional Usd"},"sell_basket_capacity_notional_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sell Basket Capacity Notional Usd"},"buy_basket_capacity_vwap_notional_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buy Basket Capacity Vwap Notional Usd","description":"Same capacity as buy_basket_capacity_shares, but priced by walking the actual order-book depth (volume-weighted) instead of using each leg's top-of-book price - a more realistic fill cost than buy_basket_capacity_notional_usd. Null if depth data was insufficient."},"sell_basket_capacity_vwap_notional_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sell Basket Capacity Vwap Notional Usd","description":"VWAP-priced equivalent of sell_basket_capacity_notional_usd - see buy_basket_capacity_vwap_notional_usd."},"opportunity":{"type":"string","title":"Opportunity"},"arbitrage_viable":{"type":"boolean","title":"Arbitrage Viable"},"oldest_book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}],"description":"The oldest of each leg's own order-book snapshot timestamp - the staleness bottleneck across all legs, since the whole basket calculation is only as fresh as its stalest leg. Null if no leg reported a timestamp."},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","event_slug","num_outcomes","assumed_round_trip_cost_pct","buy_basket_capacity_shares","sell_basket_capacity_shares","opportunity","arbitrage_viable","data_source"],"title":"PredictionNegRiskArbitrageResponse"},"PredictionOrderSplitGuideResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"token_id":{"type":"string","title":"Token Id"},"market_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Slug"},"side":{"type":"string","title":"Side"},"position_size_shares":{"type":"number","title":"Position Size Shares"},"max_price_impact_pct_per_slice":{"type":"number","title":"Max Price Impact Pct Per Slice"},"executable_now":{"type":"boolean","title":"Executable Now","description":"Whether the FULL position_size_shares fills on this same book right now, same definition as exit_capacity_audit's `executable`."},"full_size_price_impact_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Full Size Price Impact Pct","description":"Price impact if the whole position were filled in one shot on this book right now - the baseline that splitting is meant to improve on."},"max_single_clip_shares":{"type":"number","title":"Max Single Clip Shares","description":"The largest single clip, from this snapshot's best price, that keeps price impact at or under max_price_impact_pct_per_slice."},"recommended_slice_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recommended Slice Count","description":"ceil(position_size_shares / max_single_clip_shares). Null if the book has no depth at all."},"recommended_slice_size_shares":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recommended Slice Size Shares","description":"position_size_shares / recommended_slice_count, i.e. an even split."},"book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","token_id","side","position_size_shares","max_price_impact_pct_per_slice","executable_now","max_single_clip_shares","data_source"],"title":"PredictionOrderSplitGuideResponse"},"PredictionOrderbookImbalanceRatioResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"token_id":{"type":"string","title":"Token Id"},"market_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Slug"},"depth_band_pct":{"type":"number","title":"Depth Band Pct"},"best_bid":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Best Bid"},"best_ask":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Best Ask"},"bid_depth_shares":{"type":"number","title":"Bid Depth Shares"},"ask_depth_shares":{"type":"number","title":"Ask Depth Shares"},"imbalance_ratio":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Imbalance Ratio","description":"bid_depth_shares / (bid_depth_shares + ask_depth_shares). 0.5 = balanced, closer to 1.0 = bid-side depth dominant, closer to 0.0 = ask-side dominant. Null if both sides are empty."},"book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","token_id","depth_band_pct","bid_depth_shares","ask_depth_shares","data_source"],"title":"PredictionOrderbookImbalanceRatioResponse"},"PredictionPolymarketFeeEstimateResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"token_id":{"type":"string","title":"Token Id"},"market_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Slug"},"shares":{"type":"number","title":"Shares"},"price":{"type":"number","title":"Price"},"price_source":{"type":"string","title":"Price Source","description":"'explicit' if you passed price yourself, else 'book_best_sell'/'book_best_buy' depending on side."},"base_fee_bp":{"type":"number","title":"Base Fee Bp","description":"Raw basis-point value read live from Polymarket's own GET /fee-rate for this exact token_id - never hardcoded."},"fee_rate":{"type":"number","title":"Fee Rate","description":"base_fee_bp / 10000."},"fee_usd":{"type":"number","title":"Fee Usd","description":"shares * fee_rate * price * (1 - price) - Polymarket's own bell-curve taker-fee formula, peaking at a $0.50 price."},"book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","token_id","shares","price","price_source","base_fee_bp","fee_rate","fee_usd","data_source"],"title":"PredictionPolymarketFeeEstimateResponse"},"PredictionPolymarketMispricingResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"rungs_checked":{"type":"integer","title":"Rungs Checked"},"rungs_skipped_empty_book":{"type":"integer","title":"Rungs Skipped Empty Book","description":"Rungs whose order book had neither a bid nor an ask - excluded from the monotonicity check entirely."},"violation_count":{"type":"integer","title":"Violation Count"},"violations":{"items":{"$ref":"#/components/schemas/PolymarketMispricingViolation"},"type":"array","title":"Violations"},"oldest_book_snapshot_time":{"anyOf":[{"$ref":"#/components/schemas/TimestampPair"},{"type":"null"}]},"data_source":{"type":"string","title":"Data Source"},"notice":{"type":"string","title":"Notice"}},"type":"object","required":["generated_at","rungs_checked","rungs_skipped_empty_book","violation_count","violations","data_source","notice"],"title":"PredictionPolymarketMispricingResponse"},"SlippageTier":{"properties":{"trade_size_usd":{"type":"number","title":"Trade Size Usd","description":"Fixed hypothetical trade size in USD for this tier ($1,000 / $5,000 / $10,000)."},"estimated_price_impact_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Estimated Price Impact Pct","description":"Estimated price impact percentage at this trade size, using the same constant-product (x*y=k) 50:50 approximation as estimated_slippage_pct."},"warning_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning Level","description":"Heuristic risk label for this tier: LOW (<1% impact), MEDIUM (1-3%), or HIGH (>3%). This is AlphaPipeline's own threshold, not an industry standard."}},"type":"object","required":["trade_size_usd"],"title":"SlippageTier"},"TimeRemaining":{"properties":{"days":{"type":"integer","title":"Days"},"hours":{"type":"integer","title":"Hours"},"minutes":{"type":"integer","title":"Minutes"}},"type":"object","required":["days","hours","minutes"],"title":"TimeRemaining"},"TimestampPair":{"properties":{"utc":{"type":"string","title":"Utc"},"kst":{"type":"string","title":"Kst"}},"type":"object","required":["utc","kst"],"title":"TimestampPair"},"TokenAuthenticityResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"chain_id":{"type":"integer","title":"Chain Id"},"contract_address":{"type":"string","title":"Contract Address"},"token_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Name"},"token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Symbol"},"flagged_as_counterfeit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Flagged As Counterfeit","description":"True when GoPlus's fake_token.value == 1 (this contract impersonates a known mainstream asset). False means GoPlus found no such flag on this contract at query time - NOT a positive guarantee of authenticity, just the absence of this one signal. Null only when the GoPlus lookup itself failed (see data_source/notice)."},"true_token_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"True Token Address","description":"Only non-null when flagged_as_counterfeit is true - GoPlus's claimed address of the genuine asset being impersonated, on the same chain."},"trust_list":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Trust List","description":"True when GoPlus's trust_list flags this contract as a known, trustworthy token. False/absent does NOT imply risk (GoPlus's own wording) - sparsely populated even for well-known tokens. Null only when the GoPlus lookup itself failed."},"honeypot_with_same_creator":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Honeypot With Same Creator","description":"Count of other honeypot-flagged tokens deployed by the same creator address, per GoPlus. Not specific to impersonation, but a useful secondary signal from the same call at no extra cost."},"risk_flags":{"items":{"type":"string"},"type":"array","title":"Risk Flags","default":[]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","chain_id","contract_address","data_source"],"title":"TokenAuthenticityResponse"},"TokenDiagnosticResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"chain_id":{"type":"integer","title":"Chain Id"},"contract_address":{"type":"string","title":"Contract Address"},"token_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Name"},"token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Symbol"},"is_honeypot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Honeypot"},"buy_tax_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buy Tax Pct"},"sell_tax_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sell Tax Pct"},"is_mintable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Mintable"},"is_open_source":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Open Source"},"owner_renounced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Owner Renounced"},"holder_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Holder Count"},"liquidity_health":{"type":"string","title":"Liquidity Health"},"lp_locked_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Locked Pct"},"lp_burned_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Lp Burned Pct"},"top_unlocked_holder_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top Unlocked Holder Pct"},"top5_unlocked_holder_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top5 Unlocked Holder Pct","description":"Sum of the top 5 non-locked/non-burned LP holders - see security.contract_health_audit's own field for detail."},"risk_flags":{"items":{"type":"string"},"type":"array","title":"Risk Flags","description":"Deduped union of security.token_risk's and security.contract_health_audit's risk_flags - no new flags are computed here.","default":[]},"risk_flags_count":{"type":"integer","title":"Risk Flags Count","description":"len(risk_flags) - a plain count, not a weighted score."},"checks_completed":{"type":"integer","title":"Checks Completed","description":"How many of the 2 underlying checks (token_risk, contract_health_audit) returned real data (data_source != 'none')."},"checks_total":{"type":"integer","title":"Checks Total","default":2},"data_sources":{"items":{"type":"string"},"type":"array","title":"Data Sources","description":"Distinct data_source values from the 2 underlying checks, e.g. ['goplus'] or ['goplus', 'honeypot_is']."},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","chain_id","contract_address","liquidity_health","risk_flags_count","checks_completed","data_sources"],"title":"TokenDiagnosticResponse"},"TokenPrescreenResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"chain_id":{"type":"integer","title":"Chain Id"},"contract_address":{"type":"string","title":"Contract Address"},"liquidity_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liquidity Usd","description":"Top pool's aggregate USD liquidity from GeckoTerminal (same source as dex.liquidity_slippage) - null when chain_id isn't mapped to a GeckoTerminal network, or no pool was found for this token."},"liquidity_health":{"type":"string","title":"Liquidity Health","description":"Same categories/thresholds as security.contract_health_audit's own liquidity_health: LOCKED / PARTIALLY_LOCKED / UNLOCKED / NO_LP_DATA / UNKNOWN (GoPlus lookup itself failed)."},"risk_flags":{"items":{"type":"string"},"type":"array","title":"Risk Flags","default":[]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","chain_id","contract_address","liquidity_health","data_source"],"title":"TokenPrescreenResponse"},"TokenRiskResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"chain_id":{"type":"integer","title":"Chain Id"},"contract_address":{"type":"string","title":"Contract Address"},"token_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Name"},"token_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Symbol"},"is_honeypot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Honeypot"},"buy_tax_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Buy Tax Pct"},"sell_tax_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Sell Tax Pct"},"is_mintable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Mintable"},"is_open_source":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Open Source"},"owner_renounced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Owner Renounced"},"owner_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Address"},"holder_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Holder Count"},"is_in_dex":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is In Dex"},"cannot_buy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cannot Buy","description":"GoPlus-only field, null on Honeypot.is fallback. Contributes to risk_flags when true."},"cannot_sell_all":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Cannot Sell All","description":"GoPlus-only field, null on Honeypot.is fallback. Contributes to risk_flags when true."},"hidden_owner":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden Owner","description":"GoPlus-only field, null on Honeypot.is fallback. Contributes to risk_flags when true."},"transfer_pausable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Transfer Pausable","description":"GoPlus-only field, null on Honeypot.is fallback. Contributes to risk_flags when true."},"selfdestruct":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Selfdestruct","description":"GoPlus-only field, null on Honeypot.is fallback. Contributes to risk_flags when true."},"is_proxy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Proxy","description":"GoPlus-only field, null on Honeypot.is fallback. Informational only - does NOT contribute to risk_flags (upgradeable proxies are common in legitimate contracts)."},"is_blacklisted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Blacklisted","description":"GoPlus-only field, null on Honeypot.is fallback. Contributes to risk_flags when true."},"slippage_modifiable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Slippage Modifiable","description":"GoPlus-only field, null on Honeypot.is fallback. Contributes to risk_flags when true."},"trading_cooldown":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Trading Cooldown","description":"GoPlus-only field, null on Honeypot.is fallback. Informational only - does NOT contribute to risk_flags (also used as a legitimate anti-bot measure)."},"owner_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Owner Percent","description":"Percentage of total supply held by the owner address, GoPlus-only (null on Honeypot.is fallback). Contributes 'high_owner_concentration' to risk_flags at >=50%."},"risk_level":{"type":"string","title":"Risk Level"},"risk_flags":{"items":{"type":"string"},"type":"array","title":"Risk Flags","default":[]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","chain_id","contract_address","risk_level","data_source"],"title":"TokenRiskResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WhalePosition":{"properties":{"coin":{"type":"string","title":"Coin"},"side":{"type":"string","title":"Side","description":"LONG or SHORT, derived from the sign of Hyperliquid's szi (signed size)."},"size":{"type":"number","title":"Size"},"entry_price":{"type":"number","title":"Entry Price"},"mark_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Mark Price","description":"Derived as position_value_usd / size, since clearinghouseState does not return a live mark price directly. Not a separately-fetched live quote."},"position_value_usd":{"type":"number","title":"Position Value Usd"},"leverage":{"type":"number","title":"Leverage"},"leverage_type":{"type":"string","title":"Leverage Type","description":"cross or isolated, as reported by Hyperliquid."},"max_leverage":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Leverage","description":"Hyperliquid's own reported leverage ceiling for this asset/account setting - not the leverage actually in use (see 'leverage' for that)."},"unrealized_pnl_usd":{"type":"number","title":"Unrealized Pnl Usd"},"return_on_equity_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Return On Equity Pct","description":"Hyperliquid's own reported return-on-equity for this position, as a percentage. This is Hyperliquid's own ROE definition, which can differ from a naive unrealized_pnl_usd / margin_used calculation."},"liquidation_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Liquidation Price"},"distance_to_liquidation_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Distance To Liquidation Pct","description":"abs(mark_price - liquidation_price) / mark_price * 100. Null when Hyperliquid reports no liquidation price for this position."}},"type":"object","required":["coin","side","size","entry_price","position_value_usd","leverage","leverage_type","unrealized_pnl_usd"],"title":"WhalePosition"},"WhalePositionAuditResponse":{"properties":{"generated_at":{"$ref":"#/components/schemas/TimestampPair"},"wallet_address":{"type":"string","title":"Wallet Address"},"account_value_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Account Value Usd"},"total_margin_used_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Margin Used Usd"},"total_notional_position_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Notional Position Usd"},"withdrawable_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Withdrawable Usd"},"margin_usage_pct":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Usage Pct"},"open_position_count":{"type":"integer","title":"Open Position Count"},"positions":{"items":{"$ref":"#/components/schemas/WhalePosition"},"type":"array","title":"Positions","default":[]},"risk_flags":{"items":{"type":"string"},"type":"array","title":"Risk Flags","default":[]},"data_source":{"type":"string","title":"Data Source"},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice"}},"type":"object","required":["generated_at","wallet_address","open_position_count","data_source"],"title":"WhalePositionAuditResponse"}}},"tags":[{"name":"market","description":"Real-time price and on-chain event market data"},{"name":"tools","description":"Utility tools for AI agents"}]}