1. Generate Forecast
Endpoint: /forecast/v2/forecast
Method: POST
Description: Generates price forecasts for cryptocurrency tokens on the Solana blockchain, providing price predictions, volatility information, and support/resistance levels.
Request
Headers:
Content-Type: application/json
Authorization: Bearer <your_token>
Body:
{
"token_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"timeframe": 60,
}
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
token_address | string | Yes | The mint address of the token to forecast |
timeframe | integer | No | Candle timeframe in minutes (5, 15, 60, or 240). Default is 60 |
Response
Success (200 OK):
{
"token_details": {
"name": "USD Coin",
"symbol": "USDC",
"description": "USD Coin (USDC) is a stablecoin pegged to the US dollar",
"supply": "5234532100000000",
"decimals": 6,
"price_per_token": 1.00
},
"current_price": 1.00,
"consensus_score": 0.89,
"forecast": [
{
"timestamp": "2025-02-26T14:00:00.000Z",
"price": 1.0002
},
{
"timestamp": "2025-02-26T15:00:00.000Z",
"price": 1.0001
},
// Additional forecast points...
],
"input_data": [
{
"timestamp": "2025-02-25T14:00:00.000Z",
"price": 0.9998
},
{
"timestamp": "2025-02-25T15:00:00.000Z",
"price": 0.9999
},
// Additional historical data points...
],
"volatility_info": {
"annualized_stdev_estimate": 0.0012,
"atr": 0.0005
},
"support_resistance": [
{
"price": 0.9995,
"type": "support"
},
{
"price": 1.0005,
"type": "resistance"
}
],
"trade_levels": {
"action": "BUY",
"entry_price": 0.9998,
"stop_loss": 0.9992,
"take_profit": 1.0006,
"support_levels": [0.9995, 0.9990],
"resistance_levels": [1.0005, 1.0010],
"hit_probabilities": {
"p_hit_tp": 0.68,
"p_hit_sl": 0.22,
"p_no_hit": 0.10
}
},
"technical_indicators": {
"ma20_latest": 0.9999,
"ma50_latest": 1.0001,
"rsi": 54.2,
"stoch_rsi": 62.5,
"stoch_rsi_k": 65.3,
"stoch_rsi_d": 58.7,
"ma20_series": [
{
"timestamp": "2025-02-25T10:00:00.000Z",
"value": 0.9997
},
// Additional MA20 data points...
],
"ma50_series": [
// MA50 data points...
]
}
}
Response Fields
Field | Type | Description |
---|---|---|
token_details | object | Information about the token |
current_price | number | Current token price |
consensus_score | number | Confidence score of the forecast (0-1) |
forecast | array | Array of predicted price points with timestamps |
input_data | array | Historical data used for the forecast |
volatility_info | object | Volatility metrics |
support_resistance | array | Key support and resistance price levels |
trade_levels | object | Termi Trading |
technical_indicators | object | Technical indicator values |