How rochi88/bdshare works
bdshare is a Python client library for retrieving Dhaka Stock Exchange live and historical data, market information, and news, with caching, retries, and rate limiting. The main workflow is a user calling the public API, which dispatches to trading, market, or news functions; those fetch and normalize DSE data for analysis or storage. The graph also preserves documented indicators, portfolio tracking, streaming, and MCP capabilities. Some of these modules are unsampled, so their internal links are omitted where source evidence is unavailable.
Main entry points: __init__.py Public API and Client · trading.py Trading and History · market.py Market Data · news.py News and Announcements
Components 17
Public API
- Public API and Client
bdshare/__init__.py
DSE Data
- Trading and History
bdshare/stock/trading.py - Market Data
bdshare/stock/market.py - News and Announcements
bdshare/stock/news.py
Runtime Support
- HTTP and Parsing
bdshare/util/helper.py - Source Configuration
bdshare/util/vars.py - TTL Cache
bdshare/util/cache.py - Session and Token
bdshare/util/session.py - Ticker Lookup
bdshare/util/tickers.py - Proxy Setup
bdshare/util/proxy.py - Data Export
bdshare/util/store.py
Analysis and Integrations
- Technical Indicators
bdshare/indicators.py - Portfolio Tracking
bdshare/portfolio.py - WebSocket Streaming
bdshare/stream.py - MCP Server
bdshare/mcp_server.py
Other components
- Library User
- DSE Sites and API
Connections 23
- Library User → Public API and Client: calls
README.md - Public API and Client → Trading and History: dispatches
bdshare/__init__.py - Public API and Client → Market Data: dispatches
bdshare/__init__.py - Public API and Client → News and Announcements: dispatches
bdshare/__init__.py - Trading and History → DSE Sites and API: fetches prices
bdshare/stock/trading.py - Market Data → DSE Sites and API: fetches market data
bdshare/stock/market.py - News and Announcements → DSE Sites and API: fetches news
bdshare/stock/news.py - Trading and History → HTTP and Parsing: uses requests
bdshare/stock/trading.py - Market Data → HTTP and Parsing: uses requests
bdshare/stock/market.py - News and Announcements → HTTP and Parsing: uses requests
bdshare/stock/news.py - HTTP and Parsing → Source Configuration: reads endpoints
bdshare/util/helper.py - Trading and History → Source Configuration: selects source
bdshare/stock/trading.py - Market Data → Source Configuration: selects source
bdshare/stock/market.py - News and Announcements → Source Configuration: selects source
bdshare/stock/news.py - Public API and Client → TTL Cache: caches responses
bdshare/__init__.py - Public API and Client → Session and Token: manages session
bdshare/__init__.py - Ticker Lookup → Trading and History: fetches symbols
bdshare/util/tickers.py - Public API and Client → Data Export: exports data
README.md - Public API and Client → Technical Indicators: offers indicators
README.md - Public API and Client → Portfolio Tracking: offers tracking
README.md - Trading and History → WebSocket Streaming: supplies live data
bdshare/stream.py - Public API and Client → MCP Server: exposes tools
bdshare/mcp_server.py - Public API and Client → Proxy Setup: configures proxy