Lstm_1 / API_CREDENTIALS.md
AgentCrafter's picture
Upload 22 files
d13574f verified
|
Raw
History Blame Contribute Delete
1.44 kB

Castor Price Forecasting API - Generated Credentials

Your API Key

API_KEY: castor_d167aa169b5e4219a66779e45fbaaefe

Server Details

Quick Test

Health Check

curl http://127.0.0.1:5000/api/health

Get Forecast

curl -X POST http://127.0.0.1:5000/api/forecast \
  -H "Content-Type: application/json" \
  -H "X-API-Key: castor_d167aa169b5e4219a66779e45fbaaefe" \
  -d '{
    "product": "Castor",
    "start_date": "2025-12-01",
    "end_date": "2026-01-31"
  }'

For App Developer Integration

  1. Use the API Key: castor_d167aa169b5e4219a66779e45fbaaefe
  2. Server Address:
    • For local testing: http://127.0.0.1:5000
    • For network access: http://172.16.32.97:5000
  3. Authentication: Add header X-API-Key: castor_d167aa169b5e4219a66779e45fbaaefe

Deployment to Production

See DEPLOYMENT_GUIDE.md for complete deployment instructions with:

  • Docker support
  • Gunicorn setup
  • Environment variable configuration
  • Error handling best practices

Files Available

  • api_production.py - Production API server
  • DEPLOYMENT_GUIDE.md - Complete deployment guide
  • api_keys.json - Stores all generated keys
  • daily_oilseeds_full_ml_dataset_2015_01_01_2025_12_02.csv - Data file