get_yield_perps
Retrieve funding rates and open interest for perpetual contracts across decentralized and centralized exchanges using the MCP server for streamlined crypto data access.
Instructions
GET /yields/perps
Funding rates and Open Interest of perps across exchanges, including both Decentralized and Centralized.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- defillama_server.py:374-381 (handler)The handler function for the 'get_yield_perps' tool, decorated with @mcp.tool() for registration. It fetches funding rates and Open Interest data for perpetuals from the DefiLlama API endpoint '/yields/perps' using the shared make_request helper.@mcp.tool() async def get_yield_perps() -> str: """GET /yields/perps Funding rates and Open Interest of perps across exchanges, including both Decentralized and Centralized. """ result = await make_request('GET', '/yields/perps') return str(result)