Skip to content

Commit 53eac97

Browse files
committed
add open-interest in free and pro API
1 parent 9ea0f5e commit 53eac97

File tree

2 files changed

+215
-0
lines changed

2 files changed

+215
-0
lines changed

defillama-openapi-free.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,6 +2010,116 @@
20102010
}
20112011
}
20122012
},
2013+
"/overview/open-interest": {
2014+
"get": {
2015+
"tags": ["perps"],
2016+
"summary": "List all open interest dex exchanges along with summaries of their open interest",
2017+
"servers": [
2018+
{
2019+
"url": "https://api.llama.fi"
2020+
}
2021+
],
2022+
"parameters": [
2023+
{
2024+
"name": "excludeTotalDataChart",
2025+
"in": "query",
2026+
"required": true,
2027+
"description": "true to exclude aggregated chart from response",
2028+
"schema": {
2029+
"type": "boolean",
2030+
"example": true
2031+
}
2032+
},
2033+
{
2034+
"name": "excludeTotalDataChartBreakdown",
2035+
"in": "query",
2036+
"required": true,
2037+
"description": "true to exclude broken down chart from response",
2038+
"schema": {
2039+
"type": "boolean",
2040+
"example": true
2041+
}
2042+
}
2043+
],
2044+
"responses": {
2045+
"200": {
2046+
"description": "Overview of all open interest DEXs",
2047+
"content": {
2048+
"application/json": {
2049+
"schema": {
2050+
"type": "object",
2051+
"properties": {
2052+
"protocols": {
2053+
"type": "array",
2054+
"items": {
2055+
"type": "object",
2056+
"properties": {
2057+
"name": {
2058+
"type": "string",
2059+
"example": "Hyperliquid Perps"
2060+
},
2061+
"displayName": {
2062+
"type": "string",
2063+
"example": "Hyperliquid Perps"
2064+
},
2065+
"total24h": {
2066+
"type": "number",
2067+
"example": 14304709847
2068+
},
2069+
"total7d": {
2070+
"type": "number",
2071+
"example": 93112774041
2072+
},
2073+
"change_1d": {
2074+
"type": "number",
2075+
"example": 3.62
2076+
},
2077+
"change_7d": {
2078+
"type": "number",
2079+
"example": 12.63
2080+
},
2081+
"chains": {
2082+
"type": "array",
2083+
"items": {
2084+
"type": "string"
2085+
},
2086+
"example": ["Hyperliquid L1"]
2087+
}
2088+
}
2089+
}
2090+
},
2091+
"totalDataChart": {
2092+
"type": "array",
2093+
"items": {
2094+
"type": "array",
2095+
"items": {
2096+
"oneOf": [
2097+
{
2098+
"type": "number"
2099+
},
2100+
{
2101+
"type": "object"
2102+
}
2103+
]
2104+
},
2105+
"example": [1654819200, 607785941]
2106+
}
2107+
},
2108+
"allChains": {
2109+
"type": "array",
2110+
"items": {
2111+
"type": "string"
2112+
},
2113+
"example": ["Hyperliquid L1", "Off Chain", "zkLighter"]
2114+
}
2115+
}
2116+
}
2117+
}
2118+
}
2119+
}
2120+
}
2121+
}
2122+
},
20132123
"/overview/fees": {
20142124
"get": {
20152125
"tags": ["fees and revenue"],

defillama-openapi-pro.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7214,6 +7214,111 @@
72147214
}
72157215
}
72167216
},
7217+
"/api/overview/open-interest": {
7218+
"get": {
7219+
"tags": ["perps"],
7220+
"summary": "List all open interest dex exchanges along with summaries of their open interest",
7221+
"parameters": [
7222+
{
7223+
"name": "excludeTotalDataChart",
7224+
"in": "query",
7225+
"required": true,
7226+
"description": "true to exclude aggregated chart from response",
7227+
"schema": {
7228+
"type": "boolean",
7229+
"example": true
7230+
}
7231+
},
7232+
{
7233+
"name": "excludeTotalDataChartBreakdown",
7234+
"in": "query",
7235+
"required": true,
7236+
"description": "true to exclude broken down chart from response",
7237+
"schema": {
7238+
"type": "boolean",
7239+
"example": true
7240+
}
7241+
}
7242+
],
7243+
"responses": {
7244+
"200": {
7245+
"description": "Overview of all open interest DEXs",
7246+
"content": {
7247+
"application/json": {
7248+
"schema": {
7249+
"type": "object",
7250+
"properties": {
7251+
"protocols": {
7252+
"type": "array",
7253+
"items": {
7254+
"type": "object",
7255+
"properties": {
7256+
"name": {
7257+
"type": "string",
7258+
"example": "Hyperliquid Perps"
7259+
},
7260+
"displayName": {
7261+
"type": "string",
7262+
"example": "Hyperliquid Perps"
7263+
},
7264+
"total24h": {
7265+
"type": "number",
7266+
"example": 14304709847
7267+
},
7268+
"total7d": {
7269+
"type": "number",
7270+
"example": 93112774041
7271+
},
7272+
"change_1d": {
7273+
"type": "number",
7274+
"example": 3.62
7275+
},
7276+
"change_7d": {
7277+
"type": "number",
7278+
"example": 12.63
7279+
},
7280+
"chains": {
7281+
"type": "array",
7282+
"items": {
7283+
"type": "string"
7284+
},
7285+
"example": ["Hyperliquid L1"]
7286+
}
7287+
}
7288+
}
7289+
},
7290+
"totalDataChart": {
7291+
"type": "array",
7292+
"items": {
7293+
"type": "array",
7294+
"items": {
7295+
"oneOf": [
7296+
{
7297+
"type": "number"
7298+
},
7299+
{
7300+
"type": "object"
7301+
}
7302+
]
7303+
},
7304+
"example": [1654819200, 607785941]
7305+
}
7306+
},
7307+
"allChains": {
7308+
"type": "array",
7309+
"items": {
7310+
"type": "string"
7311+
},
7312+
"example": ["Hyperliquid L1", "Off Chain", "zkLighter"]
7313+
}
7314+
}
7315+
}
7316+
}
7317+
}
7318+
}
7319+
}
7320+
}
7321+
},
72177322
"/api/overview/fees": {
72187323
"get": {
72197324
"tags": ["fees and revenue"],

0 commit comments

Comments
 (0)