Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions defillama-openapi-pro.json
Original file line number Diff line number Diff line change
Expand Up @@ -12593,10 +12593,11 @@
}
}
},
"/yields/perps": {
"/api/perpFundingRates": {
"get": {
"tags": ["yields"],
"summary": "Funding rates and Open Interest of perps across exchanges, including both Decentralized and Centralized",
"summary": "Funding rates and open interest of perpetual futures",
"description": "Latest funding rate, open interest and index price for Binance and OKX perpetual markets, with the 7d and 30d average and sum of settled funding rates.",
"responses": {
"200": {
"description": "successful operation",
Expand Down Expand Up @@ -12684,12 +12685,12 @@
{
"lang": "javascript",
"label": "JavaScript SDK",
"source": "const result = await proClient.yields.getPerps()"
"source": "const result = await proClient.yields.getPerpFundingRates()"
},
{
"lang": "python",
"label": "Python SDK",
"source": "result = pro_client.yields.getPerps()"
"source": "result = pro_client.yields.getPerpFundingRates()"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/defillama-sdk-snippets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const baseMappings = new Map([
['/chart/{pool}', mapEntry('yields', 'getPoolChart', ["'<pool>'"], true)],
['/poolsBorrow', mapEntry('yields', 'getBorrowPools', [], true)],
['/chartLendBorrow/{pool}', mapEntry('yields', 'getLendBorrowChart', ["'<pool>'"], true)],
['/perps', mapEntry('yields', 'getPerps', [], true)],
['/perpFundingRates', mapEntry('yields', 'getPerpFundingRates', [], true)],
['/lstRates', mapEntry('yields', 'getLstRates', [], true)],
['/overview/dexs', mapEntry('volumes', 'getDexOverview')],
['/overview/dexs/{chain}', mapEntry('volumes', 'getDexOverviewByChain', ["'<chain>'"])],
Expand Down