Integrate OptiBid Energy into your applications with our comprehensive REST and WebSocket APIs. Build powerful energy trading automation with real-time data and intelligent recommendations.
Use API keys for authentication. Include in the Authorization header:
Manage your energy assets and trading positions
/portfolioGet your complete portfolio overview
{
"portfolio_id": "port_12345",
"total_value": 2500000,
"energy_assets": [
{
"asset_id": "solar_001",
"type": "solar",
"capacity_mw": 50,
"location": "California",
"current_output_mw": 45.2,
"status": "active"
}
],
"trading_positions": [
{
"position_id": "pos_67890",
"commodity": "electricity",
"quantity": 100,
"price": 45.50,
"timestamp": "2025-12-02T00:30:00Z"
}
]
}Real-time and historical energy market data
/market/pricesGet current energy prices
/market/streamWebSocket stream for real-time price updates
// Connection
wss://api.optibid-energy.com/v1/market/stream?api_key=YOUR_KEY
// Sample message
{
"type": "price_update",
"region": "california",
"commodity": "electricity",
"price": 45.67,
"timestamp": "2025-12-02T00:30:14Z",
"change": +0.23
}Machine learning insights and optimization recommendations
/analytics/forecastGet AI-powered energy demand and price forecasts
region - Geographic region codehours_ahead - Forecast horizon (1-168)granularity - Time interval (15m, 1h, 1d)Execute trades and manage automated strategies
/trading/executeExecute a trade order
{
"action": "buy",
"commodity": "electricity",
"quantity": 100,
"region": "california",
"order_type": "limit",
"price_limit": 45.50,
"valid_until": "2025-12-02T01:30:00Z"
}Full-featured Python client with async support
pip install optibid-energy
Browser and Node.js compatible client
npm install @optibid/js-sdk
1,000 requests/hour
5,000 requests/hour
Custom limits and dedicated support
Our developer team is here to help you integrate successfully with OptiBid Energy APIs.