Parser CSV document with transactions list and keeping them in BD
The Transaction {
Type: TransactionType
Ticker: Ticker
Date : Date
Quantity: Decimal
The price: Price
The price?The
Enum TransactionType
Case Buy
Case Selling
Case Fees
The case split
Case tax
The
/////////////////////////////////////////////////
// // // // // // // // // // // // // // // // // // // // //
The Income {
Type: IncomeType
Ticker: Ticker
Number of: Decimal
Currency: Currency
Date : Date
Category: Decimal
The
The IncomeType
Case Dividend
The Case Spinoff
The
/////////////////////////////////////////////////
// // // // // // // // // // // // // // // // // // //
by AssetCategory {
Case stock
The case warrant
Case Option
Case Currency
The
The Currency
Code: String //USD, UAH, CAD etc
The
by Ticker {
Symbol: String
Currency: Currency
Asset Category: Asset Category
The
The Price {
Value: Decimal
Currency: Currency
The
/////////////////////////////////////////////////
Description of the document:
The document is divided into segments.These segments are listed in column-A such as Trades, Corporate Actions, Transaction Fees, Dividends, Withholding Tax, Payment in Lieu of Dividend.- Rarely where column A == Trades and column C == Trade describe the transaction we need with the type buy or sell
- Rarely where the column A == Corporate Actions and the column G contains "Split" describes Transaction with the type split
- Rarely where column A == Corporate Actions and column G contains "Spinoff" describes Income with spinoff type
- Rarely where the column A == Transaction Fees or Borrow Fee Detail or Broker Interest Paid describes Transaction with the type of fee
- Rarities where column A == Dividends or Payment in Lieu of Dividend describe Income with the type of dividend, tax for these objects must be taken in the lines Withholding Tax
Requirements :
1 .There are no UI requirements, mainly for the test and verification of parsing correctness, it is enough to have a button to download the file, to show the final table with the Transaction and Income elements.
The 2ndThe table fields should support the editing that the user can enter until the time of storage in the BD.
Потрібно написати простий парсер, який буде приймати CSV файл певного формату та витягувати звідти дані транзакцій та доходів, а потім виводити таблицю користувачу. Користувач матиме змогу поміняти в таблиці значення, після чого дані потрібно зберігти в БД. При додаванні наступних файлів, дані будуть додаватися до БД для цього користувача.
Приклад файлу доданий до проекту.
Псеводокод полів та типів полів таблиці Transaction, Income, які і є результатом парсингу.
//////////////////=====Transactions========/////////////////////
Transaction {
type: TransactionType
ticker: Ticker
date: Date
quantity: Decimal
price: Price
fee: Price?
}
enum TransactionType {
case buy
case sell
case fee
case split
case tax
}
////////////////////////////////////////////////////////////////////
//////////////////=====Incomes========/////////////////////
Income {
type: IncomeType
ticker: Ticker
amount: Decimal
currency: Currency
date: Date
tax: Decimal
}
IncomeType {
case dividend
case spinoff
}
////////////////////////////////////////////////////////////////////
//////////////////======General=======/////////////////////
enum AssetCategory {
case stock
case warrant
case option
case currency
}
Currency {
code: String //USD, UAH, CAD etc
}
Ticker {
symbol: String
currency: Currency
asset: AssetCategory
}
Price {
value: Decimal
currency: Currency
}
////////////////////////////////////////////////////////////////////
Опис документу:
- Документ поділений на сегменти. Ці сегменти вказані в колонці-A наприклад Trades, Corporate Actions, Transaction Fees, Dividends, Withholding Tax, Payment in Lieu of Dividend.
- Рядки, де колонка A == Trades та колонка С == Trade описують потрібний нам Transaction з типом buy чи sell
- Рядки, де колонка A == Corporate Actions та колонка G contains "Split" описує Transaction з типом split
- Рядки, де колонка A == Corporate Actions та колонка G contains "Spinoff" описує Income з типом spinoff
- Рядки, де колонка A == Transaction Fees або Borrow Fee Detail або Broker Interest Paid описують Transaction з типом fee
- Рядки, де колонка A == Dividends або Payment in Lieu of Dividend описують Income з типом dividend, tax для цих обʼєктів потрібно брати в рядках Withholding Tax
Вимоги:
1. Вимог до UI немає, в основному для тесту і перевірки правильності парсингу достатньо мати кнопку для завантаження файлу, показати кінцеву таблицю з елементами Transaction та Income
2. В таблиці поля мають підтримувати редагування, які користувач може внести до моменту зберігання в БД
- Проект має бути онлайн, тобто відкриватись в браузері та написаний на python
Applications 1
-
Good morning, I can realize such a system in a few options, I can do it through a page in the browser(site), I can do it as a desktop program, or implement it in the telegram bots.Price and time in personal messages.I will do it on python
Доброго дня, без проблем можу реалізувати таку систему в декількох варіаціях, можу зробити через сторінку в браузері(сайт), можу зробити як desktop программу, чи імплементувати в телеграм бота.Ціна і сроки в особисті повідомлення.Робити буду на python
-
1212 7 0 Good day . I read the attached file. With such a sign format, its understanding does not cause difficulties. Ready to perform on Python using the Django framework.
Добрий день. Я ознакомился с приложенным файлом. С таким форматом знаком, его разбор затруднений не вызывает. Готов выполнить на Python с применением фреймворка Django.
-
1154 25 4 1 Good day, call me. Great experience in both parsers and databases
Добрый день, обращайтесь. Большой опыт как в парсерах так и в базах данных
-
3081 74 0 Good day ! I think I do not have any problems realizing the necessity of the Prasing. Write in private, we will discuss the project in more detail.
Добрий день! Думаю без проблем реалізую потрібний вам прасинг. Пишіть в приватні, обговоримо проект детальніше.
Current freelance projects in the category Data Parsing
Scrape company contacts from the website pages
48 USD
It is necessary to scrape the contact details of companies from the website. The entire catalog (link provided). The data is publicly available, no registration on the site is required. Important: there is certain protection on the site and there are IP restrictions Who is… Data Parsing ∙ 11 minutes ago ∙ 3 proposals |
Football xG Parser
24 USD
Good day. I am interested in a football parser with xG statistics Websites to take information from - I will attach if needed There is also a rough example of the file that should be downloaded daily Data Parsing, Bot Development ∙ 22 minutes ago ∙ 2 proposals |
Need to scrape an online store
144 USD
It is necessary to parse products from the manufacturer on the site https://arbordrev.com.ua/ we are parsing to the OpenCart site everything needs to be parsed as in the donor materials options, so that prices change, in general, everything as in the donor with further updates,… Data Parsing ∙ 2 hours 20 minutes ago ∙ 4 proposals |
Instagram stories parsing/scraper (Python)
17 USD
Hello I need some simple way to scrape story links from specific Instagram accounts There are many accounts The script should scrape the links and download the media file (image or video) to the PC The script should not be made using Selenium/playwright or any tool related… Data Parsing ∙ 3 hours 19 minutes ago ∙ 2 proposals |
Automation Specialist (Make.com)
50 USD
We're looking for an experienced specialist to fix and finalize our Make.com automation processes. Current issues include unresolved minor automation tasks, automated email disruptions, and problems with Facebook and Google Ads conversion tracking. Tasks: Fix and finalize… Data Parsing, Web Programming ∙ 3 hours 22 minutes ago |