X-Payment header.WWW-Authenticate body describing payment options.X-Payment header.Bull and bear signals for the top 10 cryptocurrencies by market cap across 8 timeframes. Coin list is sourced from CryptoCompare at server startup: BTC, ETH, USDT, XRP, BNB, USDC, SOL, HYPE, TRX, STETH.
GET /signals X-Payment: <signed-x402-authorization>
{
"Bulls": {
"BTC": ["1m", "5m", "1h", "1D"],
"SOL": ["4h", "8h"]
},
"Bears": {
"ETH": ["30m", "4h"],
"BNB": ["1m", "5m", "15m"]
},
"meta": {
"sma_period": 14,
"timeframes": ["1m", "5m", "15m", "30m", "1h", "4h", "8h", "1D"],
"coins_analyzed": 10,
"timestamp": "2025-01-01T00:00:00.000Z"
}
}
Returns only the bullish coins and their bullish timeframes from the top 10 by market cap.
PUT /signals/bull X-Payment: <signed-x402-authorization>
{
"signal": "bull",
"coins": {
"BTC": ["1m", "5m", "1h", "1D"],
"SOL": ["4h", "8h"]
},
"meta": {
"sma_period": 14,
"timeframes": ["1m", "5m", "15m", "30m", "1h", "4h", "8h", "1D"],
"coins_analyzed": 10,
"timestamp": "2025-01-01T00:00:00.000Z"
}
}
Returns only the bearish coins and their bearish timeframes from the top 10 by market cap.
PUT /signals/bear X-Payment: <signed-x402-authorization>
{
"signal": "bear",
"coins": {
"ETH": ["30m", "4h"],
"BNB": ["1m", "5m", "15m"]
},
"meta": {
"sma_period": 14,
"timeframes": ["1m", "5m", "15m", "30m", "1h", "4h", "8h", "1D"],
"coins_analyzed": 10,
"timestamp": "2025-01-01T00:00:00.000Z"
}
}
Bull and bear signals for a single coin by symbol (e.g. BTC, ETH, DOGE). Accepts any symbol supported by CryptoCompare — not limited to the top 10.
PUT /signals/BTC X-Payment: <signed-x402-authorization>
{
"symbol": "BTC",
"Bulls": ["1m", "5m", "1h", "1D"],
"Bears": ["30m"],
"meta": {
"sma_period": 14,
"timeframes": ["1m", "5m", "15m", "30m", "1h", "4h", "8h", "1D"],
"timestamp": "2025-01-01T00:00:00.000Z"
}
}
| Signal | Condition |
|---|---|
| Bull | Last close price > SMA(14) for that timeframe |
| Bear | Last close price < SMA(14) for that timeframe |
| Neutral | Price equals SMA exactly — omitted from response |
| Key | Candle Size | Data Source |
|---|---|---|
| 1m | 1 minute | CryptoCompare histominute |
| 5m | 5 minutes | CryptoCompare histominute (aggregate=5) |
| 15m | 15 minutes | CryptoCompare histominute (aggregate=15) |
| 30m | 30 minutes | CryptoCompare histominute (aggregate=30) |
| 1h | 1 hour | CryptoCompare histohour |
| 4h | 4 hours | CryptoCompare histohour (aggregate=4) |
| 8h | 8 hours | CryptoCompare histohour (aggregate=8) |
| 1D | 1 day | CryptoCompare histoday |
| Status | Meaning |
|---|---|
| 402 Payment Required | No or invalid X-Payment header |
| 404 Not Found | Unknown coin symbol (PUT only) |
| 429 Too Many Requests | CryptoCompare rate limit — retry shortly |
| 500 Internal Server Error | Upstream API error or facilitator failure |