adding in some utilities for btc-china back testing