Building a Hive/HBD ticker history with Mariadb & Python