BankOrg Data Platform / Source Data / Generate Data
Daily Data
Generate one more business day of the core banking feeds, built from the day before.
Each run of scripts/generate_daily_data.py builds one business date from the state of the day before. The first run starts from the initial files, so the first date is 2026-10-19.
python3 scripts/generate_daily_data.py --date 2026-10-19Transactions
The transactions file of a date holds change events, with LEG_NO and DIRECTION as the second and third column.
- A new transaction is an
Ievent. When it is a transfer to another active account in the same currency, the script writes both sides: the sending account asDRwithTRANSFER_OUTand the receiving account asCRwithTRANSFER_IN, with the same transaction, leg and amount. - Half of the posted outgoing transfers also have a fee: leg 2 of the same transaction, a
FEEpostedDR, between 5,000 and 55,000 VND (the equivalent in USD for a USD account). The fee is taken from the sending account in 80% of the cases and from another VND checking or savings account of the same customer in the other 20%. Only the debit side of a fee is written. - A pending leg becomes
POSTEDorFAILEDwith aUevent, a few posted legs areREVERSED, and a failed leg can be deleted with aDevent. The events of a leg are written for both of its sides together. - The fee legs use their own random generator, so the rest of the day is the same with or without them. Running the same date again writes the same files.
Rows written by the dates generated so far, and how many of them are fee legs and update or delete events:
| Date | Rows | Fee legs | U events | D events |
|---|---|---|---|---|
| 2026-10-19 | 370 | 10 | 107 | 0 |
| 2026-10-20 | 266 | 4 | 92 | 1 |
| 2026-10-21 | 235 | 8 | 67 | 1 |