get_pi_cycle_top
Identifies Bitcoin market cycle peaks by analyzing the 111DMA and 2x350DMA moving average crossovers, helping traders recognize potential top signals based on historical patterns.
Instructions
The Pi Cycle Top indicator uses the 111DMA and 2x350DMA to identify Bitcoin market tops. When the 111DMA crosses above the 2x350DMA, it historically typically signals a cycle peak within about 3 days, reflecting Bitcoin's long-term cyclical behavior
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/desk3_service/server.py:176-185 (handler)The core handler function that implements the 'get_pi_cycle_top' tool by fetching data from the Desk3 API endpoint for BTC Pi Cycle Top indicator.async def get_pi_cycle_top() -> dict[str, Any]: """ Get BTC Pi Cycle Top indicator data. :return: Pi Cycle Top indicator data using 111DMA and 2x350DMA to identify Bitcoin market tops """ url = 'https://mcp.desk3.io/v1/market/pi-cycle-top' try: return request_api('get', url) except Exception as e: raise RuntimeError(f"Failed to fetch Pi Cycle Top indicator data: {e}")
- src/desk3_service/server.py:645-653 (registration)Registration of the 'get_pi_cycle_top' tool in the list_tools handler, including its name, description, and empty input schema (no parameters required).types.Tool( name="get_pi_cycle_top", description="The Pi Cycle Top indicator uses the 111DMA and 2x350DMA to identify Bitcoin market tops. When the 111DMA crosses above the 2x350DMA, it historically typically signals a cycle peak within about 3 days, reflecting Bitcoin's long-term cyclical behavior", inputSchema={ "type": "object", "properties": {}, "required": [], }, ),
- src/desk3_service/server.py:839-849 (handler)The tool dispatcher in call_tool that handles invocation of 'get_pi_cycle_top' by calling the handler function and returning JSON-formatted response.case "get_pi_cycle_top": try: data = await get_pi_cycle_top() return [ types.TextContent( type="text", text=json.dumps(data, indent=2), ) ] except Exception as e: raise RuntimeError(f"Failed to fetch Pi Cycle Top indicator data: {e}")