https://github.com/dvojak-cz/xtb-report-analyzer
XTB Report Analyzer parses xlsx reports from XTB broker, converts them to JSON, and imports the data into PostgreSQL. It includes a terminal interface for querying and visualizing investment data, offering an all-in-one tool for efficient data analysis.
https://github.com/dvojak-cz/xtb-report-analyzer
ruby xtb
Last synced: 6 months ago
JSON representation
XTB Report Analyzer parses xlsx reports from XTB broker, converts them to JSON, and imports the data into PostgreSQL. It includes a terminal interface for querying and visualizing investment data, offering an all-in-one tool for efficient data analysis.
- Host: GitHub
- URL: https://github.com/dvojak-cz/xtb-report-analyzer
- Owner: dvojak-cz
- License: mit
- Created: 2024-10-27T18:25:35.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-21T20:01:18.000Z (7 months ago)
- Last Synced: 2024-11-21T21:18:11.973Z (7 months ago)
- Topics: ruby, xtb
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XTB Report Analyzer
**XTB Report Analyzer** is a tool designed to parse xlsx reports from XTB broker accounts, serialize them to JSON format, and import them into a PostgreSQL database. It provides an interactive terminal interface to query and visualize investment data, allowing for comprehensive data analysis directly from the command line.
## Project Structure
The project is divided into three main modules:1. **XLSX-to-JSON Converter** \
This module reads xlsx reports exported from XTB broker, parses their structure, and converts them into JSON format. The module includes validation of the input xlsx file to ensure the completeness and integrity of the data, enabling seamless integration with the database.
Output: A validated JSON object ready for further processing or direct import into the database.2. **PostgreSQL Data Importer** \
This module takes the JSON data generated by the xlsx-to-JSON Converter and imports it into a PostgreSQL database. It manages the creation of necessary database tables, maps JSON objects to appropriate tables and columns, and supports batch imports for handling larger datasets.3. **Terminal Query Interface** \
An interactive terminal interface that connects to the PostgreSQL database, allowing the user to run various SQL queries on the stored data. It provides basic visualization capabilities (such as profit/loss, time series of investment performance, etc.).