Tony Fung - Life and Tech (LaT)

Tony Fung - Life and Tech (LaT), Bug-free in code and night dreams.

  • Blog
  • About
  • RSS
  • Search
  • domain-driven-design (1)
  • software-architecture (1)
  • ddd (1)
  • blockchain (1)
  • blockchain-scaling (1)
  • system-design (2)
  • web-scraping (2)
  • event-driven-architecture (2)
  • time-series-data (1)
  • distributed-system (2)
  • node-js (1)
  • best-practices (1)
  • currency-exchange (1)
  • depth-first-search (1)
  • algorithm (1)
  • database (1)
  • start-up (1)
  • working-culture (1)
  • solidity (2)
  • smart-contract (2)
  • blockchain-security (2)

Constructing a resilient crypto trading database: Data from faulty WebSockets and slow-responding REST APIs

May 25, 2023

Building historical trading data faces problems from the unreliability of crypto API endpoints, especially WebSockets. This hinders the retrieval of accurate high-frequency data, like pricing information. Our mission is to calculate a precise rolling 5-minute VWAP by ticker, correcting historical data for trade errors and ensuring accuracy

Efficient order ID generation and collision prevention in parallel SQL trade history

Mar 21, 2023

The article focus on generating unique order IDs in a SQL trade history database that is being updated by multiple parallel scripts. The challenge is to prevent collisions and ensure the integrity of the order ID generation process


© tonybka 2023 - 2025