Agent data interface
Dataline / API Reference
One API.
One schema.
Every endpoint, parameter, and response is normalized into one reference surface. Supported price responses include confidence scores for agents.
26endpoints
6groups
2confidence responses
liveAPI reference loaded directly from the live spec. The full surface covers crypto, CEX announcements, and prediction markets. Join the waitlist for full access.
System
Health check and service status. Use this to verify connectivity before routing requests.
GET/healthHealth▾
dataline-api · inspector$inspect /healthready
Responses1
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no |
Response example
{
"code": 0,
"msg": "success",
"data": {}
}$request console
No API key set — expect 401 on protected routes.
Query JSON
Auth
GET/meCurrent Auth User▾
dataline-api · inspector$inspect /meready
Responses2
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.decision | object | yes | |
| data.decision.active | boolean | yes | Whether the credential is active |
| data.decision.allowed | boolean | yes | Whether control-api allowed the auth check |
| data.decision.principal | object | no | |
| data.decision.credential | object | no | |
| data.decision.roles | string[] | no | Role keys granted to the principal |
| data.decision.roles[] | string | no | |
| data.decision.permissions | string[] | no | Permission keys granted to the principal |
| data.decision.permissions[] | string | no | |
| data.decision.matched_permissions | string[] | no | Permission keys matched for this specific check |
| data.decision.matched_permissions[] | string | no | |
| data.decision.deny_reason | string | no | |
| data.decision.cache_ttl_seconds | integer | no | Suggested auth decision cache TTL |
| data.me | object | no | |
| data.me.user | object | yes | |
| data.me.user.id | string | yes | User ID |
| data.me.principal | object | yes | |
| data.me.identities | object[] | no | Linked identities |
| data.me.identities[] | object | no | |
| data.me.roles | string[] | no | Role keys granted to the user |
| data.me.roles[] | string | no | |
| data.me.permissions | string[] | no | Permission keys granted to the user |
| data.me.permissions[] | string | no | |
| data.me.entitlements | object[] | no | Active user entitlements |
| data.me.entitlements[] | object | no | |
| data.me.capabilities | object | no | Capability flags exposed by control-api |
| data.profile_deny_reason | string | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"decision": {
"active": false,
"allowed": false,
"principal": {
"subject_type": "user",
"subject_id": "usr_25Qt4aOb2q6_11rq",
"status": "active",
"jti": "jti_7QxUl0OyXSEZ0JCu",
"token_type": "api_key",
"client_id": null,
"scope": null,
"resource": "dataline-data-api"
},
"credential": {
"type": "api_key",
"id": "ak_2nteFTKhWlptVfoV",
"client_id": null,
"scope": null,
"resource": "dataline-data-api"
},
"roles": [
""
],
"permissions": [
"control.me.read",
"data.crypto.price.read"
],
"matched_permissions": [
""
],
"deny_reason": "",
"cache_ttl_seconds": 0
},
"me": {
"user": {
"id": "usr_25Qt4aOb2q6_11rq",
"email": "user@example.com",
"display_name": "0x30bb...d1f6",
"status": "active",
"created_at": null
},
"principal": {
"subject_type": "user",
"subject_id": "usr_25Qt4aOb2q6_11rq",
"status": "active",
"jti": "jti_7QxUl0OyXSEZ0JCu",
"token_type": "api_key",
"client_id": null,
"scope": null,
"resource": "dataline-data-api"
},
"identities": [
{
"id": null,
"provider": null,
"email": null,
"email_verified": null,
"display_name": null,
"provider_handle": null,
"created_at": null
}
],
"roles": [
""
],
"permissions": [
""
],
"entitlements": [
{
"id": null,
"feature": null,
"feature_key": null,
"label": null,
"description": null,
"enabled": null,
"metadata": null,
"sort_order": null,
"status": null,
"source": null,
"source_type": null,
"source_id": null,
"starts_at": null,
"expires_at": null,
"revoked_at": null,
"created_at": null,
"updated_at": null,
"plan_id": null
}
],
"capabilities": {
"data.crypto.price": true,
"data.prediction.events": true
}
},
"profile_deny_reason": ""
}
}422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
CEX
Centralized exchange announcements — listings, delistings, maintenance windows, and more across Binance, OKX, Bybit, Coinbase, and other major venues.
GET/cex/announcements/listCex Announcement List▾
dataline-api · inspector$inspect /cex/announcements/listready
Parameters8
| Name | Type | Required | Description |
|---|---|---|---|
| source | enumAllbinancebithumbbybitcoinbasehyperliquidokxupbit | no | Exchange/source |
| category | enumAlllistingdelistingroadmapmaintenanceincidentfuturesairdroplaunchpoolvotedeposit_withdrawalapi_updateearneventtrading_updatefiatweb3product_updaterisk_warningdisclosuregeneral | no | Announcement category |
| query | string | no | Search query |
| start_time | string<date-time> | no | Announcement time lower bound |
| end_time | string<date-time> | no | Announcement time upper bound |
| include_content | boolean | no | Include full content |
| page | integer | no | Page number |
| limit | integer | no | Page size |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.items | object[] | yes | Announcements |
| data.items[] | object | yes | |
| data.items[].id | integer | yes | Internal announcement ID |
| data.items[].source | string | yes | Announcement source exchange |
| data.items[].external_id | string | yes | Source announcement ID |
| data.items[].slug | string | no | |
| data.items[].category_id | integer | no | |
| data.items[].category_name | string | no | |
| data.items[].source_category_id | string | no | |
| data.items[].source_category_name | string | no | |
| data.items[].title | string | yes | Announcement title |
| data.items[].summary | string | no | |
| data.items[].content | string | no | |
| data.items[].web_url | string | no | |
| data.items[].published_at | string | no | |
| data.items[].announced_at | string | no | |
| data.items[].status | integer | no | |
| data.items[].risk_warning | string | no | |
| data.page | integer | yes | Page number |
| data.limit | integer | yes | Page size |
| data.count | integer | yes | Returned item count |
| data.has_more | boolean | yes | Whether more results are available |
Response example
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"id": 0,
"source": "",
"external_id": "string",
"slug": "",
"category_id": 0,
"category_name": "",
"source_category_id": "string",
"source_category_name": "",
"title": "",
"summary": "",
"content": "",
"web_url": "",
"published_at": "",
"announced_at": "",
"status": 0,
"risk_warning": ""
}
],
"page": 0,
"limit": 0,
"count": 0,
"has_more": false
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/cex/announcements/detailCex Announcement Detail▾
dataline-api · inspector$inspect /cex/announcements/detailready
Parameters3
| Name | Type | Required | Description |
|---|---|---|---|
| announcement_id | integer | no | Internal announcement ID |
| source | string | no | Exchange/source |
| external_id | string | no | Source ID |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.id | integer | yes | Internal announcement ID |
| data.source | string | yes | Announcement source exchange |
| data.external_id | string | yes | Source announcement ID |
| data.slug | string | no | |
| data.category_id | integer | no | |
| data.category_name | string | no | |
| data.source_category_id | string | no | |
| data.source_category_name | string | no | |
| data.title | string | yes | Announcement title |
| data.summary | string | no | |
| data.content | string | no | |
| data.web_url | string | no | |
| data.published_at | string | no | |
| data.announced_at | string | no | |
| data.status | integer | no | |
| data.risk_warning | string | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"id": 0,
"source": "",
"external_id": "string",
"slug": "",
"category_id": 0,
"category_name": "",
"source_category_id": "string",
"source_category_name": "",
"title": "",
"summary": "",
"content": "",
"web_url": "",
"published_at": "",
"announced_at": "",
"status": 0,
"risk_warning": ""
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
Crypto
Spot prices, OHLCV history, perpetuals metrics, and project fundamentals — normalized across CEX and DEX venues.
GET/v1/crypto/project/searchSearch crypto projects by symbol, name or contract▾
dataline-api · inspector$inspect /v1/crypto/project/searchready
Parameters4
| Name | Type | Required | Description |
|---|---|---|---|
| query | string | no | Project symbol or name to search. Optional when contract_address is provided; one of query or contract_address is required. |
| contract_address | string | no | Token contract address to search. Optional when query is provided; one of query or contract_address is required. |
| limit | integer | no | Maximum number of projects to return. |
| offset | integer | no | Number of matching projects to skip before returning results. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object[] | no | |
| data[] | object | no | |
| data[].project_id | string | no | |
| data[].asset | string | no | |
| data[].name | string | no | |
| data[].one_liner | string | no | |
| data[].market_cap | number | no | |
| data[].contracts | object[] | no | |
| data[].contracts[] | object | no | |
| data[].contracts[].chain | string | yes | Blockchain network |
| data[].contracts[].contract_address | string | yes | Contract address |
Response example
{
"code": 0,
"msg": "success",
"data": [
{
"project_id": "string",
"asset": "",
"name": "",
"one_liner": "",
"market_cap": 0,
"contracts": [
{
"chain": "",
"contract_address": ""
}
]
}
]
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/v1/crypto/project/detailProject fundamentals and metadata by Project ID▾
dataline-api · inspector$inspect /v1/crypto/project/detailready
Parameters1
| Name | Type | Required | Description |
|---|---|---|---|
| project_id* | string | yes | Project ID returned by /v1/crypto/project/search. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.project_id | string | no | |
| data.asset | string | no | |
| data.name | string | no | |
| data.one_liner | string | no | |
| data.description | string | no | |
| data.total_funding | number | no | |
| data.social_media | object | no | |
| data.social_media.website | string | no | |
| data.social_media.x | string | no | |
| data.social_media.twitter | string | no | |
| data.social_media.telegram | string | no | |
| data.social_media.discord | string | no | |
| data.social_media.github | string | no | |
| data.social_media.medium | string | no | |
| data.social_media.linkedin | string | no | |
| data.social_media.gitbook | string | no | |
| data.social_media.docs | string | no | |
| data.social_media.defillama | string | no | |
| data.contracts | object[] | no | |
| data.contracts[] | object | no | |
| data.contracts[].chain | string | yes | Blockchain network |
| data.contracts[].contract_address | string | yes | Contract address |
| data.market_cap_usd | object | yes | |
| data.market_cap_usd.coingecko | number | no | |
| data.market_cap_usd.coinmarketcap | number | no | |
| data.fully_diluted_valuation_usd | object | yes | |
| data.fully_diluted_valuation_usd.coingecko | number | no | |
| data.fully_diluted_valuation_usd.coinmarketcap | number | no | |
| data.circulating_supply | object | yes | |
| data.circulating_supply.coingecko | number | no | |
| data.circulating_supply.coinmarketcap | number | no | |
| data.total_supply | object | yes | |
| data.total_supply.coingecko | number | no | |
| data.total_supply.coinmarketcap | number | no | |
| data.max_supply | object | yes | |
| data.max_supply.coingecko | number | no | |
| data.max_supply.coinmarketcap | number | no | |
| data.volume_24h_usd | object | yes | |
| data.volume_24h_usd.coingecko | number | no | |
| data.volume_24h_usd.coinmarketcap | number | no | |
| data.exchange_presence | string[] | no | Exchanges where the asset is present |
| data.exchange_presence[] | string | no | |
| data.investors | object[] | no | Project investors |
| data.investors[] | object | no | |
| data.investors[].invest_id | integer | no | |
| data.investors[].name | string | no | |
| data.investors[].type | enumprojectorganizationpersonunknown | no | |
| data.investors[].logo | string | no | |
| data.investors[].is_lead_investor | boolean | no | Whether the investor led the round |
| data.investors[].round_id | integer | no | |
| data.investors[].round_name | string | no | |
| data.investors[].published_time | string | no | |
| data.fundraise | object[] | no | Funding rounds |
| data.fundraise[] | object | no | |
| data.fundraise[].round | string | no | |
| data.fundraise[].published_time | string | no | |
| data.fundraise[].amount | integer | no | |
| data.fundraise[].valuation | integer | no | |
| data.fundraise[].investors | object[] | no | Funding round investors |
| data.fundraise[].investors[] | object | no | |
| data.fundraise[].one_liner | string | no | |
| data.fundraise[].x_url | string | no | |
| data.fundraise[].logo | string | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"project_id": "string",
"asset": "",
"name": "",
"one_liner": "",
"description": "",
"total_funding": 0,
"social_media": {
"website": "",
"x": "",
"twitter": "",
"telegram": "",
"discord": "",
"github": "",
"medium": "",
"linkedin": "",
"gitbook": "",
"docs": "",
"defillama": ""
},
"contracts": [
{
"chain": "",
"contract_address": ""
}
],
"market_cap_usd": {
"coingecko": 0,
"coinmarketcap": 0
},
"fully_diluted_valuation_usd": {
"coingecko": 0,
"coinmarketcap": 0
},
"circulating_supply": {
"coingecko": 0,
"coinmarketcap": 0
},
"total_supply": {
"coingecko": 0,
"coinmarketcap": 0
},
"max_supply": {
"coingecko": 0,
"coinmarketcap": 0
},
"volume_24h_usd": {
"coingecko": 0,
"coinmarketcap": 0
},
"exchange_presence": [
""
],
"investors": [
{
"invest_id": 0,
"name": "",
"type": "unknown",
"logo": "",
"is_lead_investor": false,
"round_id": 0,
"round_name": "",
"published_time": ""
}
],
"fundraise": [
{
"round": "",
"published_time": "",
"amount": 0,
"valuation": 0,
"investors": [
{
"invest_id": null,
"name": null,
"type": null,
"logo": null,
"is_lead_investor": null,
"round_id": null,
"round_name": null,
"published_time": null
}
],
"one_liner": "",
"x_url": "",
"logo": ""
}
]
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/v1/crypto/cex/priceLatest CEX spot priceconfidence▾
dataline-api · inspector$inspect /v1/crypto/cex/priceready
Parameters4
| Name | Type | Required | Description |
|---|---|---|---|
| base* | string | yes | Base asset symbol to price on centralized spot venues. |
| quote | string | no | Quote asset symbol for the CEX spot pair. |
| venues | enum(binance|bybit|coinbase|okx)[] | no | Optional CEX venue filter. Omit to query all supported spot venues (binance, bybit, coinbase, okx). |
| quote_notional | number | string | no | Optional trade size in quote currency used for confidence checks. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.reference_price | string | no | |
| data.reference_quote | string | yes | |
| data.unavailable_venues | object[] | no | |
| data.unavailable_venues[] | object | no | |
| data.snapshots | object[] | no | |
| data.snapshots[] | object | no | |
| data.snapshots[].market | object | yes | |
| data.snapshots[].market.venue | string | yes | |
| data.snapshots[].market.symbol | string | yes | |
| data.snapshots[].market.base | string | yes | |
| data.snapshots[].market.quote | string | yes | |
| data.snapshots[].source | object | yes | |
| data.snapshots[].source.provider | string | yes | |
| data.snapshots[].source.received_time | string<date-time> | yes | |
| data.snapshots[].source.cache_hit | boolean | no | |
| data.snapshots[].last | string | no | |
| data.snapshots[].bid | string | no | |
| data.snapshots[].ask | string | no | |
| data.snapshots[].mid | string | no | |
| data.snapshots[].base_volume_24h | string | no | |
| data.snapshots[].quote_volume_24h | string | no | |
| data.snapshots[].liquidity_usd | string | no | |
| data.snapshots[].spread_bps | string | no | |
| data.snapshots[].high_24h | string | no | |
| data.snapshots[].low_24h | string | no | |
| data.snapshots[].change_24h_pct | string | no | |
| data.snapshots[].pair_status | enumactiveunknown | no | |
| data.snapshots[].pool_address | string | no | |
| data.snapshots[].dex_name | string | no | |
| data.confidence | object | no | |
| data.confidence.verdict | enumusableborderlineunreliable | yes | |
| data.confidence.score | string | yes | |
| data.confidence.rationale | object[] | no | |
| data.confidence.rationale[] | object | no | |
| data.confidence.recommended_action | string | yes | |
| data.confidence.reference_price | string | no | |
| data.confidence.reference_quote | string | yes | |
| data.confidence.evidence | object | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"reference_price": "",
"reference_quote": "",
"unavailable_venues": [
{}
],
"snapshots": [
{
"market": {
"venue": "",
"category": null,
"market_type": null,
"symbol": "",
"base": "",
"quote": "",
"instrument_id": null,
"chain": null,
"contract_address": null
},
"source": {
"provider": "string",
"venue": null,
"category": null,
"endpoint": null,
"source_time": null,
"received_time": "2026-07-03T00:00:00Z",
"latency_ms": null,
"cache_hit": false
},
"last": "",
"bid": "string",
"ask": "",
"mid": "string",
"base_volume_24h": "",
"quote_volume_24h": "",
"liquidity_usd": "string",
"spread_bps": "",
"high_24h": "",
"low_24h": "",
"change_24h_pct": "",
"pair_status": "unknown",
"pool_address": "",
"dex_name": ""
}
],
"confidence": {
"verdict": "usable",
"score": "",
"rationale": [
{
"factor": null,
"score": null,
"weight": null,
"detail": null
}
],
"recommended_action": "",
"reference_price": "",
"reference_quote": "",
"evidence": {}
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/v1/crypto/dex/priceLatest DEX token priceconfidence▾
dataline-api · inspector$inspect /v1/crypto/dex/priceready
Parameters4
| Name | Type | Required | Description |
|---|---|---|---|
| chain* | enumethereumbasearbitrumoptimismpolygonbscsolana | yes | On-chain network for the token contract. Supported values include ethereum, base, arbitrum, optimism, polygon, bsc, and solana. |
| contract_address* | string | yes | Token contract address on the selected chain. |
| venues | enum(dexscreener|geckoterminal)[] | no | Optional DEX provider filter. Omit to query all supported DEX providers (dexscreener, geckoterminal). |
| quote_notional | number | string | no | Optional trade size in USD used for confidence checks. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.reference_price | string | no | |
| data.reference_quote | string | yes | |
| data.unavailable_venues | object[] | no | |
| data.unavailable_venues[] | object | no | |
| data.snapshots | object[] | no | |
| data.snapshots[] | object | no | |
| data.snapshots[].market | object | yes | |
| data.snapshots[].market.venue | string | yes | |
| data.snapshots[].market.symbol | string | yes | |
| data.snapshots[].market.base | string | yes | |
| data.snapshots[].market.quote | string | yes | |
| data.snapshots[].source | object | yes | |
| data.snapshots[].source.provider | string | yes | |
| data.snapshots[].source.received_time | string<date-time> | yes | |
| data.snapshots[].source.cache_hit | boolean | no | |
| data.snapshots[].last | string | no | |
| data.snapshots[].bid | string | no | |
| data.snapshots[].ask | string | no | |
| data.snapshots[].mid | string | no | |
| data.snapshots[].base_volume_24h | string | no | |
| data.snapshots[].quote_volume_24h | string | no | |
| data.snapshots[].liquidity_usd | string | no | |
| data.snapshots[].spread_bps | string | no | |
| data.snapshots[].high_24h | string | no | |
| data.snapshots[].low_24h | string | no | |
| data.snapshots[].change_24h_pct | string | no | |
| data.snapshots[].pair_status | enumactiveunknown | no | |
| data.snapshots[].pool_address | string | no | |
| data.snapshots[].dex_name | string | no | |
| data.confidence | object | no | |
| data.confidence.verdict | enumusableborderlineunreliable | yes | |
| data.confidence.score | string | yes | |
| data.confidence.rationale | object[] | no | |
| data.confidence.rationale[] | object | no | |
| data.confidence.recommended_action | string | yes | |
| data.confidence.reference_price | string | no | |
| data.confidence.reference_quote | string | yes | |
| data.confidence.evidence | object | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"reference_price": "",
"reference_quote": "",
"unavailable_venues": [
{}
],
"snapshots": [
{
"market": {
"venue": "",
"category": null,
"market_type": null,
"symbol": "",
"base": "",
"quote": "",
"instrument_id": null,
"chain": null,
"contract_address": null
},
"source": {
"provider": "string",
"venue": null,
"category": null,
"endpoint": null,
"source_time": null,
"received_time": "2026-07-03T00:00:00Z",
"latency_ms": null,
"cache_hit": false
},
"last": "",
"bid": "string",
"ask": "",
"mid": "string",
"base_volume_24h": "",
"quote_volume_24h": "",
"liquidity_usd": "string",
"spread_bps": "",
"high_24h": "",
"low_24h": "",
"change_24h_pct": "",
"pair_status": "unknown",
"pool_address": "",
"dex_name": ""
}
],
"confidence": {
"verdict": "usable",
"score": "",
"rationale": [
{
"factor": null,
"score": null,
"weight": null,
"detail": null
}
],
"recommended_action": "",
"reference_price": "",
"reference_quote": "",
"evidence": {}
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/v1/crypto/historyOHLCV time series▾
dataline-api · inspector$inspect /v1/crypto/historyready
Parameters8
| Name | Type | Required | Description |
|---|---|---|---|
| base* | string | yes | Base asset symbol for the OHLCV series. |
| venue* | enumbinancebybitcoinbasehyperliquidokx | yes | Venue identifier for candles. Spot supports binance, bybit, coinbase, okx; perpetual supports binance, bybit, hyperliquid, okx. |
| quote | string | no | Quote asset symbol for the market. |
| market_type | enumspotperpetual | no | Market type for the OHLCV series. |
| interval | enum1m5m15m1h4h1d | no | Candle interval. |
| start_time | string<date-time> | no | Inclusive lower bound for candle timestamps. Omit to use provider default. |
| end_time | string<date-time> | no | Inclusive upper bound for candle timestamps. Omit to use provider default. |
| limit | integer | no | Maximum number of candles to return. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.interval | string | yes | |
| data.unavailable_venues | object[] | no | |
| data.unavailable_venues[] | object | no | |
| data.series | object[] | no | |
| data.series[] | object | no | |
| data.series[].market | object | yes | |
| data.series[].market.venue | string | yes | |
| data.series[].market.symbol | string | yes | |
| data.series[].market.base | string | yes | |
| data.series[].market.quote | string | yes | |
| data.series[].source | object | yes | |
| data.series[].source.provider | string | yes | |
| data.series[].source.received_time | string<date-time> | yes | |
| data.series[].source.cache_hit | boolean | no | |
| data.series[].interval | string | yes | |
| data.series[].candles | object[] | no | |
| data.series[].candles[] | object | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"interval": "",
"unavailable_venues": [
{}
],
"series": [
{
"market": {
"venue": "",
"category": null,
"market_type": null,
"symbol": "",
"base": "",
"quote": "",
"instrument_id": null,
"chain": null,
"contract_address": null
},
"source": {
"provider": "string",
"venue": null,
"category": null,
"endpoint": null,
"source_time": null,
"received_time": "2026-07-03T00:00:00Z",
"latency_ms": null,
"cache_hit": false
},
"interval": "",
"candles": [
{
"open_time": null,
"close_time": null,
"open": null,
"high": null,
"low": null,
"close": null,
"volume": null,
"quote_volume": null,
"is_partial": null
}
]
}
]
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/v1/crypto/perpetuals/metricsFunding, OI and basis snapshot▾
dataline-api · inspector$inspect /v1/crypto/perpetuals/metricsready
Parameters3
| Name | Type | Required | Description |
|---|---|---|---|
| base* | string | yes | Base asset symbol for the perpetual contract. |
| quote | string | no | Quote or settle asset for the perpetual contract. |
| venues | enum(binance|bybit|hyperliquid|okx)[] | no | Optional derivatives venue filter. Omit to query all supported venues (binance, bybit, hyperliquid, okx). |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.metrics | object[] | no | |
| data.metrics[] | object | no | |
| data.metrics[].market | object | yes | |
| data.metrics[].market.venue | string | yes | |
| data.metrics[].market.symbol | string | yes | |
| data.metrics[].market.base | string | yes | |
| data.metrics[].market.quote | string | yes | |
| data.metrics[].source | object | yes | |
| data.metrics[].source.provider | string | yes | |
| data.metrics[].source.received_time | string<date-time> | yes | |
| data.metrics[].source.cache_hit | boolean | no | |
| data.metrics[].last | string | no | |
| data.metrics[].bid | string | no | |
| data.metrics[].ask | string | no | |
| data.metrics[].mark | string | no | |
| data.metrics[].index | string | no | |
| data.metrics[].funding_rate | string | no | |
| data.metrics[].next_funding_time | string<date-time> | no | |
| data.metrics[].open_interest | string | no | |
| data.metrics[].open_interest_usd | string | no | |
| data.metrics[].volume_24h | string | no | |
| data.metrics[].basis_bps | string | no | |
| data.metrics[].basis_abs | string | no | |
| data.metrics[].funding_interval_hours | string | no | |
| data.metrics[].annualized_funding_rate_pct | string | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"metrics": [
{
"market": {
"venue": "",
"category": null,
"market_type": null,
"symbol": "",
"base": "",
"quote": "",
"instrument_id": null,
"chain": null,
"contract_address": null
},
"source": {
"provider": "string",
"venue": null,
"category": null,
"endpoint": null,
"source_time": null,
"received_time": "2026-07-03T00:00:00Z",
"latency_ms": null,
"cache_hit": false
},
"last": "",
"bid": "string",
"ask": "",
"mark": "",
"index": "",
"funding_rate": "",
"next_funding_time": "2026-07-03T00:00:00Z",
"open_interest": "",
"open_interest_usd": "",
"volume_24h": "",
"basis_bps": "",
"basis_abs": "",
"funding_interval_hours": "",
"annualized_funding_rate_pct": ""
}
]
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/v1/crypto/perpetuals/funding-historyHistorical funding rate series▾
dataline-api · inspector$inspect /v1/crypto/perpetuals/funding-historyready
Parameters6
| Name | Type | Required | Description |
|---|---|---|---|
| base* | string | yes | Base asset symbol for the perpetual contract. |
| venue* | enumbinancebybithyperliquidokx | yes | Derivatives venue identifier. |
| quote | string | no | Quote or settle asset for the perpetual contract. |
| start_time | string<date-time> | no | Inclusive lower bound for funding timestamps. |
| end_time | string<date-time> | no | Inclusive upper bound for funding timestamps. |
| limit | integer | no | Maximum number of funding points to return. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.unavailable_venues | object[] | no | |
| data.unavailable_venues[] | object | no | |
| data.series | object[] | no | |
| data.series[] | object | no | |
| data.series[].market | object | yes | |
| data.series[].market.venue | string | yes | |
| data.series[].market.symbol | string | yes | |
| data.series[].market.base | string | yes | |
| data.series[].market.quote | string | yes | |
| data.series[].source | object | yes | |
| data.series[].source.provider | string | yes | |
| data.series[].source.received_time | string<date-time> | yes | |
| data.series[].source.cache_hit | boolean | no | |
| data.series[].funding_interval_hours | string | no | |
| data.series[].points | object[] | no | |
| data.series[].points[] | object | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"unavailable_venues": [
{}
],
"series": [
{
"market": {
"venue": "",
"category": null,
"market_type": null,
"symbol": "",
"base": "",
"quote": "",
"instrument_id": null,
"chain": null,
"contract_address": null
},
"source": {
"provider": "string",
"venue": null,
"category": null,
"endpoint": null,
"source_time": null,
"received_time": "2026-07-03T00:00:00Z",
"latency_ms": null,
"cache_hit": false
},
"funding_interval_hours": "",
"points": [
{
"timestamp": null,
"funding_rate": null,
"annualized_funding_rate_pct": null,
"mark_price": null,
"premium": null
}
]
}
]
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/v1/crypto/perpetuals/open-interest-historyHistorical open interest series▾
dataline-api · inspector$inspect /v1/crypto/perpetuals/open-interest-historyready
Parameters7
| Name | Type | Required | Description |
|---|---|---|---|
| base* | string | yes | Base asset symbol for the perpetual contract. |
| venue* | enumbinancebybithyperliquidokx | yes | Derivatives venue identifier. |
| quote | string | no | Quote or settle asset for the perpetual contract. |
| interval | enum5m15m30m1h4h1d | no | Open-interest sampling interval. |
| start_time | string<date-time> | no | Inclusive lower bound for open-interest timestamps. |
| end_time | string<date-time> | no | Inclusive upper bound for open-interest timestamps. |
| limit | integer | no | Maximum number of open-interest samples to return. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.unavailable_venues | object[] | no | |
| data.unavailable_venues[] | object | no | |
| data.series | object[] | no | |
| data.series[] | object | no | |
| data.series[].market | object | yes | |
| data.series[].market.venue | string | yes | |
| data.series[].market.symbol | string | yes | |
| data.series[].market.base | string | yes | |
| data.series[].market.quote | string | yes | |
| data.series[].source | object | yes | |
| data.series[].source.provider | string | yes | |
| data.series[].source.received_time | string<date-time> | yes | |
| data.series[].source.cache_hit | boolean | no | |
| data.series[].interval | string | yes | |
| data.series[].points | object[] | no | |
| data.series[].points[] | object | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"unavailable_venues": [
{}
],
"series": [
{
"market": {
"venue": "",
"category": null,
"market_type": null,
"symbol": "",
"base": "",
"quote": "",
"instrument_id": null,
"chain": null,
"contract_address": null
},
"source": {
"provider": "string",
"venue": null,
"category": null,
"endpoint": null,
"source_time": null,
"received_time": "2026-07-03T00:00:00Z",
"latency_ms": null,
"cache_hit": false
},
"interval": "",
"points": [
{
"timestamp": null,
"open_interest": null,
"open_interest_usd": null
}
]
}
]
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
Defi
GET/defi/poolsFilter DeFi pools▾
dataline-api · inspector$inspect /defi/poolsready
Parameters4
| Name | Type | Required | Description |
|---|---|---|---|
| networks | enumbase | no | Network ID. Currently only base is supported. |
| dexes | 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)[] | no | Optional Base DEX filters. Up to 10 DEX values are supported. |
| page | integer | no | Result page. Returns up to 20 pools per page. |
| sort | enumfdv_usd_ascfdv_usd_descreserve_in_usd_ascreserve_in_usd_descprice_ascprice_descpool_created_at_desc | no | Optional pool sort option. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object[] | no | |
| data[] | object | no | |
| data[].pool_id | string | yes | Pool ID |
| data[].network | string | no | |
| data[].address | string | no | |
| data[].name | string | no | |
| data[].dex_id | string | no | |
| data[].base_token_id | string | no | |
| data[].quote_token_id | string | no | |
| data[].base_token_price_usd | string | no | |
| data[].base_token_price_native_currency | string | no | |
| data[].quote_token_price_usd | string | no | |
| data[].quote_token_price_native_currency | string | no | |
| data[].base_token_price_quote_token | string | no | |
| data[].quote_token_price_base_token | string | no | |
| data[].pool_created_at | string | no | |
| data[].fdv_usd | string | no | |
| data[].market_cap_usd | string | no | |
| data[].reserve_in_usd | string | no |
Response example
{
"code": 0,
"msg": "success",
"data": [
{
"pool_id": "string",
"network": "",
"address": "",
"name": "",
"dex_id": "string",
"base_token_id": "string",
"quote_token_id": "string",
"base_token_price_usd": "",
"base_token_price_native_currency": "",
"quote_token_price_usd": "",
"quote_token_price_native_currency": "",
"base_token_price_quote_token": "",
"quote_token_price_base_token": "",
"pool_created_at": "",
"fdv_usd": "",
"market_cap_usd": "",
"reserve_in_usd": ""
}
]
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/pools/searchSearch DeFi pools▾
dataline-api · inspector$inspect /defi/pools/searchready
Parameters3
| Name | Type | Required | Description |
|---|---|---|---|
| query* | string | yes | Pool address, token name, token symbol, or token contract address. |
| network | enumbase | no | Optional network ID. |
| page | integer | no | Result page. Returns up to 20 pools per page. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object[] | no | |
| data[] | object | no | |
| data[].pool_id | string | yes | Pool ID |
| data[].network | string | no | |
| data[].address | string | no | |
| data[].name | string | no | |
| data[].dex_id | string | no | |
| data[].base_token_id | string | no | |
| data[].quote_token_id | string | no | |
| data[].base_token_price_usd | string | no | |
| data[].base_token_price_native_currency | string | no | |
| data[].quote_token_price_usd | string | no | |
| data[].quote_token_price_native_currency | string | no | |
| data[].base_token_price_quote_token | string | no | |
| data[].quote_token_price_base_token | string | no | |
| data[].pool_created_at | string | no | |
| data[].fdv_usd | string | no | |
| data[].market_cap_usd | string | no | |
| data[].reserve_in_usd | string | no |
Response example
{
"code": 0,
"msg": "success",
"data": [
{
"pool_id": "string",
"network": "",
"address": "",
"name": "",
"dex_id": "string",
"base_token_id": "string",
"quote_token_id": "string",
"base_token_price_usd": "",
"base_token_price_native_currency": "",
"quote_token_price_usd": "",
"quote_token_price_native_currency": "",
"base_token_price_quote_token": "",
"quote_token_price_base_token": "",
"pool_created_at": "",
"fdv_usd": "",
"market_cap_usd": "",
"reserve_in_usd": ""
}
]
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/variable-rate/marketsList variable-rate lending markets▾
dataline-api · inspector$inspect /defi/lending/variable-rate/marketsready
Parameters8
| Name | Type | Required | Description |
|---|---|---|---|
| network | enumbase | no | |
| protocol | enummorpho_blueaave_v3 | no | |
| loan_asset | string | no | |
| collateral_asset | string | no | |
| sort | enumsupplyUsdborrowUsdliquidityUsdsupplyApyborrowApyutilization | no | |
| order | enumascdesc | no | |
| limit | integer | no | |
| offset | integer | no |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.items | object | object[] | yes | Variable-rate markets in the current page. |
| data.items[] | object | yes | |
| data.items[].market_id | string | yes | Stable product-specific variable-rate market ID. |
| data.items[].chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.items[].protocol | string | no | Morpho Blue product discriminator. |
| data.items[].listed | boolean | yes | Whether Morpho lists the market in its official API. |
| data.items[].warnings | object[] | no | Risk or configuration warnings supplied by Morpho. |
| data.count | integer | yes | Number of markets returned in this page. |
| data.limit | integer | yes | Requested maximum number of markets. |
| data.offset | integer | yes | Zero-based offset used for this page. |
| data.has_more | boolean | yes | Whether another offset page is available. |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"market_id": "0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836",
"network": "base",
"chain_id": 8453,
"loan_asset": null,
"total_supplied": "1000000000000",
"total_supplied_usd": "1000000",
"total_borrowed": "650000000000",
"total_borrowed_usd": "650000",
"available_liquidity": "350000000000",
"available_liquidity_usd": "350000",
"utilization": "0.65",
"supply_apy": "0.031",
"borrow_apy": "0.052",
"rewards": null,
"protocol": "morpho_blue",
"listed": true,
"collateral_asset": null,
"lltv": "0.86",
"lltv_wad": "860000000000000000",
"oracle": null,
"irm_address": "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
"market_fee": "0.1",
"total_collateral": "125000000000000000000",
"total_collateral_usd": "312500.50",
"average_supply_apy": "0.029",
"net_supply_apy": "0.036",
"average_borrow_apy": "0.05",
"net_borrow_apy": "0.048",
"reward_apr": "0.005",
"warnings": [
null
]
}
],
"count": 20,
"limit": 20,
"offset": 0,
"has_more": true,
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/variable-rate/markets/detailGet variable-rate lending market detail▾
dataline-api · inspector$inspect /defi/lending/variable-rate/markets/detailready
Parameters3
| Name | Type | Required | Description |
|---|---|---|---|
| network | enumbase | no | |
| protocol | enummorpho_blueaave_v3 | no | |
| market_id* | string | yes |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.market_id | string | yes | Stable product-specific variable-rate market ID. |
| data.network | enumbase | no | |
| data.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.loan_asset | object | no | |
| data.total_supplied | string | no | |
| data.total_supplied_usd | string | no | |
| data.total_borrowed | string | no | |
| data.total_borrowed_usd | string | no | |
| data.available_liquidity | string | no | |
| data.available_liquidity_usd | string | no | |
| data.utilization | string | no | |
| data.supply_apy | string | no | |
| data.borrow_apy | string | no | |
| data.rewards | object[] | no | |
| data.rewards[] | object | no | |
| data.protocol | string | no | Morpho Blue product discriminator. |
| data.listed | boolean | yes | Whether Morpho lists the market in its official API. |
| data.collateral_asset | object | no | |
| data.lltv | string | no | |
| data.lltv_wad | string | no | |
| data.oracle | object | no | |
| data.oracle.address | string | no | |
| data.oracle.type | string | no | |
| data.irm_address | string | no | |
| data.market_fee | string | no | |
| data.total_collateral | string | no | |
| data.total_collateral_usd | string | no | |
| data.average_supply_apy | string | no | |
| data.net_supply_apy | string | no | |
| data.average_borrow_apy | string | no | |
| data.net_borrow_apy | string | no | |
| data.reward_apr | string | no | |
| data.warnings | object[] | no | Risk or configuration warnings supplied by Morpho. |
| data.warnings[] | object | no | |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"market_id": "0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836",
"network": "base",
"chain_id": 8453,
"loan_asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6
},
"total_supplied": "1000000000000",
"total_supplied_usd": "1000000",
"total_borrowed": "650000000000",
"total_borrowed_usd": "650000",
"available_liquidity": "350000000000",
"available_liquidity_usd": "350000",
"utilization": "0.65",
"supply_apy": "0.031",
"borrow_apy": "0.052",
"rewards": [
{
"asset": null,
"supplyApr": null,
"borrowApr": null
}
],
"protocol": "morpho_blue",
"listed": true,
"collateral_asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6
},
"lltv": "0.86",
"lltv_wad": "860000000000000000",
"oracle": {
"address": "0xD09048c8B568Dbf5f189302beA26c9edABFC4858",
"type": "MorphoChainlinkOracleV2"
},
"irm_address": "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
"market_fee": "0.1",
"total_collateral": "125000000000000000000",
"total_collateral_usd": "312500.50",
"average_supply_apy": "0.029",
"net_supply_apy": "0.036",
"average_borrow_apy": "0.05",
"net_borrow_apy": "0.048",
"reward_apr": "0.005",
"warnings": [
{
"type": "hardcoded_oracle",
"level": "warning"
}
],
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/variable-rate/markets/historyGet variable-rate lending market history▾
dataline-api · inspector$inspect /defi/lending/variable-rate/markets/historyready
Parameters7
| Name | Type | Required | Description |
|---|---|---|---|
| network | enumbase | no | |
| protocol | enummorpho_blueaave_v3 | no | |
| market_id* | string | yes | |
| metric | enumsupplyApyborrowApytotalSuppliedUsdtotalBorrowedUsdliquidityUsdutilizationassetPriceUsd | no | History metric. Aave V3 supports supplyApy and borrowApy; assetPriceUsd is the Morpho Blue collateral-asset USD price. |
| interval | enumhourdayweekmonthquarteryear | no | |
| start_time | string<date-time> | no | |
| end_time | string<date-time> | no |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.protocol | string | yes | Lending protocol that supplied the history. |
| data.market_id | string | no | |
| data.vault_address | string | no | |
| data.vault_version | enumV2V1 | no | |
| data.metric | string | yes | Requested lending history metric. |
| data.interval | enumhourdayweekmonthquarteryear | yes | |
| data.upstream_window | string | no | |
| data.start_time | string | yes | Inclusive history start time in ISO 8601 format. |
| data.end_time | string | yes | Inclusive history end time in ISO 8601 format. |
| data.points | object[] | yes | Chronologically ordered history samples. |
| data.points[] | object | yes | |
| data.points[].timestamp | string | yes | ISO 8601 timestamp for the sample. |
| data.points[].value | string | no | |
| data.points[].is_missing | boolean | no | Whether the upstream provider returned no value for this timestamp. |
| data.value_unit | string | yes | Unit for every point value, such as ratio, usd, or underlying_asset. |
| data.includes_rewards | boolean | no | |
| data.fees_deducted | boolean | no | |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"protocol": "aave_v3",
"market_id": "0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836",
"vault_address": "0x04422053aDDbc9bB2759b248B574e3FCA76Bc145",
"vault_version": "V2",
"metric": "supplyApy",
"interval": "day",
"upstream_window": "LAST_MONTH",
"start_time": "2026-07-01T00:00:00Z",
"end_time": "2026-08-01T00:00:00Z",
"points": [
{
"timestamp": "2026-08-01T00:00:00Z",
"value": "0.042",
"is_missing": false
}
],
"value_unit": "ratio",
"includes_rewards": true,
"fees_deducted": true,
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/vaultsList lending vaults▾
dataline-api · inspector$inspect /defi/lending/vaultsready
Parameters7
| Name | Type | Required | Description |
|---|---|---|---|
| network | enumbase | no | |
| version | enumV2V1 | no | |
| asset | string | no | |
| sort | enumtotalAssetsUsdliquidityUsdapynetApy | no | |
| order | enumascdesc | no | |
| limit | integer | no | |
| offset | integer | no |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.items | object[] | yes | Vaults in the current page. |
| data.items[] | object | yes | |
| data.items[].vault_address | string | yes | Vault contract address on Base. |
| data.items[].vault_version | enumV2V1 | yes | |
| data.items[].name | string | no | |
| data.items[].symbol | string | no | |
| data.items[].asset | object | no | |
| data.items[].listed | boolean | yes | Whether Morpho lists the vault in its official API. |
| data.items[].total_assets | string | no | |
| data.items[].total_assets_usd | string | no | |
| data.items[].total_supply | string | no | |
| data.items[].liquidity | string | no | |
| data.items[].liquidity_usd | string | no | |
| data.items[].idle_assets | string | no | |
| data.items[].idle_assets_usd | string | no | |
| data.items[].native_apy | string | no | |
| data.items[].net_apy | string | no | |
| data.items[].reward_apr | string | no | |
| data.items[].performance_fee | string | no | |
| data.items[].management_fee | string | no | |
| data.items[].rewards | object[] | no | Reward programs attached to the vault. |
| data.items[].rewards[] | object | no | |
| data.items[].allocations | object[] | no | Vault V1 market allocations or Vault V2 adapter allocations. |
| data.items[].allocations[] | object | no | |
| data.items[].warnings | object[] | no | Risk or configuration warnings supplied by Morpho. |
| data.items[].warnings[] | object | no | |
| data.count | integer | yes | Number of vaults returned in this page. |
| data.limit | integer | yes | Requested maximum number of vaults. |
| data.offset | integer | yes | Zero-based offset used for this page. |
| data.has_more | boolean | yes | Whether another offset page is available. |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"vault_address": "0x04422053aDDbc9bB2759b248B574e3FCA76Bc145",
"vault_version": "V2",
"name": "Steakhouse USDC",
"symbol": "steakUSDC",
"asset": {
"address": null,
"symbol": null,
"name": null,
"decimals": null
},
"listed": true,
"total_assets": "2500000000000",
"total_assets_usd": "2500000",
"total_supply": "2400000000000",
"liquidity": "500000000000",
"liquidity_usd": "500000",
"idle_assets": "10000000",
"idle_assets_usd": "10",
"native_apy": "0.045",
"net_apy": "0.052",
"reward_apr": "0.007",
"performance_fee": "0.1",
"management_fee": "0",
"rewards": [
{
"asset": null,
"supplyApr": null,
"borrowApr": null
}
],
"allocations": [
{
"supplyAssets": null,
"supplyAssetsUsd": null,
"market": null,
"address": null,
"type": null,
"assets": null,
"assetsUsd": null,
"forceDeallocatePenalty": null
}
],
"warnings": [
{
"type": null,
"level": null
}
]
}
],
"count": 20,
"limit": 20,
"offset": 0,
"has_more": true,
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/vaults/detailGet lending vault detail▾
dataline-api · inspector$inspect /defi/lending/vaults/detailready
Parameters2
| Name | Type | Required | Description |
|---|---|---|---|
| vault_address* | string | yes | |
| version | enumV2V1 | no |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.vault_address | string | yes | Vault contract address on Base. |
| data.vault_version | enumV2V1 | yes | |
| data.name | string | no | |
| data.symbol | string | no | |
| data.asset | object | no | |
| data.asset.address | string | no | |
| data.asset.symbol | string | no | |
| data.asset.name | string | no | |
| data.asset.decimals | integer | no | |
| data.listed | boolean | yes | Whether Morpho lists the vault in its official API. |
| data.total_assets | string | no | |
| data.total_assets_usd | string | no | |
| data.total_supply | string | no | |
| data.liquidity | string | no | |
| data.liquidity_usd | string | no | |
| data.idle_assets | string | no | |
| data.idle_assets_usd | string | no | |
| data.native_apy | string | no | |
| data.net_apy | string | no | |
| data.reward_apr | string | no | |
| data.performance_fee | string | no | |
| data.management_fee | string | no | |
| data.rewards | object[] | no | Reward programs attached to the vault. |
| data.rewards[] | object | no | |
| data.rewards[].asset | object | no | |
| data.rewards[].supplyApr | string | no | |
| data.rewards[].borrowApr | string | no | |
| data.allocations | object[] | no | Vault V1 market allocations or Vault V2 adapter allocations. |
| data.allocations[] | object | no | |
| data.allocations[].supplyAssets | string | no | |
| data.allocations[].supplyAssetsUsd | string | no | |
| data.allocations[].market | object | no | |
| data.allocations[].address | string | no | |
| data.allocations[].type | string | no | |
| data.allocations[].assets | string | no | |
| data.allocations[].assetsUsd | string | no | |
| data.allocations[].forceDeallocatePenalty | string | no | |
| data.warnings | object[] | no | Risk or configuration warnings supplied by Morpho. |
| data.warnings[] | object | no | |
| data.warnings[].type | string | no | |
| data.warnings[].level | string | no | |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"vault_address": "0x04422053aDDbc9bB2759b248B574e3FCA76Bc145",
"vault_version": "V2",
"name": "Steakhouse USDC",
"symbol": "steakUSDC",
"asset": {
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 6
},
"listed": true,
"total_assets": "2500000000000",
"total_assets_usd": "2500000",
"total_supply": "2400000000000",
"liquidity": "500000000000",
"liquidity_usd": "500000",
"idle_assets": "10000000",
"idle_assets_usd": "10",
"native_apy": "0.045",
"net_apy": "0.052",
"reward_apr": "0.007",
"performance_fee": "0.1",
"management_fee": "0",
"rewards": [
{
"asset": {
"address": null,
"symbol": null,
"chain": null
},
"supplyApr": "0.0125",
"borrowApr": "0.004"
}
],
"allocations": [
{
"supplyAssets": "1000000000",
"supplyAssetsUsd": "1000",
"market": {
"marketId": null
},
"address": "0x1111111111111111111111111111111111111111",
"type": "MorphoMarketV1Adapter",
"assets": "1000000000",
"assetsUsd": "1000",
"forceDeallocatePenalty": "0"
}
],
"warnings": [
{
"type": "hardcoded_oracle",
"level": "warning"
}
],
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/vaults/historyGet lending vault history▾
dataline-api · inspector$inspect /defi/lending/vaults/historyready
Parameters6
| Name | Type | Required | Description |
|---|---|---|---|
| vault_address* | string | yes | |
| version | enumV2V1 | no | |
| metric | enumapynetApytotalAssetsUsdidleAssetsUsdsharePrice | no | |
| interval | enumhourdayweekmonthquarteryear | no | |
| start_time | string<date-time> | no | |
| end_time | string<date-time> | no |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.protocol | string | yes | Lending protocol that supplied the history. |
| data.market_id | string | no | |
| data.vault_address | string | no | |
| data.vault_version | enumV2V1 | no | |
| data.metric | string | yes | Requested lending history metric. |
| data.interval | enumhourdayweekmonthquarteryear | yes | |
| data.upstream_window | string | no | |
| data.start_time | string | yes | Inclusive history start time in ISO 8601 format. |
| data.end_time | string | yes | Inclusive history end time in ISO 8601 format. |
| data.points | object[] | yes | Chronologically ordered history samples. |
| data.points[] | object | yes | |
| data.points[].timestamp | string | yes | ISO 8601 timestamp for the sample. |
| data.points[].value | string | no | |
| data.points[].is_missing | boolean | no | Whether the upstream provider returned no value for this timestamp. |
| data.value_unit | string | yes | Unit for every point value, such as ratio, usd, or underlying_asset. |
| data.includes_rewards | boolean | no | |
| data.fees_deducted | boolean | no | |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"protocol": "aave_v3",
"market_id": "0x9103c3b4e834476c9a62ea009ba2c884ee42e94e6e314a26f04d312434191836",
"vault_address": "0x04422053aDDbc9bB2759b248B574e3FCA76Bc145",
"vault_version": "V2",
"metric": "supplyApy",
"interval": "day",
"upstream_window": "LAST_MONTH",
"start_time": "2026-07-01T00:00:00Z",
"end_time": "2026-08-01T00:00:00Z",
"points": [
{
"timestamp": "2026-08-01T00:00:00Z",
"value": "0.042",
"is_missing": false
}
],
"value_unit": "ratio",
"includes_rewards": true,
"fees_deducted": true,
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/fixed-rate/marketsList fixed-rate lending markets▾
dataline-api · inspector$inspect /defi/lending/fixed-rate/marketsready
Parameters12
| Name | Type | Required | Description |
|---|---|---|---|
| network | enumbase | no | |
| protocol | enummorpho_midnight | no | |
| loan_asset | string | no | |
| collateral_asset | string | no | |
| maturity_gte | string<date-time> | no | |
| maturity_lte | string<date-time> | no | |
| active_only | boolean | no | |
| listed | boolean | no | |
| sort | enummaturitytotalUnits | no | |
| order | enumascdesc | no | |
| limit | integer | no | |
| cursor | string | no |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.items | object[] | yes | Fixed-rate markets in the current cursor page. |
| data.items[] | object | yes | |
| data.items[].protocol | string | no | Morpho Midnight product discriminator. |
| data.items[].market_id | string | yes | Globally unique Morpho Midnight market ID. |
| data.items[].loan_asset | string | no | |
| data.items[].collaterals | object[] | no | Collateral configurations accepted by the market. |
| data.items[].collaterals[] | object | no | |
| data.items[].maturity | string | no | |
| data.items[].listed | boolean | no | |
| data.items[].total_units | string | no | |
| data.items[].time_to_maturity_seconds | integer | no | |
| data.items[].is_matured | boolean | yes | Whether the maturity time has passed. |
| data.count | integer | yes | Number of markets returned in this page. |
| data.limit | integer | yes | Requested maximum number of markets. |
| data.cursor | string | no | |
| data.next_cursor | string | no | |
| data.has_more | boolean | yes | Whether another cursor page is available. |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"items": [
{
"protocol": "morpho_midnight",
"market_id": "0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614",
"loan_asset": "0x4200000000000000000000000000000000000006",
"collaterals": [
{
"token": null,
"oracle": null,
"lltv": null,
"lltv_wad": null,
"liquidation_cursor": null,
"liquidation_cursor_wad": null
}
],
"maturity": "2026-06-12T11:00:00Z",
"listed": true,
"total_units": "1000301090628280",
"time_to_maturity_seconds": 86400,
"is_matured": false
}
],
"count": 20,
"limit": 20,
"cursor": "eyJpZCI6IjEyMyJ9",
"next_cursor": "eyJpZCI6IjE0MyJ9",
"has_more": true,
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/fixed-rate/markets/detailGet fixed-rate lending market detail▾
dataline-api · inspector$inspect /defi/lending/fixed-rate/markets/detailready
Parameters3
| Name | Type | Required | Description |
|---|---|---|---|
| network | enumbase | no | |
| protocol | enummorpho_midnight | no | |
| market_id* | string | yes |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.protocol | string | no | Morpho Midnight product discriminator. |
| data.market_id | string | yes | Globally unique Morpho Midnight market ID. |
| data.loan_asset | string | no | |
| data.collaterals | object[] | no | Collateral configurations accepted by the market. |
| data.collaterals[] | object | no | |
| data.collaterals[].token | string | no | |
| data.collaterals[].oracle | string | no | |
| data.collaterals[].lltv | string | no | |
| data.collaterals[].lltv_wad | string | no | |
| data.collaterals[].liquidation_cursor | string | no | |
| data.collaterals[].liquidation_cursor_wad | string | no | |
| data.maturity | string | no | |
| data.listed | boolean | no | |
| data.total_units | string | no | |
| data.time_to_maturity_seconds | integer | no | |
| data.is_matured | boolean | yes | Whether the maturity time has passed. |
| data.best_bid | string | no | |
| data.best_ask | string | no | |
| data.implied_lend_rate | string | no | |
| data.implied_borrow_rate | string | no | |
| data.bid_liquidity | string | no | |
| data.ask_liquidity | string | no | |
| data.market_definition | object | yes | |
| data.market_definition.chain_id | integer | no | |
| data.market_definition.market_id | string | no | |
| data.market_definition.loan_token | string | no | |
| data.market_definition.maturity | string | no | |
| data.market_definition.enter_gate | string | no | |
| data.market_definition.liquidator_gate | string | no | |
| data.market_definition.collaterals | object[] | no | Immutable collateral configurations. |
| data.market_definition.collaterals[] | object | no | |
| data.market_state | object | yes | |
| data.market_state.chain_id | integer | no | |
| data.market_state.market_id | string | no | |
| data.market_state.last_indexed_block | integer | no | |
| data.market_state.total_units | string | no | |
| data.market_state.tick_granularity | integer | no | |
| data.market_state.settlement_fee_schedule | object[] | no | Settlement fee curve by time to maturity. |
| data.market_state.settlement_fee_schedule[] | object | no | |
| data.market_state.current_settlement_fee_wad | string | no | |
| data.market_state.current_settlement_fee_cbp | string | no | |
| data.market_state.continuous_fee_rate | string | no | |
| data.orderbook | object | yes | |
| data.orderbook.bids | object[] | no | Aggregated borrower-side price levels. |
| data.orderbook.bids[] | object | no | |
| data.orderbook.asks | object[] | no | Aggregated lender-side price levels. |
| data.orderbook.asks[] | object | no | |
| data.orderbook.time_to_maturity_seconds | integer | no | |
| data.orderbook.rate_calculation | string | yes | Formula used to derive annualized rates from fixed-point prices. |
| data.orderbook.fees_included | boolean | no | Whether the derived rates include settlement or protocol fees. |
| data.warnings | string[] | no | Partial-data warnings generated by Data API. |
| data.warnings[] | string | no | |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"protocol": "morpho_midnight",
"market_id": "0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614",
"loan_asset": "0x4200000000000000000000000000000000000006",
"collaterals": [
{
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"oracle": "0xD09048c8B568Dbf5f189302beA26c9edABFC4858",
"lltv": "0.86",
"lltv_wad": "860000000000000000",
"liquidation_cursor": "1",
"liquidation_cursor_wad": "1000000000000000000"
}
],
"maturity": "2026-06-12T11:00:00Z",
"listed": true,
"total_units": "1000301090628280",
"time_to_maturity_seconds": 86400,
"is_matured": false,
"best_bid": "956937000000000000",
"best_ask": "952380952380952380",
"implied_lend_rate": "0.052",
"implied_borrow_rate": "0.047",
"bid_liquidity": "7655497000",
"ask_liquidity": "9523809523",
"market_definition": {
"chain_id": 8453,
"market_id": "0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614",
"loan_token": "0x4200000000000000000000000000000000000006",
"maturity": "2026-06-12T11:00:00Z",
"enter_gate": "0x0000000000000000000000000000000000000000",
"liquidator_gate": "0x0000000000000000000000000000000000000000",
"collaterals": [
{
"token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"oracle": "0xD09048c8B568Dbf5f189302beA26c9edABFC4858",
"lltv": "0.86",
"lltv_wad": "860000000000000000",
"liquidation_cursor": "1",
"liquidation_cursor_wad": "1000000000000000000"
}
]
},
"market_state": {
"chain_id": 8453,
"market_id": "0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614",
"last_indexed_block": 47457420,
"total_units": "1000301090628280",
"tick_granularity": 4,
"settlement_fee_schedule": [
{
"time_to_maturity_days": 30,
"fee_cbp": "400"
}
],
"current_settlement_fee_wad": "0",
"current_settlement_fee_cbp": "0",
"continuous_fee_rate": "0"
},
"orderbook": {
"bids": [
{
"tick": 42,
"price": "952380952380952380",
"units": "10000000000",
"assets": "9523809523",
"count": 3,
"implied_annualized_rate": "0.052"
}
],
"asks": [
{
"tick": 42,
"price": "952380952380952380",
"units": "10000000000",
"assets": "9523809523",
"count": 3,
"implied_annualized_rate": "0.052"
}
],
"time_to_maturity_seconds": 86400,
"rate_calculation": "(1 / (price / 1e18) - 1) * seconds_per_year / seconds_to_maturity",
"fees_included": false
},
"warnings": [
"Market state is currently unavailable."
],
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/fixed-rate/markets/orderbookGet fixed-rate lending market order book▾
dataline-api · inspector$inspect /defi/lending/fixed-rate/markets/orderbookready
Parameters5
| Name | Type | Required | Description |
|---|---|---|---|
| network | enumbase | no | |
| protocol | enummorpho_midnight | no | |
| market_id* | string | yes | |
| side | enumbidaskall | no | |
| depth | integer | no |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.bids | object[] | no | Aggregated borrower-side price levels. |
| data.bids[] | object | no | |
| data.bids[].tick | integer | no | |
| data.bids[].price | string | no | |
| data.bids[].units | string | no | |
| data.bids[].assets | string | no | |
| data.bids[].count | integer | no | |
| data.bids[].implied_annualized_rate | string | no | |
| data.asks | object[] | no | Aggregated lender-side price levels. |
| data.asks[] | object | no | |
| data.asks[].tick | integer | no | |
| data.asks[].price | string | no | |
| data.asks[].units | string | no | |
| data.asks[].assets | string | no | |
| data.asks[].count | integer | no | |
| data.asks[].implied_annualized_rate | string | no | |
| data.time_to_maturity_seconds | integer | no | |
| data.rate_calculation | string | yes | Formula used to derive annualized rates from fixed-point prices. |
| data.fees_included | boolean | no | Whether the derived rates include settlement or protocol fees. |
| data.protocol | string | no | Morpho Midnight product discriminator. |
| data.market_id | string | yes | Globally unique Midnight market ID. |
| data.source | object | yes | |
| data.source.protocol | string | no | Lending product identifier. |
| data.source.product | string | yes | Upstream lending product that supplied the data. |
| data.source.source_kind | string | no | Kind of upstream source used for this response. |
| data.source.chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source.indexed_block | integer | no | |
| data.source.source_timestamp | string | no | |
| data.source.fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source.is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"bids": [
{
"tick": 42,
"price": "952380952380952380",
"units": "10000000000",
"assets": "9523809523",
"count": 3,
"implied_annualized_rate": "0.052"
}
],
"asks": [
{
"tick": 42,
"price": "952380952380952380",
"units": "10000000000",
"assets": "9523809523",
"count": 3,
"implied_annualized_rate": "0.052"
}
],
"time_to_maturity_seconds": 86400,
"rate_calculation": "(1 / (price / 1e18) - 1) * seconds_per_year / seconds_to_maturity",
"fees_included": false,
"protocol": "morpho_midnight",
"market_id": "0xd92de5e7fbbde5a5e161787426982f7e1b01fb53a7060f95c021236d74447614",
"source": {
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/defi/lending/account/positionsGet lending positions for a wallet▾
dataline-api · inspector$inspect /defi/lending/account/positionsready
Parameters4
| Name | Type | Required | Description |
|---|---|---|---|
| wallet_address* | string | yes | |
| network | enumbase | no | |
| protocol | enumAllmorpho_bluemorpho_midnightaave_v3 | no | Lending protocol to query. All queries every supported protocol independently. |
| position_type | enumAllSupplyBorrowCollateralLend | no | Optional position filter. Supply, Borrow, and Collateral apply to Morpho Blue and Aave V3; Lend applies to Morpho Midnight. |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.wallet_address | string | yes | Wallet address whose lending positions were queried. |
| data.network | enumbase | no | |
| data.protocol | string | no | Morpho Blue product discriminator. |
| data.summary | object | yes | |
| data.summary.blue_supplied_usd | string | no | |
| data.summary.blue_borrowed_usd | string | no | |
| data.summary.blue_collateral_usd | string | no | |
| data.summary.vault_assets_usd | string | no | |
| data.summary.midnight_credit_usd | string | no | |
| data.summary.midnight_debt_usd | string | no | |
| data.blue_positions | object[] | no | Morpho Blue positions matching the requested filters. |
| data.blue_positions[] | object | no | |
| data.blue_positions[].product | string | no | Morpho product for this position. |
| data.blue_positions[].position_types | enum(All|Supply|Borrow|Collateral|Lend)[] | no | Non-zero position roles held in the market. |
| data.warnings | string[] | no | Partial-data warnings returned while querying Morpho Blue. |
| data.warnings[] | string | no | |
| data.source | object[] | no | Morpho Blue source metadata. |
| data.source[] | object | no | |
| data.source[].protocol | string | no | Lending product identifier. |
| data.source[].product | string | yes | Upstream lending product that supplied the data. |
| data.source[].source_kind | string | no | Kind of upstream source used for this response. |
| data.source[].chain_id | integer | no | EVM chain ID. Base mainnet is 8453. |
| data.source[].fetched_at | string | yes | ISO 8601 timestamp when Data API received the upstream response. |
| data.source[].is_stale | boolean | no | Whether the returned upstream snapshot is considered stale. |
Response example
{
"code": 0,
"msg": "success",
"data": {
"wallet_address": "0x821880a3E2bac432d67E5155e72BB655Ef65fa5E",
"network": "base",
"protocol": "morpho_blue",
"summary": {
"blue_supplied_usd": "1010",
"blue_borrowed_usd": "505",
"blue_collateral_usd": "3000",
"vault_assets_usd": "1000",
"midnight_credit_usd": null,
"midnight_debt_usd": null
},
"blue_positions": [
{
"product": "Blue",
"position_types": [
"Supply",
"Collateral"
],
"market": null,
"supply_shares": "1000000000",
"supply_assets": "1010000000",
"supply_assets_usd": "1010",
"borrow_shares": "500000000",
"borrow_assets": "505000000",
"borrow_assets_usd": "505",
"collateral": "1000000000000000000",
"collateral_usd": "3000"
}
],
"warnings": [
""
],
"source": [
{
"protocol": "morpho_blue",
"product": "Blue",
"source_kind": "official_api",
"chain_id": 8453,
"indexed_block": 47457420,
"source_timestamp": "2026-08-04T08:00:00Z",
"fetched_at": "2026-08-04T08:00:00Z",
"is_stale": false
}
]
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
Prediction markets
Events, markets, and prediction odds from Polymarket — normalized to a single schema.
GET/prediction/events/listPrediction Event List▾
dataline-api · inspector$inspect /prediction/events/listready
Parameters7
| Name | Type | Required | Description |
|---|---|---|---|
| category | enumPoliticsSportsFinanceCryptoGeopoliticsCultureWorldElectionsMentionsEconomyTechAllTrendingNewEarnings | no | Prediction event category |
| query | string | no | Optional search keyword |
| page | integer | no | Page number |
| limit | integer | no | Page size |
| is_active | boolean | no | Event active status |
| sort | enumvolumevolume24hrstartDateendDatecreatedAtupdatedAt | no | Sort field. Supported values: volume, volume24hr, startDate, endDate, createdAt, updatedAt. |
| order | enumdescasc | no | Sort direction |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object[] | no | |
| data[] | object | no | |
| data[].provider | string | yes | Event provider |
| data[].event_id | integer | yes | Prediction event ID |
| data[].slug | string | no | |
| data[].title | string | yes | Event title |
| data[].volume | number | no | |
| data[].volume_24h | number | no | |
| data[].open_time | string | no | |
| data[].close_time | string | no | |
| data[].is_active | boolean | yes | Whether the event is active |
Response example
{
"code": 0,
"msg": "success",
"data": [
{
"provider": "string",
"event_id": 0,
"slug": "",
"title": "",
"volume": 0,
"volume_24h": 0,
"open_time": "",
"close_time": "",
"is_active": false
}
]
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
GET/prediction/events/detailPrediction Event Detail▾
dataline-api · inspector$inspect /prediction/events/detailready
Parameters2
| Name | Type | Required | Description |
|---|---|---|---|
| slug | string | no | Prediction event slug. If provided, slug lookup takes precedence over event_id. |
| event_id | integer | no | Prediction event ID |
Responses3
200Successful Response
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| code | integer | no | Business code |
| msg | string | no | Message |
| data | object | no | |
| data.provider | string | yes | Event provider |
| data.event_id | integer | yes | Prediction event ID |
| data.slug | string | no | |
| data.title | string | yes | Event title |
| data.rules | string[] | no | |
| data.rules[] | string | no | |
| data.open_time | string | no | |
| data.close_time | string | no | |
| data.volume | number | no | |
| data.volume_24h | number | no | |
| data.summary_data | object | no | |
| data.url | object | no | |
| data.markets | object | no | |
| data.is_active | boolean | yes | Whether the event is active |
| data.outcomes | object[] | no | |
| data.outcomes[] | object | no |
Response example
{
"code": 0,
"msg": "success",
"data": {
"provider": "string",
"event_id": 0,
"slug": "",
"title": "",
"rules": [
""
],
"open_time": "",
"close_time": "",
"volume": 0,
"volume_24h": 0,
"summary_data": {},
"url": {},
"markets": {},
"is_active": false,
"outcomes": [
{}
]
}
}402x402 payment required or settlement failed.
422Validation Error
Response schema
| Field path | Type | Required | Description |
|---|---|---|---|
| detail | object[] | no | |
| detail[] | object | no | |
| detail[].loc | string | integer[] | yes | |
| detail[].loc[] | string | yes | |
| detail[].msg | string | yes | |
| detail[].type | string | yes | |
| detail[].input | string | no | |
| detail[].ctx | object | no |
Response example
{
"detail": [
{
"loc": [
""
],
"msg": "",
"type": "",
"input": "",
"ctx": {}
}
]
}$request console
No API key set — expect 401 on protected routes.
Query JSON
Plug intent.
Get data.
Ship in five minutes. No auth gate on the playground.