BankOrg Docs

In progress

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.

Terminal
python3 scripts/generate_daily_data.py --date 2026-10-19

Transactions

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 I event. When it is a transfer to another active account in the same currency, the script writes both sides: the sending account as DR with TRANSFER_OUT and the receiving account as CR with TRANSFER_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 FEE posted DR, 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 POSTED or FAILED with a U event, a few posted legs are REVERSED, and a failed leg can be deleted with a D event. 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:

DateRowsFee legsU eventsD events
2026-10-19370101070
2026-10-202664921
2026-10-212358671