Learn by Doing

API Tutorials

Master OptiBid Energy API integration with our hands-on tutorials. From basic setup to advanced automation, learn through practical examples and real-world scenarios.

Tutorial Categories

Getting Started

Learn the basics of API authentication, environment setup, and your first API calls.

3 tutorials • 45 minutes

Trading Automation

Build automated trading strategies using market data, alerts, and execution APIs.

5 tutorials • 2 hours

Advanced Integration

Master WebSocket streaming, error handling, rate limiting, and production deployment.

4 tutorials • 1.5 hours

Getting Started Tutorials

Tutorial 1: API Authentication & Setup

Learn how to authenticate with OptiBid Energy API and set up your development environment.

15 min

What You'll Learn

  • • Generate and manage API keys
  • • Set up authentication headers
  • • Handle authentication errors
  • • Test your first API call

Prerequisites

  • • OptiBid Energy account
  • • Basic understanding of HTTP APIs
  • • Text editor or IDE
  • • API key from your dashboard

Tutorial 2: Fetching Market Data

Learn to retrieve real-time and historical energy market data using the Market Data API.

20 min

What You'll Learn

  • • Query real-time electricity prices
  • • Access historical market data
  • • Filter data by region and time
  • • Handle large datasets efficiently

Code Examples

// Get current prices
GET /v1/market/prices?region=california

// Historical data
GET /v1/market/historical?region=california&days=30

Tutorial 3: Managing Your Portfolio

Learn to programmatically manage your energy portfolio, assets, and trading positions.

25 min

What You'll Learn

  • • Query portfolio overview
  • • Add and manage energy assets
  • • Track trading positions
  • • Monitor portfolio performance

Key Operations

// Portfolio overview
GET /v1/portfolio

// Add solar asset
POST /v1/portfolio/assets

Trading Automation Tutorials

Tutorial 4: Your First Automated Trade

Build a simple trading bot that executes trades based on price thresholds and market conditions.

30 min

What You'll Build

  • • Price monitoring system
  • • Trade execution logic
  • • Risk management controls
  • • Notification system

Technologies Used

  • • Python & OptiBid SDK
  • • WebSocket connections
  • • Database for logging
  • • Email notifications

Tutorial 5: AI-Powered Trading Strategies

Integrate machine learning forecasts with automated trading for intelligent decision making.

45 min

What You'll Learn

  • • Use AI analytics endpoints
  • • Interpret forecast data
  • • Build predictive models
  • • Implement smart order routing

Advanced Features

  • • Multi-timeframe analysis
  • • Risk-adjusted position sizing
  • • Dynamic stop-loss orders
  • • Performance backtesting

Advanced Integration

Tutorial 6: Real-time Streaming with WebSockets

Build high-performance real-time applications using WebSocket streaming for market data and alerts.

35 min

What You'll Build

  • • WebSocket connection management
  • • Real-time price monitoring dashboard
  • • Stream processing and filtering
  • • Connection resilience and reconnection

Code Preview

const ws = new WebSocket('wss://api.optibid-energy.com/v1/stream');

ws.on('message', (data) => {
  const update = JSON.parse(data);
  updatePriceDisplay(update);
});

Prefer Video Learning?

Watch our comprehensive video tutorials covering all aspects of OptiBid Energy API integration.

  • • Step-by-step screen recordings
  • • Live coding sessions
  • • Q&A with developers
  • • Best practices and tips

Video Series

Available on our YouTube channel

View Video Tutorials

Need Help with Tutorials?

Stuck on a tutorial? Our developer community and support team are here to help you succeed.