new callback functionality

Callback in get_historical_data() can now function as a basic filter by returning True/False if a record should be kept.