openalgo-python

openalgo-marketplace

OtherClaude Codeby OpenAlgo

Summary

Complete OpenAlgo Python SDK integration for algorithmic trading. Build trading strategies, options strategies, real-time dashboards, and full-stack trading applications. Supports 25+ Indian brokers with unified API. Includes 6 skills.

Install to Claude Code

/plugin install openalgo-python@openalgo-marketplace

Run in Claude Code. Add the marketplace first with /plugin marketplace add marketcalls/openalgo-claude-plugin if you haven't already.

README.md

OpenAlgo Marketplace

Official Claude Code plugin marketplace for OpenAlgo - the unified algorithmic trading platform for Indian markets.

About OpenAlgo

OpenAlgo provides a single API to connect with 25+ Indian brokers. Write your trading strategy once, deploy it with any broker.

Available Plugins

openalgo-python

Complete OpenAlgo Python SDK integration for algorithmic trading. Includes 6 skills:

| Skill | Description | |-------|-------------| | trading-core | Order placement, smart orders, basket orders, split orders | | options-trading | Options strategies (Iron Condor, Straddle, Spreads), Greeks calculation | | market-data | Real-time quotes, historical data, WebSocket streaming, option chains | | visualization | Candlestick charts, payoff diagrams, Streamlit dashboards | | portfolio | Funds, positions, holdings, margin calculator | | technical-indicators | TA-Lib indicators (RSI, MACD, Bollinger), signals, pattern scanner |

Installation

1. Add the Marketplace

/plugin marketplace add https://github.com/marketcalls/openalgo-claude-plugin

2. Install the Plugin

/plugin install openalgo-python@openalgo-marketplace

3. Restart Claude Code

After installation, restart Claude Code to load the new plugins.

4. Set Environment Variables

# Linux/macOS
export OPENALGO_API_KEY="your_api_key_here"
export OPENALGO_HOST="http://127.0.0.1:5000"

# Windows
setx OPENALGO_API_KEY "your_api_key_here"
setx OPENALGO_HOST "http://127.0.0.1:5000"

Quick Start

Place an Order

claude "buy 1 share of RELIANCE at market price"

Create Options Strategy

claude "create an iron condor on NIFTY expiring 07JAN25 with 65 quantity"

> Note: NIFTY weekly options expire on Tuesday. Lot size is 65.

Get Market Data

claude "get the current price of NIFTY and BANKNIFTY"

Build a Dashboard

claude "create a Streamlit dashboard showing my portfolio positions and P&L"

Features

Unified Symbol Format

OpenAlgo standardizes symbols across all brokers:

| Type | Format | Example | |------|--------|---------| | Equity | SYMBOL | RELIANCE, TCS | | Future | SYMBOL[DDMMMYY]FUT | NIFTY30JAN25FUT | | Option | SYMBOL[DDMMMYY][STRIKE][CE/PE] | NIFTY30JAN2526000CE |

Supported Exchanges

  • NSE - National Stock Exchange (Equity)
  • BSE - Bombay Stock Exchange (Equity)
  • NFO - NSE Futures & Options
  • BFO - BSE Futures & Options
  • CDS - NSE Currency Derivatives
  • BCD - BSE Currency Derivatives
  • MCX - Multi Commodity Exchange
  • NSE_INDEX - NSE Indices (NIFTY, BANKNIFTY)
  • BSE_INDEX - BSE Indices (SENSEX, BANKEX)

Options Offset System

Select strikes relative to ATM:

| Offset | Meaning | |--------|---------| | ATM | At The Money | | ITM1-ITM10 | In The Money | | OTM1-OTM10 | Out of The Money |

Real-time Streaming

WebSocket support for live data:

from openalgo import api

client = api(
    api_key='your_key',
    host='http://127.0.0.1:5000',
    ws_url='ws://127.0.0.1:8765'
)

client.connect()
client.subscribe_ltp([
    {"exchange": "NSE_INDEX", "symbol": "NIFTY"},
    {"exchange": "NSE", "symbol": "RELIANCE"}
], on_data_received=lambda data: print(data))

Documentation

Supported Brokers

OpenAlgo supports 25+ Indian brokers. See the complete list at:

https://docs.openalgo.in/connect-brokers/brokers

Contributing

Contributions are welcome! Please read the CLAUDE.md for development guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Links

Related plugins

Browse all →