{"openapi":"3.1.0","info":{"title":"Dataline Data API","description":"Authenticated market-data API. Bearer = RS256 JWT minted by control-api; alternatively send `X-Dataline-Key: dlk_*`. For accountless payment, send `X-Dataline-Access-Mode: x402` and follow the standard HTTP 402 challenge.","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_dict_"}}}}}}},"/me":{"get":{"tags":["auth"],"summary":"Current Auth User","operationId":"current_auth_user_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"examples":["Bearer eyJ..."],"title":"Authorization"}},{"name":"X-Dataline-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"examples":["dlk_..."],"title":"X-Dataline-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_CurrentAuthUserData_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}]}},"/cex/announcements/list":{"get":{"tags":["cex"],"summary":"Cex Announcement List","operationId":"cex_announcement_list_cex_announcements_list_get","parameters":[{"name":"source","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CexAnnouncementSource","description":"Exchange/source","examples":["All","binance","okx"],"default":"All"},"description":"Exchange/source"},{"name":"category","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CexAnnouncementCategory","description":"Announcement category","examples":["All","listing","maintenance"],"default":"All"},"description":"Announcement category"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"description":"Search query","examples":["BTC","listing"],"title":"Query"},"description":"Search query"},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Announcement time lower bound","examples":["2026-01-01T00:00:00Z"],"title":"Start Time"},"description":"Announcement time lower bound"},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Announcement time upper bound","examples":["2026-01-31T23:59:59Z"],"title":"End Time"},"description":"Announcement time upper bound"},{"name":"include_content","in":"query","required":false,"schema":{"type":"boolean","description":"Include full content","examples":[false,true],"default":false,"title":"Include Content"},"description":"Include full content"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","examples":[1,2],"default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","examples":[20,50],"default":20,"title":"Limit"},"description":"Page size"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_ExchangeAnnouncementListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"cex.announcements.list.read","x-dataline-access-modes":["credentials","x402"]}},"/cex/announcements/detail":{"get":{"tags":["cex"],"summary":"Cex Announcement Detail","operationId":"cex_announcement_detail_cex_announcements_detail_get","parameters":[{"name":"announcement_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Internal announcement ID","examples":[143260],"title":"Announcement Id"},"description":"Internal announcement ID"},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":32},{"type":"null"}],"description":"Exchange/source","examples":["binance","okx"],"title":"Source"},"description":"Exchange/source"},{"name":"external_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}],"description":"Source ID","examples":["9595cb2560cc4f4b9906dca1d4cbd6d1"],"title":"External Id"},"description":"Source ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_ExchangeAnnouncementResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"cex.announcements.detail.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/project/search":{"get":{"tags":["crypto"],"summary":"Search crypto projects by symbol, name or contract","operationId":"search_projects_v1_crypto_project_search_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":128,"pattern":".*\\S.*"},{"type":"null"}],"description":"Project symbol or name to search. Optional when contract_address is provided; one of query or contract_address is required.","examples":["BTC","bitcoin","Ethereum"],"title":"Query"},"description":"Project symbol or name to search. Optional when contract_address is provided; one of query or contract_address is required."},{"name":"contract_address","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":32,"maxLength":128,"pattern":".*\\S.*"},{"type":"null"}],"description":"Token contract address to search. Optional when query is provided; one of query or contract_address is required.","examples":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"],"title":"Contract Address"},"description":"Token contract address to search. Optional when query is provided; one of query or contract_address is required."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"description":"Maximum number of projects to return.","examples":[10],"default":10,"title":"Limit"},"description":"Maximum number of projects to return."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of matching projects to skip before returning results.","examples":[0],"default":0,"title":"Offset"},"description":"Number of matching projects to skip before returning results."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_list_ProjectSearchItemResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.project.search.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/project/detail":{"get":{"tags":["crypto"],"summary":"Project fundamentals and metadata by Project ID","operationId":"get_project_detail_v1_crypto_project_detail_get","parameters":[{"name":"project_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"pattern":".*\\S.*","description":"Project ID returned by /v1/crypto/project/search.","examples":["bitcoin","ethereum","usd-coin"],"title":"Project Id"},"description":"Project ID returned by /v1/crypto/project/search."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_ProjectDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.project.detail.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/cex/price":{"get":{"tags":["crypto"],"summary":"Latest CEX spot price","operationId":"get_cex_price_v1_crypto_cex_price_get","parameters":[{"name":"base","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9]+$","description":"Base asset symbol to price on centralized spot venues.","examples":["BTC","ETH","SOL"],"title":"Base"},"description":"Base asset symbol to price on centralized spot venues."},{"name":"quote","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","description":"Quote asset symbol for the CEX spot pair.","examples":["USDT","USDC","USD"],"default":"USDT","title":"Quote"},"description":"Quote asset symbol for the CEX spot pair."},{"name":"venues","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/CexSpotVenue"},"minItems":1,"maxItems":4},{"type":"null"}],"description":"Optional CEX venue filter. Omit to query all supported spot venues (binance, bybit, coinbase, okx).","examples":[["binance","okx"],["coinbase"]],"title":"Venues"},"description":"Optional CEX venue filter. Omit to query all supported spot venues (binance, bybit, coinbase, okx)."},{"name":"quote_notional","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":1000000000.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"description":"Optional trade size in quote currency used for confidence checks.","examples":["1000","50000"],"title":"Quote Notional"},"description":"Optional trade size in quote currency used for confidence checks."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_CryptoPriceResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.cex.price.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/dex/price":{"get":{"tags":["crypto"],"summary":"Latest DEX token price","operationId":"get_dex_price_v1_crypto_dex_price_get","parameters":[{"name":"chain","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DexChain","description":"On-chain network for the token contract. Supported values include ethereum, base, arbitrum, optimism, polygon, bsc, and solana.","examples":["ethereum","base","solana"]},"description":"On-chain network for the token contract. Supported values include ethereum, base, arbitrum, optimism, polygon, bsc, and solana."},{"name":"contract_address","in":"query","required":true,"schema":{"type":"string","minLength":32,"maxLength":128,"pattern":".*\\S.*","description":"Token contract address on the selected chain.","examples":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],"title":"Contract Address"},"description":"Token contract address on the selected chain."},{"name":"venues","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/DexVenue"},"minItems":1,"maxItems":2},{"type":"null"}],"description":"Optional DEX provider filter. Omit to query all supported DEX providers (dexscreener, geckoterminal).","examples":[["dexscreener"],["dexscreener","geckoterminal"]],"title":"Venues"},"description":"Optional DEX provider filter. Omit to query all supported DEX providers (dexscreener, geckoterminal)."},{"name":"quote_notional","in":"query","required":false,"schema":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"description":"Optional trade size in USD used for confidence checks.","examples":["1000","50000"],"title":"Quote Notional"},"description":"Optional trade size in USD used for confidence checks."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_CryptoPriceResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.dex.price.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/history":{"get":{"tags":["crypto"],"summary":"OHLCV time series","operationId":"get_historical_prices_v1_crypto_history_get","parameters":[{"name":"base","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9]+$","description":"Base asset symbol for the OHLCV series.","examples":["BTC","ETH","SOL"],"title":"Base"},"description":"Base asset symbol for the OHLCV series."},{"name":"venue","in":"query","required":true,"schema":{"$ref":"#/components/schemas/HistoricalVenue","description":"Venue identifier for candles. Spot supports binance, bybit, coinbase, okx; perpetual supports binance, bybit, hyperliquid, okx.","examples":["binance","bybit","okx"]},"description":"Venue identifier for candles. Spot supports binance, bybit, coinbase, okx; perpetual supports binance, bybit, hyperliquid, okx."},{"name":"quote","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","description":"Quote asset symbol for the market.","examples":["USDT","USDC","USD"],"default":"USDT","title":"Quote"},"description":"Quote asset symbol for the market."},{"name":"market_type","in":"query","required":false,"schema":{"enum":["spot","perpetual"],"type":"string","description":"Market type for the OHLCV series.","examples":["spot","perpetual"],"default":"spot","title":"Market Type"},"description":"Market type for the OHLCV series."},{"name":"interval","in":"query","required":false,"schema":{"enum":["1m","5m","15m","1h","4h","1d"],"type":"string","description":"Candle interval.","examples":["1h","15m","1d"],"default":"1h","title":"Interval"},"description":"Candle interval."},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive lower bound for candle timestamps. Omit to use provider default.","examples":["2026-01-01T00:00:00Z"],"title":"Start Time"},"description":"Inclusive lower bound for candle timestamps. Omit to use provider default."},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive upper bound for candle timestamps. Omit to use provider default.","examples":["2026-01-02T00:00:00Z"],"title":"End Time"},"description":"Inclusive upper bound for candle timestamps. Omit to use provider default."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of candles to return.","examples":[100,168],"default":100,"title":"Limit"},"description":"Maximum number of candles to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_HistoricalPriceResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.history.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/perpetuals/metrics":{"get":{"tags":["crypto"],"summary":"Funding, OI and basis snapshot","operationId":"get_perpetual_metrics_v1_crypto_perpetuals_metrics_get","parameters":[{"name":"base","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9]+$","description":"Base asset symbol for the perpetual contract.","examples":["BTC","ETH","SOL"],"title":"Base"},"description":"Base asset symbol for the perpetual contract."},{"name":"quote","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","description":"Quote or settle asset for the perpetual contract.","examples":["USDT","USDC","USD"],"default":"USDT","title":"Quote"},"description":"Quote or settle asset for the perpetual contract."},{"name":"venues","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/DerivativesVenue"},"minItems":1,"maxItems":4},{"type":"null"}],"description":"Optional derivatives venue filter. Omit to query all supported venues (binance, bybit, hyperliquid, okx).","examples":[["binance","bybit"],["hyperliquid"]],"title":"Venues"},"description":"Optional derivatives venue filter. Omit to query all supported venues (binance, bybit, hyperliquid, okx)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_PerpetualMetricsResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.perpetuals.metrics.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/perpetuals/funding-history":{"get":{"tags":["crypto"],"summary":"Historical funding rate series","operationId":"get_perpetual_funding_history_v1_crypto_perpetuals_funding_history_get","parameters":[{"name":"base","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9]+$","description":"Base asset symbol for the perpetual contract.","examples":["BTC","ETH","SOL"],"title":"Base"},"description":"Base asset symbol for the perpetual contract."},{"name":"venue","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DerivativesVenue","description":"Derivatives venue identifier.","examples":["binance","bybit","hyperliquid","okx"]},"description":"Derivatives venue identifier."},{"name":"quote","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","description":"Quote or settle asset for the perpetual contract.","examples":["USDT","USDC"],"default":"USDT","title":"Quote"},"description":"Quote or settle asset for the perpetual contract."},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive lower bound for funding timestamps.","examples":["2026-01-01T00:00:00Z"],"title":"Start Time"},"description":"Inclusive lower bound for funding timestamps."},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive upper bound for funding timestamps.","examples":["2026-01-02T00:00:00Z"],"title":"End Time"},"description":"Inclusive upper bound for funding timestamps."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"description":"Maximum number of funding points to return.","examples":[100,200],"default":100,"title":"Limit"},"description":"Maximum number of funding points to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_PerpetualFundingHistoryResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.perpetuals.funding_history.read","x-dataline-access-modes":["credentials","x402"]}},"/v1/crypto/perpetuals/open-interest-history":{"get":{"tags":["crypto"],"summary":"Historical open interest series","operationId":"get_perpetual_open_interest_history_v1_crypto_perpetuals_open_interest_history_get","parameters":[{"name":"base","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":32,"pattern":"^[A-Za-z0-9]+$","description":"Base asset symbol for the perpetual contract.","examples":["BTC","ETH","SOL"],"title":"Base"},"description":"Base asset symbol for the perpetual contract."},{"name":"venue","in":"query","required":true,"schema":{"$ref":"#/components/schemas/DerivativesVenue","description":"Derivatives venue identifier.","examples":["binance","bybit","hyperliquid","okx"]},"description":"Derivatives venue identifier."},{"name":"quote","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":16,"pattern":"^[A-Za-z0-9]+$","description":"Quote or settle asset for the perpetual contract.","examples":["USDT","USDC"],"default":"USDT","title":"Quote"},"description":"Quote or settle asset for the perpetual contract."},{"name":"interval","in":"query","required":false,"schema":{"enum":["5m","15m","30m","1h","4h","1d"],"type":"string","description":"Open-interest sampling interval.","examples":["1h","4h","1d"],"default":"1h","title":"Interval"},"description":"Open-interest sampling interval."},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive lower bound for open-interest timestamps.","examples":["2026-01-01T00:00:00Z"],"title":"Start Time"},"description":"Inclusive lower bound for open-interest timestamps."},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Inclusive upper bound for open-interest timestamps.","examples":["2026-01-02T00:00:00Z"],"title":"End Time"},"description":"Inclusive upper bound for open-interest timestamps."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Maximum number of open-interest samples to return.","examples":[100,168],"default":100,"title":"Limit"},"description":"Maximum number of open-interest samples to return."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_PerpetualOpenInterestHistoryResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"crypto.perpetuals.open_interest_history.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/pools":{"get":{"tags":["defi"],"summary":"Filter DeFi pools","operationId":"list_pools_defi_pools_get","parameters":[{"name":"networks","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","description":"Network ID. Currently only base is supported.","examples":["base"],"default":"base"},"description":"Network ID. Currently only base is supported."},{"name":"dexes","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/DefiBaseDex"},"minItems":1,"maxItems":20},{"type":"null"}],"description":"Optional Base DEX filters. Up to 10 DEX values are supported.","examples":[["aerodrome-base","uniswap-v3-base"]],"title":"Dexes"},"description":"Optional Base DEX filters. Up to 10 DEX values are supported."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Result page. Returns up to 20 pools per page.","examples":[1,2],"default":1,"title":"Page"},"description":"Result page. Returns up to 20 pools per page."},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DefiPoolSort"},{"type":"null"}],"description":"Optional pool sort option.","examples":["reserve_in_usd_desc"],"title":"Sort"},"description":"Optional pool sort option."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_list_DefiPoolSearchItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.pools.list.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/pools/search":{"get":{"tags":["defi"],"summary":"Search DeFi pools","operationId":"search_pools_defi_pools_search_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":".*\\S.*","description":"Pool address, token name, token symbol, or token contract address.","examples":["weth","USDC","0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"],"title":"Query"},"description":"Pool address, token name, token symbol, or token contract address."},{"name":"network","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DefiNetwork"},{"type":"null"}],"description":"Optional network ID.","examples":["base"],"title":"Network"},"description":"Optional network ID."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Result page. Returns up to 20 pools per page.","examples":[1,2],"default":1,"title":"Page"},"description":"Result page. Returns up to 20 pools per page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_list_DefiPoolSearchItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.pools.search.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/variable-rate/markets":{"get":{"tags":["defi"],"summary":"List variable-rate lending markets","operationId":"list_variable_rate_markets_defi_lending_variable_rate_markets_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"protocol","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VariableRateProtocol","examples":["morpho_blue"],"default":"morpho_blue"}},{"name":"loan_asset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},{"type":"null"}],"examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"title":"Loan Asset"}},{"name":"collateral_asset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},{"type":"null"}],"examples":["0x4200000000000000000000000000000000000006"],"title":"Collateral Asset"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VariableMarketSort","examples":["supplyUsd"],"default":"supplyUsd"}},{"name":"order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/dataline_data_api__api__defi__schema__SortOrder","examples":["desc"],"default":"desc"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"examples":[20],"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":999,"minimum":0,"examples":[0],"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_VariableRateMarketPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.variable_rate_markets.list.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/variable-rate/markets/detail":{"get":{"tags":["defi"],"summary":"Get variable-rate lending market detail","operationId":"variable_rate_market_detail_defi_lending_variable_rate_markets_detail_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"protocol","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VariableRateProtocol","examples":["morpho_blue"],"default":"morpho_blue"}},{"name":"market_id","in":"query","required":true,"schema":{"type":"string","minLength":42,"maxLength":85,"examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"],"title":"Market Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_VariableRateMarketDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.variable_rate_markets.detail.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/variable-rate/markets/history":{"get":{"tags":["defi"],"summary":"Get variable-rate lending market history","operationId":"variable_rate_market_history_defi_lending_variable_rate_markets_history_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"protocol","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VariableRateProtocol","examples":["morpho_blue"],"default":"morpho_blue"}},{"name":"market_id","in":"query","required":true,"schema":{"type":"string","minLength":42,"maxLength":85,"examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"],"title":"Market Id"}},{"name":"metric","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VariableMarketHistoryMetric","description":"History metric. Aave V3 supports supplyApy and borrowApy; assetPriceUsd is the Morpho Blue collateral-asset USD price.","examples":["supplyApy"],"default":"supplyApy"},"description":"History metric. Aave V3 supports supplyApy and borrowApy; assetPriceUsd is the Morpho Blue collateral-asset USD price."},{"name":"interval","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HistoryInterval","examples":["day"],"default":"day"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"examples":["2026-06-01T00:00:00Z"],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"examples":["2026-07-01T00:00:00Z"],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_LendingHistory_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.variable_rate_markets.history.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/vaults":{"get":{"tags":["defi"],"summary":"List lending vaults","operationId":"list_lending_vaults_defi_lending_vaults_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"version","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VaultVersion","examples":["V2"],"default":"V2"}},{"name":"asset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},{"type":"null"}],"examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"title":"Asset"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VaultSort","examples":["totalAssetsUsd"],"default":"totalAssetsUsd"}},{"name":"order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/dataline_data_api__api__defi__schema__SortOrder","examples":["desc"],"default":"desc"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"examples":[20],"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":999,"minimum":0,"examples":[0],"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_LendingVaultPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.vaults.list.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/vaults/detail":{"get":{"tags":["defi"],"summary":"Get lending vault detail","operationId":"lending_vault_detail_defi_lending_vaults_detail_get","parameters":[{"name":"vault_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0x04422053aDDbc9bB2759b248B574e3FCA76Bc145"],"title":"Vault Address"}},{"name":"version","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VaultDetailVersion","examples":["V2"],"default":"V2"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_LendingVaultDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.vaults.detail.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/vaults/history":{"get":{"tags":["defi"],"summary":"Get lending vault history","operationId":"lending_vault_history_defi_lending_vaults_history_get","parameters":[{"name":"vault_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0x04422053aDDbc9bB2759b248B574e3FCA76Bc145"],"title":"Vault Address"}},{"name":"version","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VaultDetailVersion","examples":["V2"],"default":"V2"}},{"name":"metric","in":"query","required":false,"schema":{"$ref":"#/components/schemas/VaultHistoryMetric","examples":["netApy"],"default":"netApy"}},{"name":"interval","in":"query","required":false,"schema":{"$ref":"#/components/schemas/HistoryInterval","examples":["day"],"default":"day"}},{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"examples":["2026-06-01T00:00:00Z"],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"examples":["2026-07-01T00:00:00Z"],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_LendingHistory_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.vaults.history.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/fixed-rate/markets":{"get":{"tags":["defi"],"summary":"List fixed-rate lending markets","operationId":"list_fixed_rate_markets_defi_lending_fixed_rate_markets_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"protocol","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FixedRateProtocol","examples":["morpho_midnight"],"default":"morpho_midnight"}},{"name":"loan_asset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},{"type":"null"}],"examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"title":"Loan Asset"}},{"name":"collateral_asset","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},{"type":"null"}],"examples":["0x4200000000000000000000000000000000000006"],"title":"Collateral Asset"}},{"name":"maturity_gte","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"examples":["2026-08-01T00:00:00Z"],"title":"Maturity Gte"}},{"name":"maturity_lte","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"examples":["2027-01-01T00:00:00Z"],"title":"Maturity Lte"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","examples":[true],"default":true,"title":"Active Only"}},{"name":"listed","in":"query","required":false,"schema":{"type":"boolean","examples":[true],"default":true,"title":"Listed"}},{"name":"sort","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FixedMarketSort","examples":["totalUnits"],"default":"totalUnits"}},{"name":"order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/dataline_data_api__api__defi__schema__SortOrder","examples":["desc"],"default":"desc"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"examples":[20],"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"examples":["eyJpZCI6IjEyMyJ9"],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_FixedRateMarketPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.fixed_rate_markets.list.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/fixed-rate/markets/detail":{"get":{"tags":["defi"],"summary":"Get fixed-rate lending market detail","operationId":"fixed_rate_market_detail_defi_lending_fixed_rate_markets_detail_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"protocol","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FixedRateProtocol","examples":["morpho_midnight"],"default":"morpho_midnight"}},{"name":"market_id","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","examples":["0x05959752fdeff325962b9d263edb421efc6e2186a49360dba6c32e86ebf6c84c"],"title":"Market Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_FixedRateMarketDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.fixed_rate_markets.detail.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/fixed-rate/markets/orderbook":{"get":{"tags":["defi"],"summary":"Get fixed-rate lending market order book","operationId":"fixed_rate_market_orderbook_defi_lending_fixed_rate_markets_orderbook_get","parameters":[{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"protocol","in":"query","required":false,"schema":{"$ref":"#/components/schemas/FixedRateProtocol","examples":["morpho_midnight"],"default":"morpho_midnight"}},{"name":"market_id","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$","examples":["0x05959752fdeff325962b9d263edb421efc6e2186a49360dba6c32e86ebf6c84c"],"title":"Market Id"}},{"name":"side","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderbookSide","examples":["all"],"default":"all"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"examples":[20],"default":20,"title":"Depth"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_FixedRateOrderbook_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.fixed_rate_markets.orderbook.read","x-dataline-access-modes":["credentials","x402"]}},"/defi/lending/account/positions":{"get":{"tags":["defi"],"summary":"Get lending positions for a wallet","operationId":"lending_account_positions_defi_lending_account_positions_get","parameters":[{"name":"wallet_address","in":"query","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0x821880a3E2bac432d67E5155e72BB655Ef65fa5E"],"title":"Wallet Address"}},{"name":"network","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DefiNetwork","examples":["base"],"default":"base"}},{"name":"protocol","in":"query","required":false,"schema":{"$ref":"#/components/schemas/AccountLendingProtocol","description":"Lending protocol to query. All queries every supported protocol independently.","examples":["All","morpho_blue"],"default":"All"},"description":"Lending protocol to query. All queries every supported protocol independently."},{"name":"position_type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/LendingPositionType","description":"Optional position filter. Supply, Borrow, and Collateral apply to Morpho Blue and Aave V3; Lend applies to Morpho Midnight.","examples":["All"],"default":"All"},"description":"Optional position filter. Supply, Borrow, and Collateral apply to Morpho Blue and Aave V3; Lend applies to Morpho Midnight."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_LendingAccountPositions_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"defi.lending.account_positions.read","x-dataline-access-modes":["credentials","x402"]}},"/prediction/events/list":{"get":{"tags":["prediction"],"summary":"Prediction Event List","operationId":"prediction_event_list_prediction_events_list_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PredictionOddsCategory","description":"Prediction event category","examples":["All","Crypto","Politics"],"default":"All"},"description":"Prediction event category"},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"description":"Optional search keyword","examples":["bitcoin","election"],"title":"Query"},"description":"Optional search keyword"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","examples":[1,2],"default":1,"title":"Page"},"description":"Page number"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size","examples":[10,25],"default":10,"title":"Limit"},"description":"Page size"},{"name":"is_active","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Event active status","examples":[true,false],"title":"Is Active"},"description":"Event active status"},{"name":"sort","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PredictionEventSort"},{"type":"null"}],"description":"Sort field. Supported values: volume, volume24hr, startDate, endDate, createdAt, updatedAt.","examples":["volume24hr","createdAt"],"title":"Sort"},"description":"Sort field. Supported values: volume, volume24hr, startDate, endDate, createdAt, updatedAt."},{"name":"order","in":"query","required":false,"schema":{"$ref":"#/components/schemas/dataline_data_api__api__prediction__odds_view__SortOrder","description":"Sort direction","examples":["desc","asc"],"default":"desc"},"description":"Sort direction"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_list_PredictionEventResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"prediction.events.list.read","x-dataline-access-modes":["credentials","x402"]}},"/prediction/events/detail":{"get":{"tags":["prediction"],"summary":"Prediction Event Detail","operationId":"prediction_event_detail_prediction_events_detail_get","parameters":[{"name":"slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"description":"Prediction event slug. If provided, slug lookup takes precedence over event_id.","examples":["bitcoin-above-100k-in-2026"],"title":"Slug"},"description":"Prediction event slug. If provided, slug lookup takes precedence over event_id."},{"name":"event_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Prediction event ID","examples":[12345],"title":"Event Id"},"description":"Prediction event ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response200_PredictionEventDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"x402 payment required or settlement failed.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 settlement result.","schema":{"type":"string"}}}}},"security":[{"DatalineBearer":[]},{"DatalineApiKey":[]}],"x-dataline-route-id":"prediction.events.detail.read","x-dataline-access-modes":["credentials","x402"]}}},"components":{"schemas":{"AaveV3AccountPosition":{"properties":{"product":{"type":"string","const":"Aave V3","title":"Product","description":"Aave product associated with the position.","default":"Aave V3"},"position_types":{"items":{"$ref":"#/components/schemas/LendingPositionType"},"type":"array","title":"Position Types","description":"Non-zero Aave position roles for the reserve.","examples":[["Supply","Collateral"]]},"market_address":{"type":"string","title":"Market Address","description":"Aave V3 Pool contract address.","examples":["0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"]},"asset":{"$ref":"#/components/schemas/LendingAsset","description":"Underlying reserve asset."},"supplied":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplied","description":"Supplied amount in token base units.","examples":["1000000000"]},"supplied_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplied Usd","description":"USD value of supplied assets.","examples":["1000"]},"borrowed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrowed","description":"Variable debt amount in token base units.","examples":["500000000"]},"borrowed_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrowed Usd","description":"USD value of variable debt.","examples":["500"]},"collateral_enabled":{"type":"boolean","title":"Collateral Enabled","description":"Whether the supplied balance is enabled as collateral.","default":false},"can_be_collateral":{"type":"boolean","title":"Can Be Collateral","description":"Whether the reserve supports collateral usage.","default":false},"supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Apy","description":"Current supply APY as a decimal ratio.","examples":["0.031"]},"borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Apy","description":"Current variable borrow APY as a decimal ratio.","examples":["0.052"]}},"additionalProperties":true,"type":"object","required":["market_address","asset"],"title":"AaveV3AccountPosition"},"AaveV3AccountPositions":{"properties":{"wallet_address":{"type":"string","title":"Wallet Address","description":"Wallet address whose lending positions were queried.","examples":["0x821880a3E2bac432d67E5155e72BB655Ef65fa5E"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the returned positions.","default":"base","examples":["base"]},"protocol":{"type":"string","const":"aave_v3","title":"Protocol","description":"Aave V3 product discriminator.","default":"aave_v3"},"summary":{"$ref":"#/components/schemas/AaveV3AccountSummary","description":"Aave account health and USD aggregates."},"positions":{"items":{"$ref":"#/components/schemas/AaveV3AccountPosition"},"type":"array","title":"Positions","description":"Aave V3 reserve positions matching the requested filter."},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"Partial-data warnings returned while querying Aave V3."},"source":{"items":{"$ref":"#/components/schemas/LendingSource"},"type":"array","title":"Source","description":"Aave V3 source metadata."}},"additionalProperties":true,"type":"object","required":["wallet_address","summary"],"title":"AaveV3AccountPositions"},"AaveV3AccountResult":{"properties":{"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"Partial-data warnings returned while querying this protocol."},"source":{"items":{"$ref":"#/components/schemas/LendingSource"},"type":"array","title":"Source","description":"Source metadata for this protocol result."},"protocol":{"type":"string","const":"aave_v3","title":"Protocol","description":"Aave V3 protocol discriminator.","default":"aave_v3"},"summary":{"$ref":"#/components/schemas/AaveV3AccountSummary","description":"Aave account health and USD aggregates."},"positions":{"items":{"$ref":"#/components/schemas/AaveV3AccountPosition"},"type":"array","title":"Positions","description":"Aave V3 positions matching the requested filter."}},"additionalProperties":true,"type":"object","required":["summary"],"title":"AaveV3AccountResult"},"AaveV3AccountSummary":{"properties":{"supplied_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplied Usd","description":"Combined USD value supplied across returned Aave positions.","examples":["1000"]},"borrowed_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrowed Usd","description":"Combined USD value borrowed across returned Aave positions.","examples":["500"]},"net_worth_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Worth Usd","description":"Aave account net worth in USD when exactly one market is returned; otherwise use market_summaries.","examples":["500"]},"total_collateral_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Collateral Usd","description":"Collateral value used by Aave account health calculations.","examples":["900"]},"total_debt_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Debt Usd","description":"Debt value used by Aave account health calculations.","examples":["500"]},"available_borrows_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Borrows Usd","description":"Remaining borrowing power in USD.","examples":["150"]},"health_factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Factor","description":"Aave account health factor; null when there is no active debt.","examples":["1.82"]},"ltv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ltv","description":"Current account-level loan-to-value ratio.","examples":["0.55"]},"liquidation_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Threshold","description":"Current account-level liquidation threshold.","examples":["0.78"]},"net_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Apy","description":"Net APY across the Aave account.","examples":["0.012"]},"e_mode_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"E Mode Enabled","description":"Whether Aave efficiency mode is enabled when exactly one market is returned."},"market_count":{"type":"integer","title":"Market Count","description":"Number of Aave markets with account state.","default":0,"examples":[1]},"market_summaries":{"items":{"$ref":"#/components/schemas/AaveV3MarketAccountSummary"},"type":"array","title":"Market Summaries","description":"Account health and risk metrics grouped by Aave market."}},"additionalProperties":true,"type":"object","title":"AaveV3AccountSummary"},"AaveV3MarketAccountSummary":{"properties":{"market_address":{"type":"string","title":"Market Address","description":"Aave market contract address.","examples":["0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"]},"market_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Name","description":"Aave market display name.","examples":["Aave V3 Base"]},"net_worth_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Worth Usd","description":"User net worth in this Aave market, in USD.","examples":["500"]},"total_collateral_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Collateral Usd","description":"Collateral value in this Aave market, in USD.","examples":["900"]},"total_debt_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Debt Usd","description":"Debt value in this Aave market, in USD.","examples":["500"]},"available_borrows_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Borrows Usd","description":"Remaining borrowing power in this Aave market, in USD.","examples":["150"]},"health_factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Health Factor","description":"Health factor for this Aave market.","examples":["1.82"]},"ltv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ltv","description":"Account loan-to-value ratio in this Aave market.","examples":["0.55"]},"liquidation_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Threshold","description":"Account liquidation threshold in this Aave market.","examples":["0.78"]},"net_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Apy","description":"Net account APY in this Aave market.","examples":["0.012"]},"e_mode_enabled":{"type":"boolean","title":"E Mode Enabled","description":"Whether efficiency mode is enabled in this Aave market.","default":false}},"additionalProperties":true,"type":"object","required":["market_address"],"title":"AaveV3MarketAccountSummary"},"AaveV3VariableRateMarket":{"properties":{"market_id":{"type":"string","title":"Market Id","description":"Stable product-specific variable-rate market ID.","examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the market.","default":"base","examples":["base"]},"chain_id":{"type":"integer","title":"Chain Id","description":"EVM chain ID. Base mainnet is 8453.","default":8453,"examples":[8453]},"loan_asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset supplied and borrowed in this market or reserve."},"total_supplied":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied","description":"Total supplied amount in token base units.","examples":["1000000000000"]},"total_supplied_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied Usd","description":"USD value of total supplied assets.","examples":["1000000"]},"total_borrowed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed","description":"Total borrowed amount in token base units.","examples":["650000000000"]},"total_borrowed_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed Usd","description":"USD value of total borrowed assets.","examples":["650000"]},"available_liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity","description":"Available liquidity in token base units.","examples":["350000000000"]},"available_liquidity_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity Usd","description":"USD value of available liquidity.","examples":["350000"]},"utilization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utilization","description":"Borrowed-to-supplied utilization ratio.","examples":["0.65"]},"supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Apy","description":"Current gross supply APY as a decimal ratio.","examples":["0.031"]},"borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Apy","description":"Current gross variable borrow APY as a decimal ratio.","examples":["0.052"]},"rewards":{"anyOf":[{"items":{"$ref":"#/components/schemas/LendingReward"},"type":"array"},{"type":"null"}],"title":"Rewards","description":"Reward programs attached to the market or reserve. Null means the upstream response did not expose reward data; an empty list means reward data was queried and no programs were returned."},"protocol":{"type":"string","const":"aave_v3","title":"Protocol","description":"Aave V3 product discriminator.","default":"aave_v3"},"market_address":{"type":"string","title":"Market Address","description":"Aave V3 Pool contract address.","examples":["0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"]},"a_token":{"$ref":"#/components/schemas/LendingAsset","description":"Interest-bearing aToken for supplied assets."},"variable_debt_token":{"$ref":"#/components/schemas/LendingAsset","description":"Variable debt token for borrowed assets."},"asset_price_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Price Usd","description":"Current underlying asset price in USD.","examples":["0.9999"]},"oracle_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oracle Address","description":"USD oracle address used for the reserve.","examples":["0xf52D010c7d4ecBfda92c2509900593CE34535D86"]},"interest_rate_strategy_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interest Rate Strategy Address","description":"Aave variable interest-rate strategy contract.","examples":["0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5"]},"ltv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ltv","description":"Maximum collateral loan-to-value ratio.","examples":["0.75"]},"liquidation_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Threshold","description":"Collateral liquidation threshold ratio.","examples":["0.78"]},"liquidation_bonus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Bonus","description":"Liquidator bonus ratio.","examples":["0.05"]},"reserve_factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reserve Factor","description":"Share of borrower interest retained by the Aave reserve.","examples":["0.10"]},"supply_cap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Cap","description":"Supply cap in token base units.","examples":["230000000000000"]},"borrow_cap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Cap","description":"Borrow cap in token base units.","examples":["207000000000000"]},"supply_cap_reached":{"type":"boolean","title":"Supply Cap Reached","description":"Whether the reserve supply cap has been reached.","default":false},"borrow_cap_reached":{"type":"boolean","title":"Borrow Cap Reached","description":"Whether the reserve borrow cap has been reached.","default":false},"collateral_enabled":{"type":"boolean","title":"Collateral Enabled","description":"Whether supplied assets can be used as collateral."},"borrowing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrowing State","description":"Aave reserve borrowing state.","examples":["ENABLED"]},"is_frozen":{"type":"boolean","title":"Is Frozen","description":"Whether new supply and borrow operations are frozen."},"is_paused":{"type":"boolean","title":"Is Paused","description":"Whether reserve operations are paused."},"flash_loan_enabled":{"type":"boolean","title":"Flash Loan Enabled","description":"Whether flash loans are enabled for the reserve."},"permit_supported":{"type":"boolean","title":"Permit Supported","description":"Whether permit-based approvals are supported."}},"additionalProperties":true,"type":"object","required":["market_id","market_address","a_token","variable_debt_token","collateral_enabled","is_frozen","is_paused","flash_loan_enabled","permit_supported"],"title":"AaveV3VariableRateMarket"},"AaveV3VariableRateMarketDetail":{"properties":{"market_id":{"type":"string","title":"Market Id","description":"Stable product-specific variable-rate market ID.","examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the market.","default":"base","examples":["base"]},"chain_id":{"type":"integer","title":"Chain Id","description":"EVM chain ID. Base mainnet is 8453.","default":8453,"examples":[8453]},"loan_asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset supplied and borrowed in this market or reserve."},"total_supplied":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied","description":"Total supplied amount in token base units.","examples":["1000000000000"]},"total_supplied_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied Usd","description":"USD value of total supplied assets.","examples":["1000000"]},"total_borrowed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed","description":"Total borrowed amount in token base units.","examples":["650000000000"]},"total_borrowed_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed Usd","description":"USD value of total borrowed assets.","examples":["650000"]},"available_liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity","description":"Available liquidity in token base units.","examples":["350000000000"]},"available_liquidity_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity Usd","description":"USD value of available liquidity.","examples":["350000"]},"utilization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utilization","description":"Borrowed-to-supplied utilization ratio.","examples":["0.65"]},"supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Apy","description":"Current gross supply APY as a decimal ratio.","examples":["0.031"]},"borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Apy","description":"Current gross variable borrow APY as a decimal ratio.","examples":["0.052"]},"rewards":{"anyOf":[{"items":{"$ref":"#/components/schemas/LendingReward"},"type":"array"},{"type":"null"}],"title":"Rewards","description":"Reward programs attached to the market or reserve. Null means the upstream response did not expose reward data; an empty list means reward data was queried and no programs were returned."},"protocol":{"type":"string","const":"aave_v3","title":"Protocol","description":"Aave V3 product discriminator.","default":"aave_v3"},"market_address":{"type":"string","title":"Market Address","description":"Aave V3 Pool contract address.","examples":["0xA238Dd80C259a72e81d7e4664a9801593F98d1c5"]},"a_token":{"$ref":"#/components/schemas/LendingAsset","description":"Interest-bearing aToken for supplied assets."},"variable_debt_token":{"$ref":"#/components/schemas/LendingAsset","description":"Variable debt token for borrowed assets."},"asset_price_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Price Usd","description":"Current underlying asset price in USD.","examples":["0.9999"]},"oracle_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oracle Address","description":"USD oracle address used for the reserve.","examples":["0xf52D010c7d4ecBfda92c2509900593CE34535D86"]},"interest_rate_strategy_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interest Rate Strategy Address","description":"Aave variable interest-rate strategy contract.","examples":["0x86AB1C62A8bf868E1b3E1ab87d587Aba6fbCbDC5"]},"ltv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ltv","description":"Maximum collateral loan-to-value ratio.","examples":["0.75"]},"liquidation_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Threshold","description":"Collateral liquidation threshold ratio.","examples":["0.78"]},"liquidation_bonus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Bonus","description":"Liquidator bonus ratio.","examples":["0.05"]},"reserve_factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reserve Factor","description":"Share of borrower interest retained by the Aave reserve.","examples":["0.10"]},"supply_cap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Cap","description":"Supply cap in token base units.","examples":["230000000000000"]},"borrow_cap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Cap","description":"Borrow cap in token base units.","examples":["207000000000000"]},"supply_cap_reached":{"type":"boolean","title":"Supply Cap Reached","description":"Whether the reserve supply cap has been reached.","default":false},"borrow_cap_reached":{"type":"boolean","title":"Borrow Cap Reached","description":"Whether the reserve borrow cap has been reached.","default":false},"collateral_enabled":{"type":"boolean","title":"Collateral Enabled","description":"Whether supplied assets can be used as collateral."},"borrowing_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrowing State","description":"Aave reserve borrowing state.","examples":["ENABLED"]},"is_frozen":{"type":"boolean","title":"Is Frozen","description":"Whether new supply and borrow operations are frozen."},"is_paused":{"type":"boolean","title":"Is Paused","description":"Whether reserve operations are paused."},"flash_loan_enabled":{"type":"boolean","title":"Flash Loan Enabled","description":"Whether flash loans are enabled for the reserve."},"permit_supported":{"type":"boolean","title":"Permit Supported","description":"Whether permit-based approvals are supported."},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for this Aave reserve."}},"additionalProperties":true,"type":"object","required":["market_id","market_address","a_token","variable_debt_token","collateral_enabled","is_frozen","is_paused","flash_loan_enabled","permit_supported","source"],"title":"AaveV3VariableRateMarketDetail"},"AccountLendingProtocol":{"type":"string","enum":["All","morpho_blue","morpho_midnight","aave_v3"],"title":"AccountLendingProtocol"},"AccountProtocolError":{"properties":{"protocol":{"type":"string","enum":["morpho_blue","morpho_midnight","aave_v3"],"title":"Protocol","description":"Protocol whose account query failed."},"code":{"type":"string","title":"Code","description":"Stable provider or application error code.","examples":["morpho_timeout"]},"message":{"type":"string","title":"Message","description":"Human-readable failure description."},"retryable":{"type":"boolean","title":"Retryable","description":"Whether retrying the failed protocol may succeed.","default":false}},"additionalProperties":true,"type":"object","required":["protocol","code","message"],"title":"AccountProtocolError"},"AllLendingAccountPositions":{"properties":{"wallet_address":{"type":"string","title":"Wallet Address","description":"Wallet address whose lending positions were queried.","examples":["0x821880a3E2bac432d67E5155e72BB655Ef65fa5E"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the returned positions.","default":"base","examples":["base"]},"protocol":{"type":"string","const":"All","title":"Protocol","description":"Discriminator for a query across every supported lending protocol.","default":"All"},"partial":{"type":"boolean","title":"Partial","description":"Whether one or more protocol queries failed while at least one succeeded.","default":false},"results":{"items":{"oneOf":[{"$ref":"#/components/schemas/MorphoBlueAccountResult"},{"$ref":"#/components/schemas/MorphoMidnightAccountResult"},{"$ref":"#/components/schemas/AaveV3AccountResult"}],"discriminator":{"propertyName":"protocol","mapping":{"aave_v3":"#/components/schemas/AaveV3AccountResult","morpho_blue":"#/components/schemas/MorphoBlueAccountResult","morpho_midnight":"#/components/schemas/MorphoMidnightAccountResult"}}},"type":"array","title":"Results","description":"One independently queried result for each supported lending protocol. Wallet and network are inherited from the outer response."},"errors":{"items":{"$ref":"#/components/schemas/AccountProtocolError"},"type":"array","title":"Errors","description":"Per-protocol failures omitted from results."}},"additionalProperties":true,"type":"object","required":["wallet_address","results"],"title":"AllLendingAccountPositions"},"AuthCredentialData":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Credential type","examples":["api_key"]},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Credential ID","examples":["ak_2nteFTKhWlptVfoV"]},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"OAuth client ID when available"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope","description":"OAuth scope when available"},"resource":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource","description":"OAuth resource when available","examples":["dataline-data-api"]}},"additionalProperties":true,"type":"object","title":"AuthCredentialData"},"AuthDecisionData":{"properties":{"active":{"type":"boolean","title":"Active","description":"Whether the credential is active"},"allowed":{"type":"boolean","title":"Allowed","description":"Whether control-api allowed the auth check"},"principal":{"anyOf":[{"$ref":"#/components/schemas/AuthPrincipalData"},{"type":"null"}],"description":"Authenticated principal"},"credential":{"anyOf":[{"$ref":"#/components/schemas/AuthCredentialData"},{"type":"null"}],"description":"Presented credential"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles","description":"Role keys granted to the principal"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","description":"Permission keys granted to the principal","examples":[["control.me.read","data.crypto.price.read"]]},"matched_permissions":{"items":{"type":"string"},"type":"array","title":"Matched Permissions","description":"Permission keys matched for this specific check"},"deny_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deny Reason","description":"Reason when active or allowed is false"},"cache_ttl_seconds":{"type":"integer","title":"Cache Ttl Seconds","description":"Suggested auth decision cache TTL","default":0}},"additionalProperties":true,"type":"object","required":["active","allowed"],"title":"AuthDecisionData"},"AuthPrincipalData":{"properties":{"subject_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Type","description":"Principal subject type","examples":["user"]},"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id","description":"Principal subject ID","examples":["usr_25Qt4aOb2q6_11rq"]},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Principal status","examples":["active"]},"jti":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jti","description":"OAuth JWT ID when available","examples":["jti_7QxUl0OyXSEZ0JCu"]},"token_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token Type","description":"Credential token type","examples":["api_key"]},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id","description":"OAuth client ID when available"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope","description":"OAuth scope when available"},"resource":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource","description":"OAuth resource when available","examples":["dataline-data-api"]}},"additionalProperties":true,"type":"object","title":"AuthPrincipalData"},"BlueAccountPosition":{"properties":{"product":{"type":"string","title":"Product","description":"Morpho product for this position.","default":"Blue","examples":["Blue"]},"position_types":{"items":{"$ref":"#/components/schemas/LendingPositionType"},"type":"array","title":"Position Types","description":"Non-zero position roles held in the market.","examples":[["Supply","Collateral"]]},"market":{"$ref":"#/components/schemas/LendingPositionMarket","description":"Blue market associated with the position."},"supply_shares":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Shares","description":"Supply shares owned by the wallet.","examples":["1000000000"]},"supply_assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Assets","description":"Underlying supplied assets in base units.","examples":["1010000000"]},"supply_assets_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Assets Usd","description":"USD value of supplied assets.","examples":["1010"]},"borrow_shares":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Shares","description":"Borrow shares owed by the wallet.","examples":["500000000"]},"borrow_assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Assets","description":"Underlying borrowed assets in base units.","examples":["505000000"]},"borrow_assets_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Assets Usd","description":"USD value of borrowed assets.","examples":["505"]},"collateral":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collateral","description":"Collateral amount in collateral-token base units.","examples":["1000000000000000000"]},"collateral_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collateral Usd","description":"USD value of collateral.","examples":["3000"]}},"additionalProperties":true,"type":"object","required":["market"],"title":"BlueAccountPosition"},"CexAnnouncementCategory":{"type":"string","enum":["All","listing","delisting","roadmap","maintenance","incident","futures","airdrop","launchpool","vote","deposit_withdrawal","api_update","earn","event","trading_update","fiat","web3","product_update","risk_warning","disclosure","general"],"title":"CexAnnouncementCategory"},"CexAnnouncementSource":{"type":"string","enum":["All","binance","bithumb","bybit","coinbase","hyperliquid","okx","upbit"],"title":"CexAnnouncementSource"},"CexSpotVenue":{"type":"string","enum":["binance","bybit","coinbase","okx"],"title":"CexSpotVenue"},"ConfidenceFactor":{"properties":{"factor":{"type":"string","title":"Factor"},"score":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Score"},"weight":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Weight"},"detail":{"type":"string","title":"Detail"}},"additionalProperties":false,"type":"object","required":["factor","score","weight","detail"],"title":"ConfidenceFactor"},"CryptoPriceResult":{"properties":{"reference_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Reference Price"},"reference_quote":{"type":"string","title":"Reference Quote"},"unavailable_venues":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Unavailable Venues"},"snapshots":{"items":{"$ref":"#/components/schemas/PriceSnapshot"},"type":"array","title":"Snapshots"},"confidence":{"anyOf":[{"$ref":"#/components/schemas/PriceConfidenceResult"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["reference_quote"],"title":"CryptoPriceResult"},"CurrentAuthUserData":{"properties":{"decision":{"$ref":"#/components/schemas/AuthDecisionData","description":"Control-api auth decision"},"me":{"anyOf":[{"$ref":"#/components/schemas/CurrentUserProfileData"},{"type":"null"}],"description":"Current user details when credential is valid"},"profile_deny_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Deny Reason","description":"Reason user profile is unavailable, for example missing_credential or invalid_credential"}},"additionalProperties":true,"type":"object","required":["decision"],"title":"CurrentAuthUserData"},"CurrentUserData":{"properties":{"id":{"type":"string","title":"Id","description":"User ID","examples":["usr_25Qt4aOb2q6_11rq"]},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Primary email when available","examples":["user@example.com"]},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name","description":"Display name","examples":["0x30bb...d1f6"]},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"User status","examples":["active"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"User creation time as ISO 8601 string"}},"additionalProperties":true,"type":"object","required":["id"],"title":"CurrentUserData"},"CurrentUserProfileData":{"properties":{"user":{"$ref":"#/components/schemas/CurrentUserData","description":"Current user profile"},"principal":{"$ref":"#/components/schemas/AuthPrincipalData","description":"Current principal"},"identities":{"items":{"$ref":"#/components/schemas/IdentityData"},"type":"array","title":"Identities","description":"Linked identities"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles","description":"Role keys granted to the user"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","description":"Permission keys granted to the user"},"entitlements":{"items":{"$ref":"#/components/schemas/EntitlementData"},"type":"array","title":"Entitlements","description":"Active user entitlements"},"capabilities":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Capabilities","description":"Capability flags exposed by control-api","examples":[{"data.crypto.price":true,"data.prediction.events":true}]}},"additionalProperties":true,"type":"object","required":["user","principal"],"title":"CurrentUserProfileData"},"DefiBaseDex":{"type":"string","enum":["aerodrome-base","aerodrome-slipstream","aerodrome-slipstream-2","uniswap-v3-base","pancakeswap-v3-base","baseswap","sushiswap-v3-base","alien-base","balancer-base","maverick-protocol-base"],"title":"DefiBaseDex"},"DefiNetwork":{"type":"string","enum":["base"],"title":"DefiNetwork"},"DefiPoolSearchItem":{"properties":{"pool_id":{"type":"string","title":"Pool Id","description":"Pool ID"},"network":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network","description":"Network ID"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Pool contract address"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Pool display name"},"dex_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dex Id","description":"DEX ID"},"base_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Token Id","description":"Base token relationship ID"},"quote_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Token Id","description":"Quote token relationship ID"},"base_token_price_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Token Price Usd","description":"Base-token price in USD"},"base_token_price_native_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Token Price Native Currency","description":"Base-token price in the network native currency"},"quote_token_price_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Token Price Usd","description":"Quote-token price in USD"},"quote_token_price_native_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Token Price Native Currency","description":"Quote-token price in the network native currency"},"base_token_price_quote_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Token Price Quote Token","description":"Base-token price denominated in the quote token"},"quote_token_price_base_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Token Price Base Token","description":"Quote-token price denominated in the base token"},"pool_created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Created At","description":"Pool creation time in ISO 8601 format"},"fdv_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fdv Usd","description":"Fully diluted valuation in USD"},"market_cap_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Cap Usd","description":"Market capitalization in USD"},"reserve_in_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reserve In Usd","description":"Total pool reserve in USD"}},"additionalProperties":true,"type":"object","required":["pool_id"],"title":"DefiPoolSearchItem"},"DefiPoolSort":{"type":"string","enum":["fdv_usd_asc","fdv_usd_desc","reserve_in_usd_asc","reserve_in_usd_desc","price_asc","price_desc","pool_created_at_desc"],"title":"DefiPoolSort"},"DerivativesMetric":{"properties":{"market":{"$ref":"#/components/schemas/NormalizedMarket"},"source":{"$ref":"#/components/schemas/SourceProvenance"},"last":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Last"},"bid":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Bid"},"ask":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Ask"},"mark":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Mark"},"index":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Index"},"funding_rate":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Funding Rate"},"next_funding_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Funding Time"},"open_interest":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Open Interest"},"open_interest_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Open Interest Usd"},"volume_24h":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Volume 24H"},"basis_bps":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Basis Bps"},"basis_abs":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Basis Abs"},"funding_interval_hours":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Funding Interval Hours"},"annualized_funding_rate_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annualized Funding Rate Pct"}},"additionalProperties":false,"type":"object","required":["market","source"],"title":"DerivativesMetric"},"DerivativesVenue":{"type":"string","enum":["binance","bybit","hyperliquid","okx"],"title":"DerivativesVenue"},"DexChain":{"type":"string","enum":["ethereum","base","arbitrum","optimism","polygon","bsc","solana"],"title":"DexChain"},"DexVenue":{"type":"string","enum":["dexscreener","geckoterminal"],"title":"DexVenue"},"EntitlementData":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Entitlement ID","examples":["plan.free.crypto_price"]},"feature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature","description":"Feature key alias","examples":["crypto_price"]},"feature_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Key","description":"Feature key","examples":["crypto_price"]},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label","description":"Human-readable feature label","examples":["Crypto spot prices"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Feature description"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled","description":"Whether the entitlement is enabled"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Feature metadata"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order","description":"Display sort order","examples":[10]},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Entitlement status","examples":["active"]},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Legacy or upstream source when available"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type","description":"Entitlement source type","examples":["subscription"]},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id","description":"Entitlement source ID","examples":["sub_7-jN2HXxjDXvkIT1"]},"starts_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Starts At","description":"Entitlement start time as ISO 8601 string"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At","description":"Entitlement expiration time as ISO 8601 string"},"revoked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked At","description":"Entitlement revocation time as ISO 8601 string"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"Entitlement creation time as ISO 8601 string"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At","description":"Entitlement update time as ISO 8601 string"},"plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id","description":"Plan ID when entitlement comes from a plan","examples":["plan.free"]}},"additionalProperties":true,"type":"object","title":"EntitlementData"},"ExchangeAnnouncementListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExchangeAnnouncementResponse"},"type":"array","title":"Items","description":"Announcements"},"page":{"type":"integer","title":"Page","description":"Page number"},"limit":{"type":"integer","title":"Limit","description":"Page size"},"count":{"type":"integer","title":"Count","description":"Returned item count"},"has_more":{"type":"boolean","title":"Has More","description":"Whether more results are available"}},"type":"object","required":["items","page","limit","count","has_more"],"title":"ExchangeAnnouncementListResponse"},"ExchangeAnnouncementResponse":{"properties":{"id":{"type":"integer","title":"Id","description":"Internal announcement ID"},"source":{"type":"string","title":"Source","description":"Announcement source exchange"},"external_id":{"type":"string","title":"External Id","description":"Source announcement ID"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"Announcement slug"},"category_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Category Id","description":"Normalized category ID"},"category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Name","description":"Normalized category name"},"source_category_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Category Id","description":"Source category ID"},"source_category_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Category Name","description":"Source category name"},"title":{"type":"string","title":"Title","description":"Announcement title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Announcement summary"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"Announcement content, returned only when requested or in detail"},"web_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Web Url","description":"Source web URL"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At","description":"Published time in ISO 8601 UTC format"},"announced_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Announced At","description":"Best available announcement time in ISO 8601 UTC format"},"status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status","description":"Announcement status"},"risk_warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Warning","description":"Risk warning text"}},"type":"object","required":["id","source","external_id","title"],"title":"ExchangeAnnouncementResponse"},"FixedMarketSort":{"type":"string","enum":["maturity","totalUnits"],"title":"FixedMarketSort"},"FixedRateAccountPosition":{"properties":{"product":{"type":"string","title":"Product","description":"Morpho product for this position.","default":"Midnight","examples":["Midnight"]},"position_types":{"items":{"$ref":"#/components/schemas/LendingPositionType"},"type":"array","title":"Position Types","description":"Normalized role held in the fixed-rate position.","examples":[["Lend"]]},"chain_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chain Id","description":"Chain ID associated with the position.","examples":[8453]},"market_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Id","description":"Globally unique Midnight market ID.","examples":["0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614"]},"user_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Address","description":"Wallet address that owns the position.","examples":["0x821880a3E2bac432d67E5155e72BB655Ef65fa5E"]},"loan_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loan Token","description":"Loan-token contract address.","examples":["0x4200000000000000000000000000000000000006"]},"maturity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maturity","description":"Market maturity time in ISO 8601 format.","examples":["2026-06-12T11:00:00Z"]},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Native Midnight position type: lend, borrow, or collateral_only.","examples":["lend"]},"credit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit","description":"Credit units held by a lender.","examples":["1000000000000000"]},"pending_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Fee","description":"Accrued but unsettled fee amount.","examples":["0"]},"last_loss_factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Loss Factor","description":"Previous loss factor reported by Midnight.","examples":["0"]},"loss_factor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loss Factor","description":"Current loss factor reported by Midnight.","examples":["0"]},"debt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Debt","description":"Debt units owed by a borrower.","examples":["0"]},"cost_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cost Basis","description":"Average-cost basis in loan-token WAD units; may be unavailable.","examples":["950000000000000000000000000000000"]},"effective_rate_wad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Rate Wad","description":"Annualized effective rate in WAD units; may be unavailable.","examples":["52000000000000000"]},"collaterals":{"items":{"$ref":"#/components/schemas/FixedRatePositionCollateral"},"type":"array","title":"Collaterals","description":"Collateral balances held by the position."}},"additionalProperties":true,"type":"object","title":"FixedRateAccountPosition"},"FixedRateCollateral":{"properties":{"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token","description":"Collateral token contract address.","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},"oracle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oracle","description":"Oracle contract used to value this collateral.","examples":["0xD09048c8B568Dbf5f189302beA26c9edABFC4858"]},"lltv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lltv","description":"Liquidation loan-to-value ratio normalized to a decimal ratio.","examples":["0.86"]},"lltv_wad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lltv Wad","description":"Raw LLTV value in 18-decimal WAD units.","examples":["860000000000000000"]},"liquidation_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Cursor","description":"Normalized liquidation cursor ratio.","examples":["1"]},"liquidation_cursor_wad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidation Cursor Wad","description":"Raw liquidation cursor in 18-decimal WAD units.","examples":["1000000000000000000"]}},"additionalProperties":true,"type":"object","title":"FixedRateCollateral"},"FixedRateMarket":{"properties":{"protocol":{"type":"string","const":"morpho_midnight","title":"Protocol","description":"Morpho Midnight product discriminator.","default":"morpho_midnight"},"market_id":{"type":"string","title":"Market Id","description":"Globally unique Morpho Midnight market ID.","examples":["0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614"]},"loan_asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loan Asset","description":"Loan-token contract address.","examples":["0x4200000000000000000000000000000000000006"]},"collaterals":{"items":{"$ref":"#/components/schemas/FixedRateCollateral"},"type":"array","title":"Collaterals","description":"Collateral configurations accepted by the market."},"maturity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maturity","description":"Market maturity time in ISO 8601 format.","examples":["2026-06-12T11:00:00Z"]},"listed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Listed","description":"Whether the market is listed; absent on detail responses when upstream does not provide it.","examples":[true]},"total_units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Units","description":"Total credit/debt units currently outstanding.","examples":["1000301090628280"]},"time_to_maturity_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time To Maturity Seconds","description":"Non-negative seconds remaining until maturity.","examples":[86400]},"is_matured":{"type":"boolean","title":"Is Matured","description":"Whether the maturity time has passed.","examples":[false]}},"additionalProperties":true,"type":"object","required":["market_id","is_matured"],"title":"FixedRateMarket"},"FixedRateMarketDefinition":{"properties":{"chain_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chain Id","description":"Chain ID recorded in the immutable market definition.","examples":[8453]},"market_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Id","description":"Globally unique Midnight market ID.","examples":["0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614"]},"loan_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loan Token","description":"Loan-token contract address.","examples":["0x4200000000000000000000000000000000000006"]},"maturity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maturity","description":"Market maturity time in ISO 8601 format.","examples":["2026-06-12T11:00:00Z"]},"enter_gate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enter Gate","description":"Contract controlling entry into the market.","examples":["0x0000000000000000000000000000000000000000"]},"liquidator_gate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidator Gate","description":"Contract controlling who may liquidate positions.","examples":["0x0000000000000000000000000000000000000000"]},"collaterals":{"items":{"$ref":"#/components/schemas/FixedRateCollateral"},"type":"array","title":"Collaterals","description":"Immutable collateral configurations."}},"additionalProperties":true,"type":"object","title":"FixedRateMarketDefinition"},"FixedRateMarketDetail":{"properties":{"protocol":{"type":"string","const":"morpho_midnight","title":"Protocol","description":"Morpho Midnight product discriminator.","default":"morpho_midnight"},"market_id":{"type":"string","title":"Market Id","description":"Globally unique Morpho Midnight market ID.","examples":["0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614"]},"loan_asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Loan Asset","description":"Loan-token contract address.","examples":["0x4200000000000000000000000000000000000006"]},"collaterals":{"items":{"$ref":"#/components/schemas/FixedRateCollateral"},"type":"array","title":"Collaterals","description":"Collateral configurations accepted by the market."},"maturity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maturity","description":"Market maturity time in ISO 8601 format.","examples":["2026-06-12T11:00:00Z"]},"listed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Listed","description":"Whether the market is listed; absent on detail responses when upstream does not provide it.","examples":[true]},"total_units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Units","description":"Total credit/debt units currently outstanding.","examples":["1000301090628280"]},"time_to_maturity_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time To Maturity Seconds","description":"Non-negative seconds remaining until maturity.","examples":[86400]},"is_matured":{"type":"boolean","title":"Is Matured","description":"Whether the maturity time has passed.","examples":[false]},"best_bid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Best Bid","description":"Best borrower-side price in 18-decimal fixed-point units.","examples":["956937000000000000"]},"best_ask":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Best Ask","description":"Best lender-side price in 18-decimal fixed-point units.","examples":["952380952380952380"]},"implied_lend_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implied Lend Rate","description":"Annualized rate implied by the best ask price.","examples":["0.052"]},"implied_borrow_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implied Borrow Rate","description":"Annualized rate implied by the best bid price.","examples":["0.047"]},"bid_liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bid Liquidity","description":"Total loan-token assets represented by fetched bid levels.","examples":["7655497000"]},"ask_liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ask Liquidity","description":"Total loan-token assets represented by fetched ask levels.","examples":["9523809523"]},"market_definition":{"$ref":"#/components/schemas/FixedRateMarketDefinition","description":"Immutable Midnight market configuration."},"market_state":{"$ref":"#/components/schemas/FixedRateMarketState","description":"Latest available dynamic Midnight market state."},"orderbook":{"$ref":"#/components/schemas/FixedRateOrderbookData","description":"Top order-book levels used for detail metrics."},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"Partial-data warnings generated by Data API.","examples":[["Market state is currently unavailable."]]},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for this market."}},"additionalProperties":true,"type":"object","required":["market_id","is_matured","market_definition","market_state","orderbook","source"],"title":"FixedRateMarketDetail"},"FixedRateMarketPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FixedRateMarket"},"type":"array","title":"Items","description":"Fixed-rate markets in the current cursor page."},"count":{"type":"integer","title":"Count","description":"Number of markets returned in this page.","examples":[20]},"limit":{"type":"integer","title":"Limit","description":"Requested maximum number of markets.","examples":[20]},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor","description":"Cursor supplied for the current page.","examples":["eyJpZCI6IjEyMyJ9"]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Opaque cursor for the next page; null on the final page.","examples":["eyJpZCI6IjE0MyJ9"]},"has_more":{"type":"boolean","title":"Has More","description":"Whether another cursor page is available.","examples":[true]},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for this page."}},"additionalProperties":true,"type":"object","required":["items","count","limit","has_more","source"],"title":"FixedRateMarketPage"},"FixedRateMarketState":{"properties":{"chain_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chain Id","description":"Chain ID associated with the live state.","examples":[8453]},"market_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Id","description":"Globally unique Midnight market ID.","examples":["0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614"]},"last_indexed_block":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Indexed Block","description":"Latest block included in this state snapshot.","examples":[47457420]},"total_units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Units","description":"Total credit/debt units outstanding.","examples":["1000301090628280"]},"tick_granularity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tick Granularity","description":"Required multiple for valid order-book ticks.","examples":[4]},"settlement_fee_schedule":{"items":{"$ref":"#/components/schemas/FixedRateSettlementFee"},"type":"array","title":"Settlement Fee Schedule","description":"Settlement fee curve by time to maturity."},"current_settlement_fee_wad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Settlement Fee Wad","description":"Current settlement fee in WAD units.","examples":["0"]},"current_settlement_fee_cbp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Settlement Fee Cbp","description":"Current settlement fee in centibasis points.","examples":["0"]},"continuous_fee_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Continuous Fee Rate","description":"Per-second continuous fee rate in WAD units.","examples":["0"]}},"additionalProperties":true,"type":"object","title":"FixedRateMarketState"},"FixedRateOrderbook":{"properties":{"bids":{"items":{"$ref":"#/components/schemas/FixedRateOrderbookLevel"},"type":"array","title":"Bids","description":"Aggregated borrower-side price levels."},"asks":{"items":{"$ref":"#/components/schemas/FixedRateOrderbookLevel"},"type":"array","title":"Asks","description":"Aggregated lender-side price levels."},"time_to_maturity_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time To Maturity Seconds","description":"Non-negative seconds remaining until market maturity.","examples":[86400]},"rate_calculation":{"type":"string","title":"Rate Calculation","description":"Formula used to derive annualized rates from fixed-point prices.","examples":["(1 / (price / 1e18) - 1) * seconds_per_year / seconds_to_maturity"]},"fees_included":{"type":"boolean","title":"Fees Included","description":"Whether the derived rates include settlement or protocol fees.","default":false,"examples":[false]},"protocol":{"type":"string","const":"morpho_midnight","title":"Protocol","description":"Morpho Midnight product discriminator.","default":"morpho_midnight"},"market_id":{"type":"string","title":"Market Id","description":"Globally unique Midnight market ID.","examples":["0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614"]},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for this order book."}},"additionalProperties":true,"type":"object","required":["rate_calculation","market_id","source"],"title":"FixedRateOrderbook"},"FixedRateOrderbookData":{"properties":{"bids":{"items":{"$ref":"#/components/schemas/FixedRateOrderbookLevel"},"type":"array","title":"Bids","description":"Aggregated borrower-side price levels."},"asks":{"items":{"$ref":"#/components/schemas/FixedRateOrderbookLevel"},"type":"array","title":"Asks","description":"Aggregated lender-side price levels."},"time_to_maturity_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time To Maturity Seconds","description":"Non-negative seconds remaining until market maturity.","examples":[86400]},"rate_calculation":{"type":"string","title":"Rate Calculation","description":"Formula used to derive annualized rates from fixed-point prices.","examples":["(1 / (price / 1e18) - 1) * seconds_per_year / seconds_to_maturity"]},"fees_included":{"type":"boolean","title":"Fees Included","description":"Whether the derived rates include settlement or protocol fees.","default":false,"examples":[false]}},"additionalProperties":true,"type":"object","required":["rate_calculation"],"title":"FixedRateOrderbookData"},"FixedRateOrderbookLevel":{"properties":{"tick":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tick","description":"Discrete Midnight price tick.","examples":[42]},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price","description":"Order price in 18-decimal fixed-point units.","examples":["952380952380952380"]},"units":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Units","description":"Total credit/debt units available at this level.","examples":["10000000000"]},"assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assets","description":"Loan-token amount represented by this level, in base units.","examples":["9523809523"]},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count","description":"Number of offers aggregated at this level.","examples":[3]},"implied_annualized_rate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implied Annualized Rate","description":"Annualized rate derived from price and remaining maturity, as a decimal ratio.","examples":["0.052"]}},"additionalProperties":true,"type":"object","title":"FixedRateOrderbookLevel"},"FixedRatePositionCollateral":{"properties":{"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token","description":"Collateral token contract address.","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount","description":"Collateral amount in token base units.","examples":["2000000000"]}},"additionalProperties":true,"type":"object","title":"FixedRatePositionCollateral"},"FixedRateProtocol":{"type":"string","enum":["morpho_midnight"],"title":"FixedRateProtocol"},"FixedRateSettlementFee":{"properties":{"time_to_maturity_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time To Maturity Days","description":"Days to maturity represented by this fee schedule point.","examples":[30]},"fee_cbp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fee Cbp","description":"Settlement fee at this point in centibasis points.","examples":["400"]}},"additionalProperties":true,"type":"object","title":"FixedRateSettlementFee"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoricalPriceResult":{"properties":{"interval":{"type":"string","title":"Interval"},"unavailable_venues":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Unavailable Venues"},"series":{"items":{"$ref":"#/components/schemas/HistoricalPriceSeries"},"type":"array","title":"Series"}},"additionalProperties":false,"type":"object","required":["interval"],"title":"HistoricalPriceResult"},"HistoricalPriceSeries":{"properties":{"market":{"$ref":"#/components/schemas/NormalizedMarket"},"source":{"$ref":"#/components/schemas/SourceProvenance"},"interval":{"type":"string","title":"Interval"},"candles":{"items":{"$ref":"#/components/schemas/OhlcvCandle"},"type":"array","title":"Candles"}},"additionalProperties":false,"type":"object","required":["market","source","interval"],"title":"HistoricalPriceSeries"},"HistoricalVenue":{"type":"string","enum":["binance","bybit","coinbase","hyperliquid","okx"],"title":"HistoricalVenue"},"HistoryInterval":{"type":"string","enum":["hour","day","week","month","quarter","year"],"title":"HistoryInterval"},"IdentityData":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Identity ID","examples":["idn_Tfq7N-FKf6NS-rvz"]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider","description":"Identity provider","examples":["wallet"]},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Provider email when available","examples":["user@example.com"]},"email_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Verified","description":"Whether provider email is verified"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name","description":"Provider display name","examples":["Juicpt"]},"provider_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Handle","description":"Provider handle","examples":["Juicpt"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"Identity creation time as ISO 8601 string"}},"additionalProperties":true,"type":"object","title":"IdentityData"},"InvestorType":{"type":"string","enum":["project","organization","person","unknown"],"title":"InvestorType"},"LendingAccountPositions":{"oneOf":[{"$ref":"#/components/schemas/MorphoBlueAccountPositions"},{"$ref":"#/components/schemas/MorphoMidnightAccountPositions"},{"$ref":"#/components/schemas/AaveV3AccountPositions"},{"$ref":"#/components/schemas/AllLendingAccountPositions"}],"title":"LendingAccountPositions","discriminator":{"propertyName":"protocol","mapping":{"All":"#/components/schemas/AllLendingAccountPositions","aave_v3":"#/components/schemas/AaveV3AccountPositions","morpho_blue":"#/components/schemas/MorphoBlueAccountPositions","morpho_midnight":"#/components/schemas/MorphoMidnightAccountPositions"}}},"LendingAsset":{"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Asset contract address on Base.","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"]},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol","description":"Asset ticker symbol.","examples":["USDC"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Asset display name.","examples":["USD Coin"]},"decimals":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Decimals","description":"Number of token decimal places.","examples":[6]}},"additionalProperties":true,"type":"object","title":"LendingAsset"},"LendingChain":{"properties":{"id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Id","description":"EVM chain ID.","examples":[8453]}},"additionalProperties":true,"type":"object","title":"LendingChain"},"LendingHistory":{"properties":{"protocol":{"type":"string","title":"Protocol","description":"Lending protocol that supplied the history.","examples":["aave_v3"]},"market_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Id","description":"Product-specific variable-rate market ID.","examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"]},"vault_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vault Address","description":"Vault contract address for vault history.","examples":["0x04422053aDDbc9bB2759b248B574e3FCA76Bc145"]},"vault_version":{"anyOf":[{"$ref":"#/components/schemas/VaultDetailVersion"},{"type":"null"}],"description":"Vault generation for vault history.","examples":["V2"]},"metric":{"type":"string","title":"Metric","description":"Requested lending history metric.","examples":["supplyApy"]},"interval":{"$ref":"#/components/schemas/HistoryInterval","description":"Requested sampling interval.","examples":["day"]},"upstream_window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Window","description":"Provider-native history window used when the upstream API exposes fixed windows.","examples":["LAST_MONTH"]},"start_time":{"type":"string","title":"Start Time","description":"Inclusive history start time in ISO 8601 format.","examples":["2026-07-01T00:00:00Z"]},"end_time":{"type":"string","title":"End Time","description":"Inclusive history end time in ISO 8601 format.","examples":["2026-08-01T00:00:00Z"]},"points":{"items":{"$ref":"#/components/schemas/LendingHistoryPoint"},"type":"array","title":"Points","description":"Chronologically ordered history samples."},"value_unit":{"type":"string","title":"Value Unit","description":"Unit for every point value, such as ratio, usd, or underlying_asset.","examples":["ratio"]},"includes_rewards":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Includes Rewards","description":"Whether the APY metric includes reward incentives, when applicable.","examples":[true]},"fees_deducted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Fees Deducted","description":"Whether fees are already deducted from the APY metric, when applicable.","examples":[true]},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for the history query."}},"additionalProperties":true,"type":"object","required":["protocol","metric","interval","start_time","end_time","points","value_unit","source"],"title":"LendingHistory"},"LendingHistoryPoint":{"properties":{"timestamp":{"type":"string","title":"Timestamp","description":"ISO 8601 timestamp for the sample.","examples":["2026-08-01T00:00:00Z"]},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Metric value encoded as a decimal string to preserve precision.","examples":["0.042"]},"is_missing":{"type":"boolean","title":"Is Missing","description":"Whether the upstream provider returned no value for this timestamp.","default":false,"examples":[false]}},"additionalProperties":true,"type":"object","required":["timestamp"],"title":"LendingHistoryPoint"},"LendingOracle":{"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Oracle contract address.","examples":["0xD09048c8B568Dbf5f189302beA26c9edABFC4858"]},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Oracle implementation type reported by Morpho.","examples":["MorphoChainlinkOracleV2"]}},"additionalProperties":true,"type":"object","title":"LendingOracle"},"LendingPositionMarket":{"properties":{"marketId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketid","description":"Morpho Blue market ID.","examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"]},"loanAsset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset supplied or borrowed in the market."},"collateralAsset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset posted as collateral in the market."}},"additionalProperties":true,"type":"object","title":"LendingPositionMarket"},"LendingPositionSummary":{"properties":{"blue_supplied_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blue Supplied Usd","description":"Combined USD value supplied across returned Blue positions.","examples":["1010"]},"blue_borrowed_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blue Borrowed Usd","description":"Combined USD value borrowed across returned Blue positions.","examples":["505"]},"blue_collateral_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blue Collateral Usd","description":"Combined USD value of collateral across returned Blue positions.","examples":["3000"]},"vault_assets_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vault Assets Usd","description":"Combined USD value held across returned vault positions.","examples":["1000"]},"midnight_credit_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Midnight Credit Usd","description":"Combined Midnight credit in USD; currently unavailable because token prices are not joined.","examples":[null]},"midnight_debt_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Midnight Debt Usd","description":"Combined Midnight debt in USD; currently unavailable because token prices are not joined.","examples":[null]}},"additionalProperties":true,"type":"object","title":"LendingPositionSummary"},"LendingPositionType":{"type":"string","enum":["All","Supply","Borrow","Collateral","Lend"],"title":"LendingPositionType"},"LendingReward":{"properties":{"asset":{"anyOf":[{"$ref":"#/components/schemas/LendingRewardAsset"},{"type":"null"}],"description":"Token distributed by the reward program."},"supplyApr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplyapr","description":"Annual reward rate for suppliers, expressed as a decimal ratio.","examples":["0.0125"]},"borrowApr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrowapr","description":"Annual reward rate for borrowers, expressed as a decimal ratio.","examples":["0.004"]}},"additionalProperties":true,"type":"object","title":"LendingReward"},"LendingRewardAsset":{"properties":{"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Reward token contract address.","examples":["0xBAa5CC21fd487B8Fcc2F632f3F4E8D37262a0842"]},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol","description":"Reward token symbol.","examples":["MORPHO"]},"chain":{"anyOf":[{"$ref":"#/components/schemas/LendingChain"},{"type":"null"}],"description":"Chain associated with the reward token."}},"additionalProperties":true,"type":"object","title":"LendingRewardAsset"},"LendingSource":{"properties":{"protocol":{"type":"string","title":"Protocol","description":"Lending product identifier.","default":"morpho_blue","examples":["morpho_blue"]},"product":{"type":"string","title":"Product","description":"Upstream lending product that supplied the data.","examples":["Blue"]},"source_kind":{"type":"string","title":"Source Kind","description":"Kind of upstream source used for this response.","default":"official_api","examples":["official_api"]},"chain_id":{"type":"integer","title":"Chain Id","description":"EVM chain ID. Base mainnet is 8453.","default":8453,"examples":[8453]},"indexed_block":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Indexed Block","description":"Latest indexed block reported by the upstream source, when available.","examples":[47457420]},"source_timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Timestamp","description":"ISO 8601 timestamp reported by the upstream source, when available.","examples":["2026-08-04T08:00:00Z"]},"fetched_at":{"type":"string","title":"Fetched At","description":"ISO 8601 timestamp when Data API received the upstream response.","examples":["2026-08-04T08:00:00Z"]},"is_stale":{"type":"boolean","title":"Is Stale","description":"Whether the returned upstream snapshot is considered stale.","default":false,"examples":[false]}},"additionalProperties":true,"type":"object","required":["product","fetched_at"],"title":"LendingSource"},"LendingVault":{"properties":{"vault_address":{"type":"string","title":"Vault Address","description":"Vault contract address on Base.","examples":["0x04422053aDDbc9bB2759b248B574e3FCA76Bc145"]},"vault_version":{"$ref":"#/components/schemas/VaultDetailVersion","description":"Morpho vault generation.","examples":["V2"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Vault display name.","examples":["Steakhouse USDC"]},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol","description":"Vault share-token symbol.","examples":["steakUSDC"]},"asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Underlying asset deposited into the vault."},"listed":{"type":"boolean","title":"Listed","description":"Whether Morpho lists the vault in its official API.","examples":[true]},"total_assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Assets","description":"Total underlying assets managed by the vault, in base units.","examples":["2500000000000"]},"total_assets_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Assets Usd","description":"USD value of total assets managed by the vault.","examples":["2500000"]},"total_supply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supply","description":"Total outstanding vault share tokens in base units.","examples":["2400000000000"]},"liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidity","description":"Immediately withdrawable liquidity in underlying-asset base units.","examples":["500000000000"]},"liquidity_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidity Usd","description":"USD value of immediately withdrawable liquidity.","examples":["500000"]},"idle_assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idle Assets","description":"Vault V2 assets not allocated through adapters, in base units.","examples":["10000000"]},"idle_assets_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idle Assets Usd","description":"USD value of idle Vault V2 assets.","examples":["10"]},"native_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native Apy","description":"Vault APY before reward incentives, as a decimal ratio.","examples":["0.045"]},"net_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Apy","description":"Net vault APY reported by Morpho, as a decimal ratio.","examples":["0.052"]},"reward_apr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reward Apr","description":"Sum of vault reward APR values as a decimal ratio.","examples":["0.007"]},"performance_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Performance Fee","description":"Performance fee as a decimal ratio.","examples":["0.1"]},"management_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Management Fee","description":"Management fee as a decimal ratio.","examples":["0"]},"rewards":{"items":{"$ref":"#/components/schemas/LendingReward"},"type":"array","title":"Rewards","description":"Reward programs attached to the vault."},"allocations":{"items":{"$ref":"#/components/schemas/LendingVaultAllocation"},"type":"array","title":"Allocations","description":"Vault V1 market allocations or Vault V2 adapter allocations."},"warnings":{"items":{"$ref":"#/components/schemas/LendingWarning"},"type":"array","title":"Warnings","description":"Risk or configuration warnings supplied by Morpho."}},"additionalProperties":true,"type":"object","required":["vault_address","vault_version","listed"],"title":"LendingVault"},"LendingVaultAllocation":{"properties":{"supplyAssets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplyassets","description":"Vault V1 assets allocated to the Blue market, in base units.","examples":["1000000000"]},"supplyAssetsUsd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supplyassetsusd","description":"USD value of the Vault V1 market allocation.","examples":["1000"]},"market":{"anyOf":[{"$ref":"#/components/schemas/LendingVaultAllocationMarket"},{"type":"null"}],"description":"Blue market receiving a Vault V1 allocation."},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address","description":"Vault V2 adapter contract address.","examples":["0x1111111111111111111111111111111111111111"]},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Vault V2 adapter type.","examples":["MorphoMarketV1Adapter"]},"assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assets","description":"Assets managed by the Vault V2 adapter, in base units.","examples":["1000000000"]},"assetsUsd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assetsusd","description":"USD value managed by the Vault V2 adapter.","examples":["1000"]},"forceDeallocatePenalty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Forcedeallocatepenalty","description":"Penalty applied when forcibly deallocating from the adapter.","examples":["0"]}},"additionalProperties":true,"type":"object","title":"LendingVaultAllocation"},"LendingVaultAllocationMarket":{"properties":{"marketId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketid","description":"Morpho Blue market ID receiving the allocation.","examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"]}},"additionalProperties":true,"type":"object","title":"LendingVaultAllocationMarket"},"LendingVaultDetail":{"properties":{"vault_address":{"type":"string","title":"Vault Address","description":"Vault contract address on Base.","examples":["0x04422053aDDbc9bB2759b248B574e3FCA76Bc145"]},"vault_version":{"$ref":"#/components/schemas/VaultDetailVersion","description":"Morpho vault generation.","examples":["V2"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Vault display name.","examples":["Steakhouse USDC"]},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Symbol","description":"Vault share-token symbol.","examples":["steakUSDC"]},"asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Underlying asset deposited into the vault."},"listed":{"type":"boolean","title":"Listed","description":"Whether Morpho lists the vault in its official API.","examples":[true]},"total_assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Assets","description":"Total underlying assets managed by the vault, in base units.","examples":["2500000000000"]},"total_assets_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Assets Usd","description":"USD value of total assets managed by the vault.","examples":["2500000"]},"total_supply":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supply","description":"Total outstanding vault share tokens in base units.","examples":["2400000000000"]},"liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidity","description":"Immediately withdrawable liquidity in underlying-asset base units.","examples":["500000000000"]},"liquidity_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Liquidity Usd","description":"USD value of immediately withdrawable liquidity.","examples":["500000"]},"idle_assets":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idle Assets","description":"Vault V2 assets not allocated through adapters, in base units.","examples":["10000000"]},"idle_assets_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idle Assets Usd","description":"USD value of idle Vault V2 assets.","examples":["10"]},"native_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Native Apy","description":"Vault APY before reward incentives, as a decimal ratio.","examples":["0.045"]},"net_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Apy","description":"Net vault APY reported by Morpho, as a decimal ratio.","examples":["0.052"]},"reward_apr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reward Apr","description":"Sum of vault reward APR values as a decimal ratio.","examples":["0.007"]},"performance_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Performance Fee","description":"Performance fee as a decimal ratio.","examples":["0.1"]},"management_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Management Fee","description":"Management fee as a decimal ratio.","examples":["0"]},"rewards":{"items":{"$ref":"#/components/schemas/LendingReward"},"type":"array","title":"Rewards","description":"Reward programs attached to the vault."},"allocations":{"items":{"$ref":"#/components/schemas/LendingVaultAllocation"},"type":"array","title":"Allocations","description":"Vault V1 market allocations or Vault V2 adapter allocations."},"warnings":{"items":{"$ref":"#/components/schemas/LendingWarning"},"type":"array","title":"Warnings","description":"Risk or configuration warnings supplied by Morpho."},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for this vault."}},"additionalProperties":true,"type":"object","required":["vault_address","vault_version","listed","source"],"title":"LendingVaultDetail"},"LendingVaultPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LendingVault"},"type":"array","title":"Items","description":"Vaults in the current page."},"count":{"type":"integer","title":"Count","description":"Number of vaults returned in this page.","examples":[20]},"limit":{"type":"integer","title":"Limit","description":"Requested maximum number of vaults.","examples":[20]},"offset":{"type":"integer","title":"Offset","description":"Zero-based offset used for this page.","examples":[0]},"has_more":{"type":"boolean","title":"Has More","description":"Whether another offset page is available.","examples":[true]},"source":{"$ref":"#/components/schemas/LendingSource","description":"Primary upstream source metadata for this page."}},"additionalProperties":true,"type":"object","required":["items","count","limit","offset","has_more","source"],"title":"LendingVaultPage"},"LendingWarning":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Machine-readable warning type from Morpho.","examples":["hardcoded_oracle"]},"level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level","description":"Warning severity reported by Morpho.","examples":["warning"]}},"additionalProperties":true,"type":"object","title":"LendingWarning"},"MarketType":{"type":"string","enum":["spot","perpetual","future","dex_pool","aggregate","equity","etf","forex"],"title":"MarketType"},"MorphoBlueAccountPositions":{"properties":{"wallet_address":{"type":"string","title":"Wallet Address","description":"Wallet address whose lending positions were queried.","examples":["0x821880a3E2bac432d67E5155e72BB655Ef65fa5E"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the returned positions.","default":"base","examples":["base"]},"protocol":{"type":"string","const":"morpho_blue","title":"Protocol","description":"Morpho Blue product discriminator.","default":"morpho_blue"},"summary":{"$ref":"#/components/schemas/LendingPositionSummary","description":"Morpho Blue USD aggregates."},"blue_positions":{"items":{"$ref":"#/components/schemas/BlueAccountPosition"},"type":"array","title":"Blue Positions","description":"Morpho Blue positions matching the requested filters."},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"Partial-data warnings returned while querying Morpho Blue."},"source":{"items":{"$ref":"#/components/schemas/LendingSource"},"type":"array","title":"Source","description":"Morpho Blue source metadata."}},"additionalProperties":true,"type":"object","required":["wallet_address","summary"],"title":"MorphoBlueAccountPositions"},"MorphoBlueAccountResult":{"properties":{"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"Partial-data warnings returned while querying this protocol."},"source":{"items":{"$ref":"#/components/schemas/LendingSource"},"type":"array","title":"Source","description":"Source metadata for this protocol result."},"protocol":{"type":"string","const":"morpho_blue","title":"Protocol","description":"Morpho Blue protocol discriminator.","default":"morpho_blue"},"summary":{"$ref":"#/components/schemas/LendingPositionSummary","description":"Morpho Blue USD aggregates."},"blue_positions":{"items":{"$ref":"#/components/schemas/BlueAccountPosition"},"type":"array","title":"Blue Positions","description":"Morpho Blue positions matching the requested filter."}},"additionalProperties":true,"type":"object","required":["summary"],"title":"MorphoBlueAccountResult"},"MorphoBlueVariableRateMarket":{"properties":{"market_id":{"type":"string","title":"Market Id","description":"Stable product-specific variable-rate market ID.","examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the market.","default":"base","examples":["base"]},"chain_id":{"type":"integer","title":"Chain Id","description":"EVM chain ID. Base mainnet is 8453.","default":8453,"examples":[8453]},"loan_asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset supplied and borrowed in this market or reserve."},"total_supplied":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied","description":"Total supplied amount in token base units.","examples":["1000000000000"]},"total_supplied_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied Usd","description":"USD value of total supplied assets.","examples":["1000000"]},"total_borrowed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed","description":"Total borrowed amount in token base units.","examples":["650000000000"]},"total_borrowed_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed Usd","description":"USD value of total borrowed assets.","examples":["650000"]},"available_liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity","description":"Available liquidity in token base units.","examples":["350000000000"]},"available_liquidity_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity Usd","description":"USD value of available liquidity.","examples":["350000"]},"utilization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utilization","description":"Borrowed-to-supplied utilization ratio.","examples":["0.65"]},"supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Apy","description":"Current gross supply APY as a decimal ratio.","examples":["0.031"]},"borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Apy","description":"Current gross variable borrow APY as a decimal ratio.","examples":["0.052"]},"rewards":{"anyOf":[{"items":{"$ref":"#/components/schemas/LendingReward"},"type":"array"},{"type":"null"}],"title":"Rewards","description":"Reward programs attached to the market or reserve. Null means the upstream response did not expose reward data; an empty list means reward data was queried and no programs were returned."},"protocol":{"type":"string","const":"morpho_blue","title":"Protocol","description":"Morpho Blue product discriminator.","default":"morpho_blue"},"listed":{"type":"boolean","title":"Listed","description":"Whether Morpho lists the market in its official API.","examples":[true]},"collateral_asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset accepted as collateral in this market."},"lltv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lltv","description":"Liquidation loan-to-value ratio normalized to a decimal ratio.","examples":["0.86"]},"lltv_wad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lltv Wad","description":"Raw LLTV value in 18-decimal WAD units.","examples":["860000000000000000"]},"oracle":{"$ref":"#/components/schemas/LendingOracle","description":"Price oracle configured for the market."},"irm_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Irm Address","description":"Interest-rate model contract address.","examples":["0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC"]},"market_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Fee","description":"Protocol fee expressed as a decimal ratio.","examples":["0.1"]},"total_collateral":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Collateral","description":"Total collateral in collateral-token base units.","examples":["125000000000000000000"]},"total_collateral_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Collateral Usd","description":"USD value of total collateral.","examples":["312500.50"]},"average_supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Average Supply Apy","description":"Average gross supply APY reported by Morpho.","examples":["0.029"]},"net_supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Supply Apy","description":"Current supply APY after fees and incentives, as reported by Morpho.","examples":["0.036"]},"average_borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Average Borrow Apy","description":"Average gross borrow APY reported by Morpho.","examples":["0.05"]},"net_borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Borrow Apy","description":"Current borrow APY after incentives, as reported by Morpho.","examples":["0.048"]},"reward_apr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reward Apr","description":"Sum of supplier reward APR values as a decimal ratio.","examples":["0.005"]},"warnings":{"items":{"$ref":"#/components/schemas/LendingWarning"},"type":"array","title":"Warnings","description":"Risk or configuration warnings supplied by Morpho."}},"additionalProperties":true,"type":"object","required":["market_id","listed"],"title":"MorphoBlueVariableRateMarket"},"MorphoBlueVariableRateMarketDetail":{"properties":{"market_id":{"type":"string","title":"Market Id","description":"Stable product-specific variable-rate market ID.","examples":["0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the market.","default":"base","examples":["base"]},"chain_id":{"type":"integer","title":"Chain Id","description":"EVM chain ID. Base mainnet is 8453.","default":8453,"examples":[8453]},"loan_asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset supplied and borrowed in this market or reserve."},"total_supplied":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied","description":"Total supplied amount in token base units.","examples":["1000000000000"]},"total_supplied_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Supplied Usd","description":"USD value of total supplied assets.","examples":["1000000"]},"total_borrowed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed","description":"Total borrowed amount in token base units.","examples":["650000000000"]},"total_borrowed_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Borrowed Usd","description":"USD value of total borrowed assets.","examples":["650000"]},"available_liquidity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity","description":"Available liquidity in token base units.","examples":["350000000000"]},"available_liquidity_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Available Liquidity Usd","description":"USD value of available liquidity.","examples":["350000"]},"utilization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utilization","description":"Borrowed-to-supplied utilization ratio.","examples":["0.65"]},"supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supply Apy","description":"Current gross supply APY as a decimal ratio.","examples":["0.031"]},"borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Borrow Apy","description":"Current gross variable borrow APY as a decimal ratio.","examples":["0.052"]},"rewards":{"anyOf":[{"items":{"$ref":"#/components/schemas/LendingReward"},"type":"array"},{"type":"null"}],"title":"Rewards","description":"Reward programs attached to the market or reserve. Null means the upstream response did not expose reward data; an empty list means reward data was queried and no programs were returned."},"protocol":{"type":"string","const":"morpho_blue","title":"Protocol","description":"Morpho Blue product discriminator.","default":"morpho_blue"},"listed":{"type":"boolean","title":"Listed","description":"Whether Morpho lists the market in its official API.","examples":[true]},"collateral_asset":{"anyOf":[{"$ref":"#/components/schemas/LendingAsset"},{"type":"null"}],"description":"Asset accepted as collateral in this market."},"lltv":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lltv","description":"Liquidation loan-to-value ratio normalized to a decimal ratio.","examples":["0.86"]},"lltv_wad":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lltv Wad","description":"Raw LLTV value in 18-decimal WAD units.","examples":["860000000000000000"]},"oracle":{"$ref":"#/components/schemas/LendingOracle","description":"Price oracle configured for the market."},"irm_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Irm Address","description":"Interest-rate model contract address.","examples":["0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC"]},"market_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Fee","description":"Protocol fee expressed as a decimal ratio.","examples":["0.1"]},"total_collateral":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Collateral","description":"Total collateral in collateral-token base units.","examples":["125000000000000000000"]},"total_collateral_usd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Total Collateral Usd","description":"USD value of total collateral.","examples":["312500.50"]},"average_supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Average Supply Apy","description":"Average gross supply APY reported by Morpho.","examples":["0.029"]},"net_supply_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Supply Apy","description":"Current supply APY after fees and incentives, as reported by Morpho.","examples":["0.036"]},"average_borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Average Borrow Apy","description":"Average gross borrow APY reported by Morpho.","examples":["0.05"]},"net_borrow_apy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Net Borrow Apy","description":"Current borrow APY after incentives, as reported by Morpho.","examples":["0.048"]},"reward_apr":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reward Apr","description":"Sum of supplier reward APR values as a decimal ratio.","examples":["0.005"]},"warnings":{"items":{"$ref":"#/components/schemas/LendingWarning"},"type":"array","title":"Warnings","description":"Risk or configuration warnings supplied by Morpho."},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for this market."}},"additionalProperties":true,"type":"object","required":["market_id","listed","source"],"title":"MorphoBlueVariableRateMarketDetail"},"MorphoMidnightAccountPositions":{"properties":{"wallet_address":{"type":"string","title":"Wallet Address","description":"Wallet address whose lending positions were queried.","examples":["0x821880a3E2bac432d67E5155e72BB655Ef65fa5E"]},"network":{"$ref":"#/components/schemas/DefiNetwork","description":"Network containing the returned positions.","default":"base","examples":["base"]},"protocol":{"type":"string","const":"morpho_midnight","title":"Protocol","description":"Morpho Midnight product discriminator.","default":"morpho_midnight"},"summary":{"$ref":"#/components/schemas/LendingPositionSummary","description":"Morpho Midnight position aggregates."},"midnight_positions":{"items":{"$ref":"#/components/schemas/FixedRateAccountPosition"},"type":"array","title":"Midnight Positions","description":"Morpho Midnight fixed-rate positions matching the requested filters."},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"Partial-data warnings returned while querying Morpho Midnight."},"source":{"items":{"$ref":"#/components/schemas/LendingSource"},"type":"array","title":"Source","description":"Morpho Midnight source metadata."}},"additionalProperties":true,"type":"object","required":["wallet_address","summary"],"title":"MorphoMidnightAccountPositions"},"MorphoMidnightAccountResult":{"properties":{"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings","description":"Partial-data warnings returned while querying this protocol."},"source":{"items":{"$ref":"#/components/schemas/LendingSource"},"type":"array","title":"Source","description":"Source metadata for this protocol result."},"protocol":{"type":"string","const":"morpho_midnight","title":"Protocol","description":"Morpho Midnight protocol discriminator.","default":"morpho_midnight"},"summary":{"$ref":"#/components/schemas/LendingPositionSummary","description":"Morpho Midnight position aggregates."},"midnight_positions":{"items":{"$ref":"#/components/schemas/FixedRateAccountPosition"},"type":"array","title":"Midnight Positions","description":"Morpho Midnight positions matching the requested filter."}},"additionalProperties":true,"type":"object","required":["summary"],"title":"MorphoMidnightAccountResult"},"NormalizedMarket":{"properties":{"venue":{"type":"string","title":"Venue"},"category":{"$ref":"#/components/schemas/SourceCategory"},"market_type":{"$ref":"#/components/schemas/MarketType"},"symbol":{"type":"string","title":"Symbol"},"base":{"type":"string","title":"Base"},"quote":{"type":"string","title":"Quote"},"instrument_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instrument Id"},"chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chain"},"contract_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Address"}},"additionalProperties":false,"type":"object","required":["venue","category","market_type","symbol","base","quote"],"title":"NormalizedMarket"},"OhlcvCandle":{"properties":{"open_time":{"type":"string","format":"date-time","title":"Open Time"},"close_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Close Time"},"open":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Open"},"high":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"High"},"low":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Low"},"close":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Close"},"volume":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Volume"},"quote_volume":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quote Volume"},"is_partial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Partial"}},"additionalProperties":false,"type":"object","required":["open_time","open","high","low","close"],"title":"OhlcvCandle"},"OrderbookSide":{"type":"string","enum":["bid","ask","all"],"title":"OrderbookSide"},"PerpetualFundingHistoryResult":{"properties":{"unavailable_venues":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Unavailable Venues"},"series":{"items":{"$ref":"#/components/schemas/PerpetualFundingHistorySeries"},"type":"array","title":"Series"}},"additionalProperties":false,"type":"object","title":"PerpetualFundingHistoryResult"},"PerpetualFundingHistorySeries":{"properties":{"market":{"$ref":"#/components/schemas/NormalizedMarket"},"source":{"$ref":"#/components/schemas/SourceProvenance"},"funding_interval_hours":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Funding Interval Hours"},"points":{"items":{"$ref":"#/components/schemas/PerpetualFundingPoint"},"type":"array","title":"Points"}},"additionalProperties":false,"type":"object","required":["market","source"],"title":"PerpetualFundingHistorySeries"},"PerpetualFundingPoint":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"funding_rate":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Funding Rate"},"annualized_funding_rate_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Annualized Funding Rate Pct"},"mark_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Mark Price"},"premium":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Premium"}},"additionalProperties":false,"type":"object","required":["timestamp","funding_rate"],"title":"PerpetualFundingPoint"},"PerpetualMetricsResult":{"properties":{"metrics":{"items":{"$ref":"#/components/schemas/DerivativesMetric"},"type":"array","title":"Metrics"}},"additionalProperties":false,"type":"object","title":"PerpetualMetricsResult"},"PerpetualOpenInterestHistoryResult":{"properties":{"unavailable_venues":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Unavailable Venues"},"series":{"items":{"$ref":"#/components/schemas/PerpetualOpenInterestHistorySeries"},"type":"array","title":"Series"}},"additionalProperties":false,"type":"object","title":"PerpetualOpenInterestHistoryResult"},"PerpetualOpenInterestHistorySeries":{"properties":{"market":{"$ref":"#/components/schemas/NormalizedMarket"},"source":{"$ref":"#/components/schemas/SourceProvenance"},"interval":{"type":"string","title":"Interval"},"points":{"items":{"$ref":"#/components/schemas/PerpetualOpenInterestPoint"},"type":"array","title":"Points"}},"additionalProperties":false,"type":"object","required":["market","source","interval"],"title":"PerpetualOpenInterestHistorySeries"},"PerpetualOpenInterestPoint":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"open_interest":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Open Interest"},"open_interest_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Open Interest Usd"}},"additionalProperties":false,"type":"object","required":["timestamp"],"title":"PerpetualOpenInterestPoint"},"PredictionEventDetailResponse":{"properties":{"provider":{"type":"string","title":"Provider","description":"Event provider"},"event_id":{"type":"integer","title":"Event Id","description":"Prediction event ID"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"Prediction event slug"},"title":{"type":"string","title":"Title","description":"Event title"},"rules":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Rules","description":"Event rules"},"open_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Open Time","description":"Open time in ISO 8601 UTC format"},"close_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Time","description":"Close time in ISO 8601 UTC format"},"volume":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume","description":"Event trading volume"},"volume_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume 24H","description":"Event 24h trading volume"},"summary_data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Summary Data","description":"Event summary data"},"url":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Url","description":"Event URLs"},"markets":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Markets","description":"Prediction markets"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the event is active"},"outcomes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Outcomes","description":"Aggregated prediction outcomes"}},"type":"object","required":["provider","event_id","title","is_active"],"title":"PredictionEventDetailResponse"},"PredictionEventResponse":{"properties":{"provider":{"type":"string","title":"Provider","description":"Event provider"},"event_id":{"type":"integer","title":"Event Id","description":"Prediction event ID"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"Prediction event slug"},"title":{"type":"string","title":"Title","description":"Event title"},"volume":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume","description":"Event trading volume"},"volume_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Volume 24H","description":"Event 24h trading volume"},"open_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Open Time","description":"Open time in ISO 8601 UTC format"},"close_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Time","description":"Close time in ISO 8601 UTC format"},"is_active":{"type":"boolean","title":"Is Active","description":"Whether the event is active"}},"type":"object","required":["provider","event_id","title","is_active"],"title":"PredictionEventResponse"},"PredictionEventSort":{"type":"string","enum":["volume","volume24hr","startDate","endDate","createdAt","updatedAt"],"title":"PredictionEventSort"},"PredictionOddsCategory":{"type":"string","enum":["Politics","Sports","Finance","Crypto","Geopolitics","Culture","World","Elections","Mentions","Economy","Tech","All","Trending","New","Earnings"],"title":"PredictionOddsCategory"},"PriceConfidenceResult":{"properties":{"verdict":{"type":"string","enum":["usable","borderline","unreliable"],"title":"Verdict"},"score":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Score"},"rationale":{"items":{"$ref":"#/components/schemas/ConfidenceFactor"},"type":"array","title":"Rationale"},"recommended_action":{"type":"string","title":"Recommended Action"},"reference_price":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Reference Price"},"reference_quote":{"type":"string","title":"Reference Quote"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"}},"additionalProperties":false,"type":"object","required":["verdict","score","recommended_action","reference_quote"],"title":"PriceConfidenceResult"},"PriceSnapshot":{"properties":{"market":{"$ref":"#/components/schemas/NormalizedMarket"},"source":{"$ref":"#/components/schemas/SourceProvenance"},"last":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Last"},"bid":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Bid"},"ask":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Ask"},"mid":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Mid"},"base_volume_24h":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Base Volume 24H"},"quote_volume_24h":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Quote Volume 24H"},"liquidity_usd":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Liquidity Usd"},"spread_bps":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Spread Bps"},"high_24h":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"High 24H"},"low_24h":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Low 24H"},"change_24h_pct":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Change 24H Pct"},"pair_status":{"type":"string","enum":["active","unknown"],"title":"Pair Status","default":"unknown"},"pool_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pool Address"},"dex_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dex Name"}},"additionalProperties":false,"type":"object","required":["market","source"],"title":"PriceSnapshot"},"ProjectContractResponse":{"properties":{"chain":{"type":"string","title":"Chain","description":"Blockchain network"},"contract_address":{"type":"string","title":"Contract Address","description":"Contract address"}},"type":"object","required":["chain","contract_address"],"title":"ProjectContractResponse"},"ProjectDetailResponse":{"properties":{"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"Project ID"},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset","description":"Token symbol"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Project name"},"one_liner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Liner","description":"Project one-liner"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Project description"},"total_funding":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Funding","description":"Total funding amount"},"social_media":{"anyOf":[{"$ref":"#/components/schemas/ProjectSocialMediaResponse"},{"type":"null"}],"description":"Project social media data"},"contracts":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProjectContractResponse"},"type":"array"},{"type":"null"}],"title":"Contracts","description":"Known contract addresses"},"market_cap_usd":{"$ref":"#/components/schemas/ProjectSourceValueResponse","description":"Market cap by source"},"fully_diluted_valuation_usd":{"$ref":"#/components/schemas/ProjectSourceValueResponse","description":"Fully diluted valuation by source"},"circulating_supply":{"$ref":"#/components/schemas/ProjectSourceValueResponse","description":"Circulating supply by source"},"total_supply":{"$ref":"#/components/schemas/ProjectSourceValueResponse","description":"Total supply by source"},"max_supply":{"$ref":"#/components/schemas/ProjectSourceValueResponse","description":"Max supply by source"},"volume_24h_usd":{"$ref":"#/components/schemas/ProjectSourceValueResponse","description":"24h volume by source"},"exchange_presence":{"items":{"type":"string"},"type":"array","title":"Exchange Presence","description":"Exchanges where the asset is present"},"investors":{"items":{"$ref":"#/components/schemas/ProjectInvestorResponse"},"type":"array","title":"Investors","description":"Project investors"},"fundraise":{"items":{"$ref":"#/components/schemas/ProjectFundraiseResponse"},"type":"array","title":"Fundraise","description":"Funding rounds"}},"type":"object","required":["market_cap_usd","fully_diluted_valuation_usd","circulating_supply","total_supply","max_supply","volume_24h_usd"],"title":"ProjectDetailResponse"},"ProjectFundraiseResponse":{"properties":{"round":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Round","description":"Funding round name"},"published_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published Time","description":"Funding announcement date"},"amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount","description":"Funding amount in USD"},"valuation":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Valuation","description":"Valuation in USD"},"investors":{"items":{"$ref":"#/components/schemas/ProjectInvestorResponse"},"type":"array","title":"Investors","description":"Funding round investors"},"one_liner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Liner","description":"Funding round one-liner"},"x_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X Url","description":"Funding round X URL"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo","description":"Funding round logo URL"}},"type":"object","title":"ProjectFundraiseResponse"},"ProjectInvestorResponse":{"properties":{"invest_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Invest Id","description":"Investor ID"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Investor name"},"type":{"$ref":"#/components/schemas/InvestorType","description":"Investor entity type","default":"unknown"},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo","description":"Investor logo URL"},"is_lead_investor":{"type":"boolean","title":"Is Lead Investor","description":"Whether the investor led the round","default":false},"round_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Round Id","description":"Funding round ID"},"round_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Round Name","description":"Funding round name"},"published_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published Time","description":"Funding announcement date"}},"type":"object","title":"ProjectInvestorResponse"},"ProjectSearchItemResponse":{"properties":{"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id","description":"platform ID"},"asset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset","description":"Token symbol from"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Project name"},"one_liner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"One Liner","description":"Project one-liner"},"market_cap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Market Cap","description":"market cap"},"contracts":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProjectContractResponse"},"type":"array"},{"type":"null"}],"title":"Contracts","description":"Known contract addresses"}},"type":"object","title":"ProjectSearchItemResponse"},"ProjectSocialMediaResponse":{"properties":{"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Project website URL"},"x":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X","description":"Project X/Twitter URL"},"twitter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twitter","description":"Project Twitter URL"},"telegram":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telegram","description":"Project Telegram URL"},"discord":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discord","description":"Project Discord URL"},"github":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github","description":"Project GitHub URL"},"medium":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medium","description":"Project Medium URL"},"linkedin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin","description":"Project LinkedIn URL"},"gitbook":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gitbook","description":"Project GitBook URL"},"docs":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Docs","description":"Project documentation URL"},"defillama":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Defillama","description":"Project DefiLlama URL"}},"additionalProperties":true,"type":"object","title":"ProjectSocialMediaResponse"},"ProjectSourceValueResponse":{"properties":{"coingecko":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coingecko","description":"CoinGecko value"},"coinmarketcap":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Coinmarketcap","description":"CoinMarketCap value"}},"type":"object","title":"ProjectSourceValueResponse"},"Response200_CryptoPriceResult_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/CryptoPriceResult"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[CryptoPriceResult]"},"Response200_CurrentAuthUserData_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/CurrentAuthUserData"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[CurrentAuthUserData]"},"Response200_ExchangeAnnouncementListResponse_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/ExchangeAnnouncementListResponse"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[ExchangeAnnouncementListResponse]"},"Response200_ExchangeAnnouncementResponse_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/ExchangeAnnouncementResponse"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[ExchangeAnnouncementResponse]"},"Response200_FixedRateMarketDetail_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/FixedRateMarketDetail"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[FixedRateMarketDetail]"},"Response200_FixedRateMarketPage_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/FixedRateMarketPage"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[FixedRateMarketPage]"},"Response200_FixedRateOrderbook_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/FixedRateOrderbook"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[FixedRateOrderbook]"},"Response200_HistoricalPriceResult_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/HistoricalPriceResult"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[HistoricalPriceResult]"},"Response200_LendingAccountPositions_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/LendingAccountPositions"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[LendingAccountPositions]"},"Response200_LendingHistory_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/LendingHistory"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[LendingHistory]"},"Response200_LendingVaultDetail_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/LendingVaultDetail"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[LendingVaultDetail]"},"Response200_LendingVaultPage_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/LendingVaultPage"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[LendingVaultPage]"},"Response200_PerpetualFundingHistoryResult_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/PerpetualFundingHistoryResult"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[PerpetualFundingHistoryResult]"},"Response200_PerpetualMetricsResult_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/PerpetualMetricsResult"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[PerpetualMetricsResult]"},"Response200_PerpetualOpenInterestHistoryResult_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/PerpetualOpenInterestHistoryResult"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[PerpetualOpenInterestHistoryResult]"},"Response200_PredictionEventDetailResponse_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/PredictionEventDetailResponse"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[PredictionEventDetailResponse]"},"Response200_ProjectDetailResponse_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/ProjectDetailResponse"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[ProjectDetailResponse]"},"Response200_VariableRateMarketDetail_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/VariableRateMarketDetail"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[VariableRateMarketDetail]"},"Response200_VariableRateMarketPage_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"$ref":"#/components/schemas/VariableRateMarketPage"},{"type":"null"}],"description":"Response payload"}},"type":"object","title":"Response200[VariableRateMarketPage]"},"Response200_dict_":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data","description":"Response payload"}},"type":"object","title":"Response200[dict]"},"Response200_list_DefiPoolSearchItem__":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/DefiPoolSearchItem"},"type":"array"},{"type":"null"}],"title":"Data","description":"Response payload"}},"type":"object","title":"Response200[list[DefiPoolSearchItem]]"},"Response200_list_PredictionEventResponse__":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PredictionEventResponse"},"type":"array"},{"type":"null"}],"title":"Data","description":"Response payload"}},"type":"object","title":"Response200[list[PredictionEventResponse]]"},"Response200_list_ProjectSearchItemResponse__":{"properties":{"code":{"type":"integer","title":"Code","description":"Business code","default":0},"msg":{"type":"string","title":"Msg","description":"Message","default":"success"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProjectSearchItemResponse"},"type":"array"},{"type":"null"}],"title":"Data","description":"Response payload"}},"type":"object","title":"Response200[list[ProjectSearchItemResponse]]"},"SourceCategory":{"type":"string","enum":["cex_spot","cex_derivatives","dex","aggregate","prediction_market","equity","etf","forex","news"],"title":"SourceCategory"},"SourceProvenance":{"properties":{"provider":{"type":"string","title":"Provider"},"venue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue"},"category":{"$ref":"#/components/schemas/SourceCategory"},"endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint"},"source_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Time"},"received_time":{"type":"string","format":"date-time","title":"Received Time"},"latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latency Ms"},"cache_hit":{"type":"boolean","title":"Cache Hit","default":false}},"additionalProperties":false,"type":"object","required":["provider","category","received_time"],"title":"SourceProvenance"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VariableMarketHistoryMetric":{"type":"string","enum":["supplyApy","borrowApy","totalSuppliedUsd","totalBorrowedUsd","liquidityUsd","utilization","assetPriceUsd"],"title":"VariableMarketHistoryMetric"},"VariableMarketSort":{"type":"string","enum":["supplyUsd","borrowUsd","liquidityUsd","supplyApy","borrowApy","utilization"],"title":"VariableMarketSort"},"VariableRateMarket":{"oneOf":[{"$ref":"#/components/schemas/MorphoBlueVariableRateMarket"},{"$ref":"#/components/schemas/AaveV3VariableRateMarket"}],"title":"VariableRateMarket","discriminator":{"propertyName":"protocol","mapping":{"aave_v3":"#/components/schemas/AaveV3VariableRateMarket","morpho_blue":"#/components/schemas/MorphoBlueVariableRateMarket"}}},"VariableRateMarketDetail":{"oneOf":[{"$ref":"#/components/schemas/MorphoBlueVariableRateMarketDetail"},{"$ref":"#/components/schemas/AaveV3VariableRateMarketDetail"}],"title":"VariableRateMarketDetail","discriminator":{"propertyName":"protocol","mapping":{"aave_v3":"#/components/schemas/AaveV3VariableRateMarketDetail","morpho_blue":"#/components/schemas/MorphoBlueVariableRateMarketDetail"}}},"VariableRateMarketPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VariableRateMarket"},"type":"array","title":"Items","description":"Variable-rate markets in the current page."},"count":{"type":"integer","title":"Count","description":"Number of markets returned in this page.","examples":[20]},"limit":{"type":"integer","title":"Limit","description":"Requested maximum number of markets.","examples":[20]},"offset":{"type":"integer","title":"Offset","description":"Zero-based offset used for this page.","examples":[0]},"has_more":{"type":"boolean","title":"Has More","description":"Whether another offset page is available.","examples":[true]},"source":{"$ref":"#/components/schemas/LendingSource","description":"Upstream source metadata for this page."}},"additionalProperties":true,"type":"object","required":["items","count","limit","offset","has_more","source"],"title":"VariableRateMarketPage"},"VariableRateProtocol":{"type":"string","enum":["morpho_blue","aave_v3"],"title":"VariableRateProtocol"},"VaultDetailVersion":{"type":"string","enum":["V2","V1"],"title":"VaultDetailVersion"},"VaultHistoryMetric":{"type":"string","enum":["apy","netApy","totalAssetsUsd","idleAssetsUsd","sharePrice"],"title":"VaultHistoryMetric"},"VaultSort":{"type":"string","enum":["totalAssetsUsd","liquidityUsd","apy","netApy"],"title":"VaultSort"},"VaultVersion":{"type":"string","enum":["V2","V1"],"title":"VaultVersion"},"dataline_data_api__api__defi__schema__SortOrder":{"type":"string","enum":["asc","desc"],"title":"SortOrder"},"dataline_data_api__api__prediction__odds_view__SortOrder":{"type":"string","enum":["desc","asc"],"title":"SortOrder"}},"securitySchemes":{"DatalineBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT or OAuth access token"},"DatalineApiKey":{"type":"apiKey","in":"header","name":"X-Dataline-Key"}}}}