HalalBerg Terminal
Bloomberg-style terminal for screening and tracking Shariah-compliant stocks with live market data.
2 min read
A Bloomberg-style terminal for screening and tracking Shariah-compliant stocks. It includes live market data, an AAOIFI-style halal screen, portfolio optimization, gold/silver spot prices, a geopolitical risk signal, and TradingView charting.
No mock data: every number comes from a live provider at request time (with short-lived caching).
Stack
- Backend: Django + Django REST Framework,
cvxpy/numpy/pandas/scipyfor portfolio optimization - Frontend: Next.js 16 (React 19), Tailwind CSS 4
- Data sources: Finnhub (quotes, fundamentals, news), GoldAPI (gold/silver spot), Yahoo Finance public chart endpoint (historical closes), TradingView (embedded chart widget)
Features
- Live-polling dashboard with a geopolitical risk signal and live news channels
- Shariah screener using real Finnhub fundamentals (sector exclusion + debt/liquid-assets ratios)
- Portfolio view with efficient-frontier optimization from real historical returns/covariance
- Options and gold/silver spot pages
- Per-stock detail page with a live TradingView chart
Setup
Backend
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
Create backend/.env with your own API keys:
FINNHUB_API_KEY=your_key_here
GOLDAPI_KEY=your_key_here
Get a free key at finnhub.io and goldapi.io.
Frontend
cd frontend
npm install
Run both
./start.sh
Backend: http://localhost:8001 ยท Frontend: http://localhost:3000
To use the Portfolio page, add holdings via the Django admin:
cd backend && python manage.py createsuperuser
then visit http://localhost:8001/admin.
Credit
The geopolitical risk signal and live news channels are original implementations inspired by World Monitor (AGPL-3.0). No code from that project is used.
License
MIT. See LICENSE.
Support
Submit issues, questions, or bug reports to the GitHub issue tracker: https://github.com/ADM1SH/HalalBerg/issues
Roadmap
- Done: Core architecture and baseline implementation.
- Done: Functional verification and test coverage.
- To do: Integrate real-time Bursa Malaysia websocket feed
- To do: Add automated dividend purification calculator
Contributing
Contributions are welcome.
- Fork the repository.
- Create a feature branch:
git checkout -b feature/improvement. - Commit your changes:
git commit -m "feat: enhance functionality". - Push to the branch:
git push origin feature/improvement. - Open a Pull Request.
Authors and Acknowledgment
- Adam Anwar (ADM1SH) - Lead architect and developer.
- Engineered by Adam Anwar. Financial screening methodologies based on AAOIFI and SAC SC Shariah standards.
Project Status
Active development. Shariah compliance screener and portfolio tracker.