Candlestick Dashboard on Django, Dash, and Flask
Project Description
This project is a web application built on Django, Dash, and Flask that allows users to display interactive charts for financial data analysis. The main goal of the project is to provide a convenient tool for working with exchange data, including candlestick analysis, asset correlation, and data collection from the OKX exchange.
Key Features
1. Dynamic Candlestick Chart
Users can select a currency pair and timeframe.
Data is loaded from the database and displayed as a candlestick chart.
The chart automatically updates when parameters change.
2. Asset Correlation Chart
The correlation coefficient between currency pairs is calculated.
A table of pairs with a coefficient above a specified level is displayed.
Users can select pairs with checkboxes and build their chart.
Automatic assignment of different colors for visual distinction of pairs on the chart.
3. User Registration and Authentication (Flask)
User system implemented via Flask.
Access to chart pages is restricted to authorized users only.
JWT tokens are used for session security.
4. OKX Exchange API Integration
a) Real-time Candlestick Data Parser
Continuously collects data for 75 currency pairs with a market cap over $1 billion.
Automatically updates the database with new candlestick data.
b) Historical Data Parser
Allows users to download historical data for a specified period.
Supports the addition of other exchanges in the future.
Technologies and Tools
Django – Backend framework and database management.
Dash/Plotly – Interactive charts.
Flask – User authentication (registration, login, access control).
Pandas – Data processing.
SQLite/PostgreSQL – Data storage.
OKX API – Source for market data.
This project is a web application built on Django, Dash, and Flask that allows users to display interactive charts for financial data analysis. The main goal of the project is to provide a convenient tool for working with exchange data, including candlestick analysis, asset correlation, and data collection from the OKX exchange.
Key Features
1. Dynamic Candlestick Chart
Users can select a currency pair and timeframe.
Data is loaded from the database and displayed as a candlestick chart.
The chart automatically updates when parameters change.
2. Asset Correlation Chart
The correlation coefficient between currency pairs is calculated.
A table of pairs with a coefficient above a specified level is displayed.
Users can select pairs with checkboxes and build their chart.
Automatic assignment of different colors for visual distinction of pairs on the chart.
3. User Registration and Authentication (Flask)
User system implemented via Flask.
Access to chart pages is restricted to authorized users only.
JWT tokens are used for session security.
4. OKX Exchange API Integration
a) Real-time Candlestick Data Parser
Continuously collects data for 75 currency pairs with a market cap over $1 billion.
Automatically updates the database with new candlestick data.
b) Historical Data Parser
Allows users to download historical data for a specified period.
Supports the addition of other exchanges in the future.
Technologies and Tools
Django – Backend framework and database management.
Dash/Plotly – Interactive charts.
Flask – User authentication (registration, login, access control).
Pandas – Data processing.
SQLite/PostgreSQL – Data storage.
OKX API – Source for market data.