This repository contains runnable, production-style examples demonstrating how to use the Nubra Python SDK for Trading and Market Data APIs.
All examples use the official Nubra Python SDK and are designed to be:
- Execution-grade
- Easy to extend
- Identical across UAT and LIVE environments
- Authentication (TOTP, environment-based login)
- Place, modify, and cancel orders
- Basket & multi-order execution
- Flexi Orders for Options Strategies
- Market data (LTP, OHLC, historical data)
- Margin and risk calculations
These examples focus on SDK-first usage and abstract away raw REST handling.
- Python 3.9+
- Nubra API credentials
- Nubra Python SDK installed
-
Python SDK Docs
https://nubra.io/products/api/docs/python-sdk/ -
Full API Documentation
https://nubra.io/products/api/docs/ -
Access Our Offfcial Python SDK at: https://github.com/NubraAPI/nubra-python-sdk
- Examples default to UAT for safe testing
- Switch to
NubraEnv.PRODfor live trading - Each folder contains standalone, copy-paste-ready scripts