Deal Capture

Job ID: 32358485

Budget: €30 – €250 EUR

This Project shall be conducted in VBA.

All Deals are exported and updated continously throughout the day in a CSV file e.g. Continious_export_anonymized. The Deals consist mostly of microdeals and need to be aggregated hourly/quarterhourly for the two different Portfolios (p/h) differentiated in column K and need to updated in the xlsx-File Project_CE Worksheet PSW for Portfolio p and H6 for Portfolio h.
If the dealt quantity for a total Hour is for e.g. 30 this 30 shall be added to every quarter hour of the respective hour and not be split by 4. The quarterhour deals shall be aggregated in the respective cell additionally. So the sum of every quarter hour and hour shall be aggrated in the respective column.
Column D descibes the Deal. B means buy and corresponds logicly with a addition "+" and S means sell and corresponds logicly with a subraction "-".
Important ist that I can select the timeframe in which the deals shall be aggregated for example today 14.12. and yesterday 13.12 and that the macro updates itself independantly. The Proess needs to happen fast (less than 30 sec for update and calculation). The CSV file Continious_export_anonymized consists of a large set of data of the last 5 days. For a fast working flow it might be smart to screen first for the date and discard all values not necessary -the displayed data in the Continious_export_anonymized file is only a small anonymized set of data. The Columns F and P will normaly include the full date set and not YYYY for the year. No changes shall be conducted in the continiousexport file -read only- . The Project_CE file can be altered in any way necessary for the requriements. The Created template is only for orientation. Feel free to redesign it with colors buttons etc.
The whole idea of this project to display the sum of the aggregated deals (Qty column G and the average weighted price Column H) for every quarter hour in the customly selected timesfram in the Project_CE-File. The routine needs to happen fast. Since we already have a routine but that routine can take up to 2 minutes which is way too slow for the process.
For testing the Continous_export_anonymized-File can be altered but in the routine nothing shall be changed.
One day consists of approximatly max. 1500 microdeals. The Deals in the Continous_export_anonymized-File are filtered from last to newest. This shall not be changed because of presxisting R-Scripts. To speed up the aggreation it might be smart to do it with a "for loop" starting from the last row and abort when the selected time frame is reached. The whole Continous_export_anonymized-File consists of about 5000 rows.
No more than 2 consecutive days need to be selected. So in total that makes about 3000 seperate aggregations. Max allowed delay between Dealcapture in the Continous_export_anonymized-File and the display in the Project_CE-File is as already mentioned 30 sec.
Further details can be provided.
Please set comments in the code.
Related categories: Visual Basic Data Processing Excel