DEV Community

RileyCraig14
RileyCraig14

Posted on

Add prediction market signals to CrewAI in 5 lines

CrewAI + Kalshi/Polymarket signals in 5 lines. Free, no key.

from crewai.tools import BaseTool
import requests

class NEXUSSignalTool(BaseTool):
    name: str = "Market Signal"
    description: str = "Live prediction market signal. BTC ETH FED CPI GDP"
    def _run(self, symbol: str) -> str:
        d = requests.get(f"https://nexus-agent-xa12.onrender.com/v1/signals?symbol={symbol}").json()
        return f"{symbol}: {d['signal']} ({d['confidence']}%)"
Enter fullscreen mode Exit fullscreen mode

Free: curl https://nexus-agent-xa12.onrender.com/v1/signals?symbol=BTC

Paid arb ($0.02 USDC x402): https://nexus-agent-xa12.onrender.com/pay-guide

Top comments (0)