Source:
rekko_tools.py in the rekko-skill repoRekkoClient is an async HTTP client that wraps all Rekko API endpoints. It supports both API key auth and x402 USDC micropayments on Base L2.
Installation
Constructor
Methods
Market Intelligence
Screening & Discovery
Deep Research
Strategy & Portfolio
Arbitrage
Correlation
Trading
Webhooks
x402 payment flow
When x402 is enabled, the client handles the payment handshake automatically:- Client makes a request to
api.rekko.ai - Server returns
HTTP 402with a payment envelope - Client signs a USDC payment on Base L2 (chain ID 8453)
- Client retries the request with the signed payment proof
- Server verifies and settles the payment, returns data
RekkoClient handles the entire loop.