diff --git a/defillama-openapi-pro.json b/defillama-openapi-pro.json index 87046f6b95e..e2a20440341 100644 --- a/defillama-openapi-pro.json +++ b/defillama-openapi-pro.json @@ -12593,10 +12593,11 @@ } } }, - "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/yields/perps": { + "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/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", @@ -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()" } ] } diff --git a/scripts/defillama-sdk-snippets.mjs b/scripts/defillama-sdk-snippets.mjs index 298ea0ceee2..1b23816e100 100644 --- a/scripts/defillama-sdk-snippets.mjs +++ b/scripts/defillama-sdk-snippets.mjs @@ -40,7 +40,7 @@ const baseMappings = new Map([ ['/chart/{pool}', mapEntry('yields', 'getPoolChart', ["''"], true)], ['/poolsBorrow', mapEntry('yields', 'getBorrowPools', [], true)], ['/chartLendBorrow/{pool}', mapEntry('yields', 'getLendBorrowChart', ["''"], true)], - ['/perps', mapEntry('yields', 'getPerps', [], true)], + ['/perpFundingRates', mapEntry('yields', 'getPerpFundingRates', [], true)], ['/lstRates', mapEntry('yields', 'getLstRates', [], true)], ['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/overview/dexs', mapEntry('volumes', 'getDexOverview')], ['/overview/dexs/{chain}', mapEntry('volumes', 'getDexOverviewByChain', ["''"])],