Releases: marketcalls/openalgo
v1.0.0.33
Version 1.0.0.33 Launched
23rd September 2025
Tradejini
- WebSocket integration added for real-time data streaming
- Improved connection stability and reconnection handling
- Full support for market data feed
- Open Interest (OI) data added to quotes for derivative markets
- Enhanced quote response with OI field
Telegram Bot Integration
- Read-only Telegram bot for trading data access
- Secure account linking with encrypted API keys
- Real-time quotes, positions, orderbook, and P&L tracking
- Intraday (5m) and daily chart generation with candlesticks
- Interactive button menus for easy navigation
- Broadcast messaging to all linked users
- Auto-start on system restart
- Rate limiting (30 commands/min per user)
- Setup Guide: https://docs.openalgo.in/trading-platform/telegram
Technical Updates
- Polling-only mode (removed webhook complexity)
- OpenAlgo SDK integration for data fetching
- Fernet encryption for API key storage
- Async operations with python-telegram-bot v22.4
- DaisyUI modal dialogs for better UX
- Automatic database migration with path detection
Security Enhancements
- Read-only access for maximum security
- Session authentication on all admin endpoints
- CSRF protection and SQL injection prevention
- Complete audit logging for commands
Bug Fixes
- Fixed DataFrame handling from history API
- Corrected SDK method calls to keyword arguments
- Resolved chart x-axis date formatting
- Fixed bot token and broadcast settings persistence
Upgrade Instructions
For detailed upgrade steps: https://docs.openalgo.in/getting-started/upgrade
New Dependencies to Install
Using Python:
pip install python-telegram-bot==22.4
pip install plotly==6.3.0
pip install kaleido==1.1.0
Using UV:
uv pip install python-telegram-bot==22.4
uv pip install plotly==6.3.0
uv pip install kaleido==1.1.0
Database Migration
After installing dependencies, run the migration:
# Using Python
cd upgrade
python migrate_telegram_bot.py
# Using UV
cd upgrade
uv run migrate_telegram_bot.py
Configuration
- Get bot token from @Botfather on Telegram
- Configure in OpenAlgo: Profile → Telegram Bot → Configuration
- Start the bot from dashboard
- Link account in Telegram: /link YOUR_API_KEY YOUR_HOST_URL
Documentation
- Telegram Bot Docs:
https://docs.openalgo.in/trading-platform/telegram
- Upgrade Guide: https://docs.openalgo.in/getting-started/upgrade
Added the Tradejini WebSocket support and OI (Open Interest) updates for derivative markets at the top
of the changelog, maintaining the same concise format.
v1.0.0.32
Version 1.0.0.32 Launched
19th September 2025
Major Features
Version Upgrade
- Core Version: Upgraded to
1.0.0.32
- Order Status: Fixes applied for both Live Mode and Analyzer Mode
- New Broker Integration: Definedge Securities fully supported
- New Strategy Hosting: Introduced
/python
web page where users can directly host and run Python strategies inside OpenAlgo
Broker Enhancements & Fixes
Aliceblue
- WebSocket: Frontend “subscribe all” stability fix
- Holdings: Issue with holdings data corrected
Definedge (New Integration)
- Broker Support: Added full integration for Definedge Securities
- Order APIs: Support for place, modify, cancel, cancelAll, and closeAllPositions
- WebSocket: Implemented, with fixes for multiple client subscription
- Placesmart Orders: Implemented
- Quotes & Funds: Data updates and holdings/funds retrieval supported
- HTTPX Pooling: Shared connection pooling standardized
Dhan
- Historical Data API: Fixes applied for date handling
Dhan Sandbox
- Historical Data API: Fixed date handling issue specific to sandbox environment
Fyers
- PNL & LTP: Calculation and data fixes
Flattrade
- WebSocket: Multiple client subscription bug fixed
Firstock
- WebSocket: Fixed handling for multiple clients subscribing to the same symbols
Groww
- WebSocket: Added quotes streaming
- Depth Data: Added for NSE, BSE, NFO, and BFO
- BSE Data: Dedicated update for exchange coverage
- Index Data: Streaming index support added
- Instrument Type Lookup: Implemented for indices
- Fixes: Inconsistent WebSocket behaviour resolved; strike and lot size columns corrected; REST API depth Nonetype bug fixed
Kotak
- Tradebook: Transaction type format fixed
- Quotes: Open Interest field added
Shoonya
- WebSocket: Multiple client subscription support fixed
- Basket Orders: Issues resolved
- Master Contract: MCX script handling and ZMQ WebSocket cleanup
Zebu
- Migrated to HTTPX: Now uses shared connection pooling for efficient requests
- WebSocket Support: Fully integrated
- Common Index Symbols: Implemented
- History & PNL Tracker: Bug fixes applied
Technical Improvements
- Python Strategy Hosting: New
/python
web module for hosting custom Python strategies inside OpenAlgo - Statistics Formatting: Enhanced formatting to preserve integer counts and properly format prices
- Orderbook Refactor: Orderbook, tradebook, positions, and holdings fetch moved from services layer for clarity
- Docker: Write permissions updated; Eventlet added in Dockerfile; Python strategy log issue fixed
- Python SDK: Updated to remove
pandas-ta
dependency and fix Numba “nopython” warnings - Installation: Ubuntu installation scripts updated; EBS config updated
Security & Dependencies
- Security Audit: Hidden vulnerabilities audit completed
- Libraries:
openalgo-python
updated to1.0.30
httpx
pooling standardized across brokers- Removed
pandas-ta
dependency
Documentation
- Readme: Updated with
ping
API function and general documentation refresh - Design Docs: Updated to reflect new broker integrations and infrastructure changes
Breaking Changes
- WebSocket Clients: Multiple-subscription changes for Groww, Definedge, Shoonya, Firstock, Flattrade, Zebu – may require client-side adjustments
- Python SDK: Removal of
pandas-ta
requires strategy developers to migrate to supported indicator libraries (pandas_ta
ortalib
)
Dependencies
- New: Eventlet (Docker runtime)
- Updated:
openalgo-python
1.0.30,httpx
pooled connections - Removed:
pandas-ta
Upgrade Instructions
See UPGRADE for detailed steps.
Migration Notes
- No database migration required in this release.
- WebSocket users (Groww, Definedge, Shoonya, Firstock, Flattrade, Zebu) must test subscription logic.
- Strategy developers: Update indicators if you depended on
pandas-ta
.
Support
- Issues: Report via GitHub Issues.
v1.0.0.31
Version 1.0.0.31 Launched
29th August 2025
Major Features
Version Upgrade
- Core Version: Upgraded to
1.0.0.31
- Python Library: Security patch updates (OpenAlgo Python + Starlette)
Broker Enhancements & Fixes
Fyers
- WebSocket Deduplication: Fixed duplicate streaming updates
- Multiple Symbol Subscription: Stability fixes for handling simultaneous symbols
- Mixed Data Issue: Resolved mis-matched packets during multi-symbol subscriptions
- OI Support: Open Interest included in Historical API
- Unsubscription Error Fix: Corrected edge-case disconnect issue
Upstox
- Multimode Subscription: Fixed WebSocket processing for multiple channels
- Current Day Data: Issue with missing daily data resolved
- Daily Timestamp: Corrected handling of daily timeframe historical data
Zerodha
- Daily Data Format: Fixed inconsistency in daily candle formatting
Flattrade
- Tradebook Values: Corrected tradebook price values to two decimal places
Order Handling
- OrderBook: Fixed market order price value display
- OrderStatus: Added average price field; removed hardcoded values
Technical Improvements
PNL Tracker & Visualization
- Intraday PNL Visualizer: New module for visualizing equity curve and drawdowns
- Screenshot & Watermark: Added OpenAlgo watermark with
html2canvas-pro
integration - Bug Fixes: Handling empty tradebook; improved PNL documentation
TradingView Enhancements
- Custom Tooltip: Timestamp rendering corrected
New APIs
- Ping API: Added lightweight health-check endpoint
Security & Dependencies
- Python Library: Updated
openalgo-python
for security - Starlette: Updated dependency for security patches
- html2canvas-pro: Patched version integrated for PNL screenshot feature
Documentation
- Readme & CSS: Updated installation and styling docs
- PNL Tracker: Added documentation for new visualization module
Breaking Changes
- Fyers WebSocket: Subscription/deduplication changes may affect custom wrappers
- Order Status: Hardcoded values removed – clients must handle API values dynamically
Dependencies
- New:
html2canvas-pro
(patched) - Updated:
openalgo-python
,starlette
- Existing broker libraries and WebSocket infra maintained
Upgrade Instructions
See UPGRADE for detailed steps.
Migration Notes
- No database migration required in this release.
- WebSocket clients (Fyers, Upstox, Flattrade) should review subscription logic.
Support
- Docs: Updated at
/docs
. - Issues: Report via GitHub Issues.
v1.0.0.30
Version 1.0.0.30 Launched
19th August 2025
Major Features
Version Upgrade
- Core Version: Upgraded to
1.0.0.30
- Python Library: Upgraded to
1.0.28
Broker Enhancements & Fixes
Fyers
- WebSocket Depth Update: Fixed handling of depth updates
- Quotes Update: Improved WebSocket streaming for quotes
- Binary Protocol Update: Enhanced HSM Binary protocol for LTP
- Frontend WebSocket Fix: Fixed frontend WebSocket issues
Zerodha
- Avg Price Fix: Resolved issue with incorrect average price in orders
Technical Improvements
Docker & WebSocket Fixes
- Ubuntu Fix: Resolved WebSocket stability issues on Ubuntu servers
- Server-Side Fixes: Improved WebSocket handling across backend services
- Frontend Fix: Updated fix for
wss
frontend compatibility
Caching Enhancements
- Restructure & Better Caching: Improved internal caching mechanism for performance
Historical Data
- Upstox: Fixed timestamp handling for daily timeframe
- Upstox: Improved chunking for historical data retrieval
- Firstock: Updated 1-minute historical data handling
Security & Profile Enhancements
- UI Fixes: Reset password mail icon corrected
- Profile Page: Default content tab issue fixed
WebSocket & Connectivity
Dhan
- New Implementation: Integrated new Dhan WebSocket handling
- 20-level ZMQ Cleanup: Resolved cleanup and dynamic symbol support
- Cross-device Fix: Fixed connectivity across devices
Wisdom / XTS Brokers
- ZMQ Port Release Fix: Resolved port release issues for stability
Documentation
- MCP Integration: Updated documentation for local MCP setup
- Installation: Revised installation instructions pointing to official docs
- Readme Updates: Multiple updates for clarity and consistency
Breaking Changes
- Cross-device WebSocket Handling: Significant update in Fyers, Flattrade, Shoonya and Dhan WebSocket systems may affect custom setups.
- Zerodha Subscribe All: Behavior updated for stability
Dependencies
- No new external dependencies.
- Improvements in WebSocket stability and caching rely on existing libraries.
Upgrade Instructions
See UPGRADE for detailed steps.
Migration Notes
- No database migration required in this release.
- WebSocket configuration updates recommended for brokers (Fyers, Dhan, Zerodha.Flattrade,Shoonya).
Support
- Docs: Updated at
/docs
. - Issues: Report via GitHub Issues.
v1.0.0.29
Version 1.0.0.29 Launched
31st July 2025
Major Features
Dual-Mode Password Reset System
- TOTP Authentication: Secure password reset using Time-based One-Time Passwords
- Email Verification: Alternative password reset via secure email links
- Method Selection UI: Users can choose between TOTP or email verification
- Fallback Support: TOTP always available, email requires SMTP configuration
Complete SMTP Integration
- Profile-Based Configuration: SMTP settings accessible via
/auth/change
profile page - Secure Credential Storage: Passwords encrypted using Fernet encryption in database
- Gmail Support: Both personal Gmail and Gmail Workspace configurations
- Real-time Testing: Built-in test email and debug functionality
- Visual Configuration: Comprehensive setup guides and troubleshooting tips
Enhanced Profile Management
- Tabbed Interface: Organized profile settings into Account & Password, SMTP Config, and TOTP tabs
- Tab Persistence: Maintains active tab after form submissions and page reloads
- TOTP Integration: QR code and secret key management directly in profile
- Visual Password Requirements: Real-time password strength indicator with progress bar
User Interface Improvements
Modern Password Requirements Display
- Badge-Style Layout: Compact rounded badges replacing vertical list
- Real-time Feedback: Icons change from ✗ to ✓ as requirements are met
- Progress Bar: Visual strength meter (None → Weak → Fair → Good → Strong)
- Color-coded States: Dynamic colors based on password strength
- Responsive Grid: 2-column layout adapting to screen size
Enhanced Email Templates
- Professional Design: Clean, modern HTML email templates
- Gmail Compatibility: Fixed button text color issues in Gmail
- Security Styling: Clear security notices and warnings
- Mobile Responsive: Templates work across all email clients
Security Enhancements
Advanced Password Security
- Strengthened Requirements: 8+ chars, uppercase, lowercase, numbers, special characters
- Real-time Validation: Instant feedback as users type passwords
- Secure Token Generation: 32-byte cryptographically secure tokens
- Session-based Validation: Server-side token management
Rate Limiting Improvements
- Separate Login Limits: 5/minute, 25/hour for login attempts
- Password Reset Limits: 15/hour for reset requests
- Configurable Rates: Environment-based rate limit configuration
- Anti-enumeration: Consistent responses preventing user enumeration
SMTP Security
- Encrypted Storage: Password encryption using Fernet symmetric encryption
- App Password Support: Full support for Gmail App Passwords
- Connection Security: Proper SSL/TLS and STARTTLS handling
- Debug Logging: Secure diagnostic information without credential exposure
📡 Broker Enhancements & WebSocket Fixes
Common WebSocket Proxy (All Brokers)
- WebSocket Stability: WebSocket made robust across Windows, macOS, and Linux
- Thread Cleanup: Fixed heartbeat thread timeouts and non-terminating threads
- Graceful Shutdown: WebSocket proxy now shuts down cleanly across all platforms
Flattrade
- Subscription Handling: Fixed rapid unsubscribe/subscribe edge cases
- Order Accuracy: Equity orders now use average price (
avgprc
) for precision - Cache & Snapshot Cleanup: Ensures all maps, snapshots, and subscriptions are cleared
Zerodha
- UI Data Streaming Fix: Resolved issue where UI wasn’t reflecting WebSocket data
- Subscription Timeout Fix: Large symbol list subscriptions no longer timeout
Firstock
- WebSocket Integration: Native Firstock WebSocket support fully integrated
- Index Symbol Handling: Common index symbols mapped and standardized
- LTP Update Fixes: Resolved inconsistencies in LTP data stream
- Historical Data Fix: Fixed historical candle fetch via REST
🛠️ Technical Improvements
Database Enhancements
- New SMTP Schema: Added 7 new columns for SMTP configuration
- Migration Support: Cross-platform Python migration scripts
- Multi-database Support: SQLite, PostgreSQL, MySQL compatibility
- Data Validation: Input sanitization and format validation
Authentication Flow Updates
- Streamlined Setup: Account creation redirects directly to login
- Improved Messaging: Clear SMTP configuration prompts
- Session Management: Enhanced session security and regeneration
- Error Handling: Comprehensive error messages and user guidance
API & Backend
- New Endpoints:
/auth/test-smtp
,/auth/debug-smtp
,/auth/smtp-config
- Enhanced Routing: Password reset email link handling
- Logging Integration: Comprehensive audit logging for security events
- Error Recovery: Graceful handling of SMTP and authentication failures
Documentation
New Documentation Files
- PASSWORD_RESET.md: Complete password reset system documentation
- SMTP_SETUP.md: Gmail configuration and troubleshooting guide
- Migration guides: Step-by-step upgrade procedures
Enhanced Existing Docs
- Updated API documentation with new endpoints
- Added security best practices
- Included troubleshooting guides
- Cross-platform installation instructions
Configuration Changes
New Environment Variables
# Rate Limiting Configuration
LOGIN_RATE_LIMIT_MIN=5 per minute
LOGIN_RATE_LIMIT_HOUR=25 per hour
RESET_RATE_LIMIT=15 per hour
# Environment Version
ENV_CONFIG_VERSION=1.0.3
Database Schema Updates
- Added
smtp_server
,smtp_port
,smtp_username
columns - Added
smtp_password_encrypted
,smtp_use_tls
columns - Added
smtp_from_email
,smtp_helo_hostname
columns
Breaking Changes
- Account Setup Flow: QR code no longer displayed after account creation
- Profile Structure: Profile page reorganized into tabbed interface
- Password Requirements: Updated visual layout (functionality unchanged)
- Environment Config: New variables required in
.env
file
Dependencies
- No new external dependencies: All features use existing Python libraries
- Enhanced existing usage: Improved cryptography, email, and session handling
- Cross-platform compatibility: Removed Windows-incompatible shell scripts
Upgrade Instructions
See UPGRADE for detailed upgrade procedures from previous versions.
Migration Notes
- Database migration required for SMTP functionality
- Environment file updates needed for rate limiting
- Profile page changes may affect custom styling
- Password reset flow completely redesigned
Support
- Documentation: Check
/docs
folder for detailed guides - Issues: Report bugs on GitHub Issues
- SMTP Problems: Use built-in debug functionality
- Migration Help: See upgrade documentation
v1.0.0.28
Version 1.0.0.28 Launched
29th July 2025
Flattrade
- OrderBook parsing fixed
- Market/SL-M order price sync corrected
- Expiry API format standardized
- BSE Index data feed issue fixed
- Daily data and volume decimal precision fixed
- Supported intervals and expiry alignment updated
Zerodha
- WebSocket random disconnection issue resolved
- Expiry API date handling patch applied
- LTP and PNL mapping corrected in position manager
- Tested with 1800+ symbols and test script added in /test folder
Firstock
- API upgraded to latest version
- Httpx connection pooling integrated
- Common index symbol format introduced
- Initial commit for WebSocket integration
- Quote stream and order handling framework prepared
Groww
- Authentication updated to support key and secret-based login
IIFL (XTS API)
- Fixed index spot price retrieval by correcting exchange segment mapping
- NSE_INDEX and BSE_INDEX mapped to proper segments
- Added checks for empty
listQuotes
response to avoid errors
Broker Removals
- Removed support for Jainam, JainamPro, and Trustline
- Reason: Limited to dealer-only access via XTS API
- Cleaned up legacy websocket adapters and related code
Security & UI Improvements
- Security audit completed using Google Gemini 2.5 Pro
- DaisyUI and TailwindCSS stack upgraded to latest version
Fixes and Cleanup
- WebSocket timeout and reconnection handling added
- Expiry API and Intervals API output sorted
- Postman environment and collection updated
Documentation
- Internal docs updated with broker removal notice and config improvements
v1.0.0.27
Version 1.0.0.27 Launched
21th July 2025
Features Added
- Analyzer Mode Integration
- Enabled Analyzer Mode toggle support in API and MCP Server
- Introduced Analyzer Functions in Python SDK (v1.0.21)
- Support for Analyzer Mode in MCP config and local MCP integration
- Broker Enhancements
- Migrated Upstox API from V2 to V3 (Quotes, Historical Data, Intervals)
- Fixes for Upstox quote depth and daily data issues
- Flattrade daily data and volume decimal fixes included
- Critical Fix : WebSocket and Docker Improvements
- Docker setup updated to support IST timings
- WebSocket compatibility fixes for Docker
- Hardcoded 127.0.0.1:5000 URLs removed from services
Fixes and Cleanup
- Depth LTP fixes
- Port binding conflict resolved
- Minor typo and code cleanup
- Requirements file updated
- Updated MCP search to include NSE_INDEX, BSE_INDEX, and other index symbols
- MCP config updated with API key support
- Removed packaging of local states and secrets (.env, db/, log/, etc.)
Documentation
- Readme and internal documentation updated to reflect Analyzer Mode and new configurations
v1.0.0.26
11th July 2025
API and SDK Updates
Upgraded OpenAlgo Python SDK version to 1.0.19 to support Expiry API.
Added Expiry Dates API for Futures and Options Instruments.
Updated Ticker API Documentation.
Removed Ticker API Direct Method; now only date range restricted for large queries in Ticker API.
Updated Historical Direct Method for Fyers.
Implemented Historical Data Access for Amiquotes using Ticker API Direct Method.
Updated OpenAlgo SDK - Python version to support New Search API.
Search API Implementation.
Added OI (Open Interest) in quotes and depth REST APIs for XTS Brokers.
Removed include_oi parameter and updated OI for Angel and Zerodha.
Implemented Open Interest Dynamic Handling.
Angel OI included in REST API quote, history, and websocket snap quote.
Ibulls Rest API - Market Data Update.
Ibulls Rest API - Place market order Update.
Ibulls Rest API - Placesmartorder Fixed.
Updated Aliceblue RestAPI - OI added in depth and quotes.
Broker Integrations and Fixes
Zerodha:
Websocket's Index data Fetch Update.
Index market data Fixed.
Websocket integration in OpenAlgo (initial commit).
Fix Zerodha Adapter Logger.
Centralized Logging Fix.
Dhan:
Quote Data Fixed.
Websocket market Depth Update.
Ticker header and LTP update.
Websocket and OpenAlgo's mode mapping fixed.
Websocket LTP marketdata Fixed.
Websocket marketfeed Update.
Websocket Integration Initial Commit.
Websocket reconnection issue fixed.
Websocket 20 level depth mode initial commit.
Websocket reconnection initial commit.
Sandbox Correlation ID issue fix.
PlaceSmartOrders Correlation ID fix.
Invalid Login Credentials fix.
Sandbox fix.
20 level token mapping Update.
20 level parsing Update.
Updated Dhan Websockets.
Websocket 20 level depth fixed.
Aliceblue:
Authentication flow Fixed.
Authentication Fixed.
Common Index symbol Update.
Websocket Auth Fixed.
Websocket - Initial commit.
RestAPI - Marketdata Update.
RestAPI - NFO/BFO symbol token fixed.
Websocket- NFO/BFO Symbol lookup fixed.
Websocket - LTP and Depth Fixed.
Websocket - Quote Fixed, Partial fix of Depth and LTP.
Flattrade:
Adapter registry fix & {symbol}{exchange}{mode_str} matching OpenAlgo proxy and other brokers & Added more debug logs.
Basic Flattrade WSS (WebSocket Secure).
Fixing Holdings.
WSS completed.
Updated HTTP/1.1 fallback for Flattrade broker.
Fix: Quote and Depth Snapshot Management Implementation in Realtime Websockets.
Fix: Env Variable Wrong format Detection.
Upstox:
Updated Upstox Data.py Historical Data to Returns IST timestamps → Converts to UTC (sends UTC to API).
Updated central log fix for upstox data.py.
Shoonya:
Websockets Implementation.
Fix: Websocket for Depth and Quote Fix.
Fix: Updated Shoonya Adapter for incremental websocket data for quotes and depth.
Ibulls:
OI added for Ibulls.
Added Ibulls in .sample.env and install.sh.
Websocket - Urls Update.
Websocket - Depth Update.
Websocket - Quote and LTP for derivatives Update.
Websocket - Quote Update.
Websocket - LTP Update.
Websockets - Authentication and subscription Update.
Websocket - Initial Commit.
Kotak:
Fixing the Funds to two decimals.
Updated Kotak master contract with newer Instrument List Version.
XTS Brokers:
Updated XTS brokers list in install.sh.
Wisdom XTS websocket integration.
Jainam XTS websocket Integration.
IIFL websocket Integration.
FivepaisaXTS websocket Integration.
XTS brokers list added.
Compositedge:
Login Fixed and Websocket integrated.
Websocket - Initial commit.
Security Enhancements and Fixes
Updated Secure flag cookie.
Updated Referrer-Policy and Permissions-Policy.
Updating CSRF Token to View Strategy in Chartink and Strategy Management.
Fixing CSRF issue with Analyzer Mode.
Updated CSRF Audit Docs after fixing logout vulnerability.
Updated CSRF fix in the tradingview.html and also migrating logout from get to post request for CSRF security concerns.
CSRF Audit Report.
Updated CSRF testing and documentation.
Update the CSRF Config parameters to .sample.env.
CSRF Implementation.
FIX: updated CSRF Fix for Exit Position in /positons route.
Fixing CSRF in Close All Open Positions.
Updated CSRF fix for Strategy Deletion.
Fix: Adding CSRF Exemption for Chartink and Trading Strategy Webhook.
Security Fix: Removed rate limiting from logout endpoint.
Fix: Adding GET Support for Logout Requests for backward compatibility.
Fix: Duplicate Session Fix, Moving cookies to environmental file.
Major Enhancement: Central Logging
Central Logging has been implemented as a major enhancement in OpenAlgo, significantly improving how logs are managed and providing a more robust and efficient system. This initiative involved a substantial refactoring effort, with approximately 2000+ lines of previous print statements now successfully migrated to the new central logging system.
Central Logging Implemented:
A comprehensive effort to migrate various components and brokers to a unified, centralized logging system. This foundational change streamlines log collection and analysis.
Implementation of centralized logging across numerous brokers, including Zerodha, Upstox, Dhan, Kotak, 5paisa/Fivepaisaxts, Paytm, Flattrade, Shoonya, Tradejini, Aliceblue, Compositedge, Firstock, Groww, IIFL, Wisdom, Zebu, Pocketful, and Jainam, ensuring consistent logging practices across the platform.
Updated documentation to thoroughly reflect the new centralized logging system, aiding developers and users in understanding its functionality.
Bug Fixes Issued to Central Logging:
Addressed specific issues with the Zerodha Adapter Logger and general logging imports, ensuring accurate log capture.
Resolved centralized logging issues for various brokers and their specific modules, including funds.py, Upstox data.py, Aliceblue, Compositedge, 5paisa, Paytm, Flattrade, Zerodha, Angel, Shoonya, Tradejini, Dhan, Kotak, Fivepaisaxts, IIFL, Wisdom, Zebu, Pocketful, and Jainam.
Fixed issues encountered during the migration to centralized logging in blueprints, proxy_websockets, services, and restx_api folders, ensuring a smooth transition and proper log routing.
Corrected instances of duplicate logging entries, reducing log clutter and improving readability.
Updated master contract to include central logging and resolved minor string formatting issues, ensuring data integrity within logs.
General Fixes and Improvements
Websockets:
Websockets Dynamic broker selection Update.
Websocket dictionary iteration error Fixed.
Updated websocket examples.
Feature: Added Websocket Inspector in the Playground - updated Websocket Testing.
Performance and Refactoring:
Refactor: Improvements http pooling and httpx migration.
Automatically Switch Between http2/1.
Reverting to http/2 module in util and changed library package to httpx[http2].
Updated httpx auto fallback to HTTP/1.1.
Improvements: Performance Improvements.
Database Connecting Pool Optimization for Faster Query Performance.
General Fixes:
ITP & quote fixed.
Updating the Master Contract Download Status.
Tried fixing the ZMQ issue.
Fixing PNL in both Dashboard and TradeBook.
Accessing Env variable ZMQ_port fixed.
ZMQ port config in dotenv file fixed.
ZMQ Audit report.
Zerodha's Dynamic port binding Fixed.
Updated CSS Compilation, OpenAlgo Version, and test CSRF code.
Updated Master Contract with BFO Symbols.
Fix: CSRF Token issue fix and Strategy inactivate issue fix.
Updated enhanced product enhancement.
Implementing Cancel All Orders Button in the OrderBook Page.
Reverting back: the Index Fix in Websockets.
Documentation and Project Management
Update README.md.
Docs: Enhanced OpenAlgo+ Document.
Docs: Updated OpenAlgo+ Documentation.
Docs: Query Batching Optimization.
Docs: Updated Design Documents and Upgrading Jupyter Core, Requests and urllib3 libraries.
Fix: Updated Contribution Guidelines.
Fix: Updated Contribution Documentation.
Docs: updated Contribution Guidelines and Documentation.
Docs: Enhanced Trade Management Module.
New Features
Feat: Openalgo playground-add interactive API and WebSocket playground.
Feat: updated OpenAlgo SDK - Python version to support New Search API.
Version 1.0.0.25
29th May 2025
Major New Broker Addition & Enhancements:
-Tradejini
-Groww
-Dhan (Sandbox)
Major New Features & System Enhancements:
Full WebSocket Implementation (Pilot Testing with Angel):
Introduced robust WebSocket support for real-time market data streaming.
Delivers LTP (Last Traded Price), Quotes, and full Market Depth (including Top 5 Bid/Ask).
Includes server-side (server.py) and Nginx configuration for WebSocket proxying on Ubuntu.
Added necessary WebSocket host, port, and URL configurations to .sample.env.
Provided WebSocket usage examples (e.g., stoploss example).
Fixes implemented for subscription mode isolation and JSON deserialization error handling.
Addressed issues such as "No. of Orders in the Depth" display.
Docker Build Optimization:
Implemented multi-stage builds for Docker, significantly reducing the final Docker image size.
Enhanced Connection Pooling:
Rolled out and fixed shared connection pooling for Data APIs, Order APIs, Authentication, Funds, and Master Contract services across applicable brokers, improving performance and resource management.
Database Enhancements:
Integrated SQLiteDB for storing IST (Indian Standard Time) data.
Added DuckDB library support and functionality for efficient intraday data downloads.
🔧 Broker-Specific Fixes & Enhancements (Recent):
AngelOne:
Angel Average Price Fix (related to WebSocket data).
Added Angel UserID to the AuthDB for enhanced WebSocket authentication.
Fyers:
Fine-tuned Master Contract Data for missing SENSEX index. (Assuming this was a recent touch-up)
ICICI:
Removed ICICI integration and removed relevant references
Fivepaisa:
Recent general updates and fixes to order APIs, common symbols, order status, master contract DB.
XTS API Supported Brokers (General):
Refined scripts and processes for XTS Based Market Data Credentials setup.
Common Symbol Format Now Implemented/Enhanced For:
Tradejini (New)
Groww
Aliceblue
Fyers
Dhan
Dhan(Sandbox)
Zerodha
Flattrade
Shoonya (BSE indices not available)
Compositedge
AngelOne
Upstox
Paytm
Pocketful
Jainam (XTS API)
IIFL (XTS API)
Wisdom Capital (XTS API)
5paisa (XTS API)
5paisa
⚙️ System Architecture & Further Enhancements:
API & Service Layer:
Integrated a dedicated Service Layer with the Restx API Layer for better modularity.
Fixed socket emitting event errors, mitigating potential rate limiting issues.
Dependency Management & Environment:
Updated core libraries: tornado and flask-cors (crucial for WebSocket and API layers).
Adopted and updated configurations for the UV package manager (e.g., uv.lock updates).
Upgraded key dependencies like httpcore (to 1.0.9), setuptools (security fix), and h11 library.
Updated requirements.txt and websockets.txt to reflect new and updated dependencies.
Security & Deployment:
Implemented/Updated CORS (Cross-Origin Resource Sharing) and CSP (Content Security Policy) configurations.
Updated Ubuntu server shell scripts and installation scripts, including improved support for UV.
Documentation & DevOps Updates:
New & Updated Docs:
Comprehensive documentation for the new WebSocket implementation.
Documentation updates related to the Tradejini integration.
Added internal assessment and broker design documents.
Configuration & Testing:
Updated .sample.env file with WebSocket configurations and new settings (e.g., for Cloudflare insights).
Added significant new test code for WebSocket features and other enhancements.
Updates to the general Docker build process to reflect multi-stage builds.
New & Updated Docs:
Comprehensive documentation for the new WebSocket implementation.
Documentation updates related to the Tradejini integration.
Added internal assessment and broker design documents.
Configuration & Testing:
Updated .sample.env file with WebSocket configurations and new settings (e.g., for Cloudflare insights).
Added significant new test code for WebSocket features and other enhancements.
Updates to the general Docker build process to reflect multi-stage builds.
v1.0.0.24
24th Apr 2025
New Broker Additions (XTS API + Direct API):
• Pocketful
Minor Fixes
Updated Requirements.txt file to support python 3.13 and requirements_old.txt file for supporting older versions of python (optional required if user is facing any issue)
Remove obsolete 'version' attribute from Docker Compose file
Changing the symbol from ZOMATO to ETERNAL as there is a name change in the stock imapcting tradingview page