Trading and market data APIs for Indian stock markets. Build algos, options analytics, real-time dashboards and AI trading agents in Python with Nubra Python SDK.
🌐 Nubra Web · 📘 Docs · 🍳 Cookbook · 💬 Discussions · ✉️ Support
You'll need a Nubra account to use the APIs. Sign up, complete KYC, and trade on web or mobile, then automate with the SDK.
pip install nubra-sdkfrom nubra_python_sdk.start_sdk import InitNubraSdk, NubraEnv
from nubra_python_sdk.marketdata.market_data import MarketData
# UAT is the safe test environment. Switch to NubraEnv.PROD when you're ready.
nubra = InitNubraSdk(NubraEnv.UAT, env_creds=True)
chain = MarketData(nubra).option_chain("NIFTY", exchange="NSE").chain
print(chain.expiry, chain.at_the_money_strike)💡 New here? Start on UAT. Every example in our repos runs there by default, so you can explore without touching real money.
More examples: live quotes, WebSockets, placing orders
Runnable versions live in nubra-python-sdk/examples:
- 📈 Live quotes and market depth
- 📡 Streaming index ticks and order updates over WebSockets
- 🛒 Placing and tracking orders on UAT
- 📊 Option chain analytics: Greeks, OI, PCR and max pain
Using Claude, ChatGPT or Cursor? Download the Nubra Master Docs, the full SDK documentation in one Markdown file, and give it to your AI assistant so it writes correct Nubra code. Get it from the docs →
Want your AI assistant to read live market data directly? Use the Nubra MCP server:
pip install nubra-mcp| Repo | What it is | |
|---|---|---|
| 🐍 | nubra-python-sdk | Official Python SDK docs, runnable examples and API reference |
| 🍳 | nubra-cookbook | Ready-to-run strategy projects: hedging bots, backtests, OI dashboards |
| 🤖 | nubra-mcp-server | Connect Nubra market data to Claude, ChatGPT, Cursor and other AI tools |
|
📊 Options analytics Option chains with Greeks, OI, PCR and max pain, ready for screeners and dashboards. |
📡 Real-time apps WebSocket feeds for ticks, market depth, option chains and order updates. |
|
🤖 Algo strategies Place, modify and track orders, including multi-leg baskets. Backtest and test on UAT first. |
🧠 AI trading assistants Give AI agents live market data through the Nubra MCP server. |
- 🎥 Learn with YouTube: delta hedging, gamma hedging, building with MCP, and more
- 🏫 Encountered bugs? Need help Reach out at support@nubra.io
| 👋 New here? | Say hi in Discussions |
| 🙏 Stuck? | Ask in Q&A |
| 🙌 Built something? | Share it in Show and tell. We feature community projects! |
| 💡 Have an idea? | Post it in Ideas |
| 🐛 Found a bug? | Open an Issue |
| ✉️ Found a bug or need help? | Email support@nubra.io and our team will get back to you! |
⭐ If our repos help you, star them. It helps other developers find Nubra too.
Code and content here are for educational and development purposes only and do not constitute investment advice. Investments in securities markets are subject to market risks; read all related documents carefully before investing.