2.8 KiB
2.8 KiB
MCP Predictions Server
ML Predictions Marketplace MCP Server for the Trading Platform. Manages prediction packages, purchases, delivery, and outcome validation.
Prediction Types
| Type | Description | VIP Required |
|---|---|---|
| AMD | Accumulation/Manipulation/Distribution | - |
| RANGE | Range detection and breakout | - |
| TPSL | Take Profit/Stop Loss optimization | Platinum+ |
| ICT_SMC | ICT/SMC Smart Money Concepts | Platinum+ |
| STRATEGY_ENSEMBLE | Multi-model ensemble | Diamond |
Asset Classes
- FOREX (e.g., EURUSD, GBPJPY)
- CRYPTO (e.g., BTCUSD, ETHUSD)
- INDICES (e.g., SPX500, NAS100)
- COMMODITIES (e.g., XAUUSD, XTIUSD)
Quick Start
npm install
cp .env.example .env
npm run dev
API Endpoints
Packages
POST /api/v1/packages- Create package (admin)GET /api/v1/packages- List packagesGET /api/v1/packages/:id- Get packagePATCH /api/v1/packages/:id/status- Update status
Purchases
POST /api/v1/purchases- Purchase packageGET /api/v1/purchases/:id- Get purchaseGET /api/v1/users/:userId/purchases- User purchases
Predictions
POST /api/v1/predictions- Request predictionGET /api/v1/predictions- List predictionsGET /api/v1/predictions/:id- Get prediction
Outcomes
POST /api/v1/predictions/:id/outcome- Record outcomeGET /api/v1/predictions/:id/outcome- Get outcome
Stats
GET /api/v1/users/:userId/prediction-stats- User stats
MCP Tools (13)
| Tool | Description |
|---|---|
prediction_create_package |
Create package |
prediction_get_package |
Get package |
prediction_list_packages |
List packages |
prediction_update_package_status |
Update status |
prediction_purchase_package |
Purchase package |
prediction_get_purchase |
Get purchase |
prediction_get_user_purchases |
User purchases |
prediction_request |
Request prediction |
prediction_get |
Get prediction |
prediction_list |
List predictions |
prediction_record_outcome |
Record outcome |
prediction_get_outcome |
Get outcome |
prediction_get_user_stats |
User stats |
Prediction Status
PENDING- Awaiting deliveryDELIVERED- Prediction deliveredEXPIRED- Prediction expiredVALIDATED- Outcome verified (win/partial)INVALIDATED- Outcome verified (loss/expired)
Outcome Results
WIN- Prediction was correctLOSS- Prediction was incorrectPARTIAL- Partially correctEXPIRED- Price not reached before expiryCANCELLED- Trade cancelled
Features
- Package-based prediction credits
- VIP tier requirements for premium models
- 24-hour prediction validity
- Outcome tracking and validation
- Win rate statistics
- Integration with Wallet and VIP services
License
UNLICENSED - Private