What you’ll build
A paper-trading agent that wakes once an hour, reads RSI, MACD and Bollinger Bands for three DEX pools straight from the API, and asks a language model to decide buy, sell or hold for each, next to a plain rule-based baseline. The idea is the one behind live model-trading benchmarks such as Alpha Arena by Nof1: hand the model a compact set of ready signals per market and let it spend its reasoning on the decision rather than on arithmetic. The indicator endpoints compute those signals on the server from the same candles as pool OHLCV, so the agent’s numbers match the chart you would check by hand. This is for paper trading and research. Indicators describe the past; nothing here is financial advice.What the agent sees
For each pool, one line of JSON per hour:
About 220 characters per pool. The 24 hourly candles behind it are about 4,600 characters of JSON for the same pool, a week of them seven times that, and the model would still have to do the maths.
Run it
429 for the seconds in Retry-After. Check how that fits your plan on rate limits.
The model step uses the Anthropic SDK as an example. Any model that returns JSON works: keep the system prompt, send the states, parse the answer.
Why a free key matters here
Without a key, pool indicators cover the last 24 hours at1h and up. That is enough for the script to run, and every field above gets a value, but RSI, EMA and MACD are smoothed: each value carries weight from the candles before it, and 24 hourly candles are too few for RSI(14) to settle. The technical indicators tutorial shows the same candle’s RSI moving from 52.47 to 61.18 as the history behind it grows.
A free key opens the last 7 days at 10m and up. The script switches START to -7d when DEXPAPRIKA_API_KEY is set, which gives RSI(14) on hourly candles more than ten periods of warm-up. The key goes in the Authorization header on its own, and free keys stay on api.dexpaprika.com.
Where the free tier ends
Paid keys call
https://api-pro.dexpaprika.com. Plans are on pricing.
Make it yours
- Change the watchlist. Find pools with pool search or a token’s pools with token pools, and paste the network and address.
- Add an indicator.
indicator=emaorindicator=vwapreturnsvalue. Send only that indicator’s parameters:periodfor rsi, ema, bbands and vwap;fast_period,slow_periodandsignal_periodfor macd;std_devfor bbands. Any other parameter is refused with400. - Keep a log. Store each state with the model’s decision and the next candle’s close. That log is what tells you whether the model beats the rules.
Where to go next
- Technical indicators: every indicator, parameter and error
- Indicators reference for pools and tokens
- Rate limits: limits by plan
- Pricing and console.dexpaprika.com: plans and your key