Beispiel #1
0
def clean(bundle, before, after, keep_last):
    """Clean up data downloaded with the ingest command."""
    bundles_module.clean(
        bundle,
        before,
        after,
        keep_last,
    )
Beispiel #2
0
def clean(bundle, before, after, keep_last):
    """Clean up data downloaded with the ingest command.
    """
    bundles_module.clean(
        bundle,
        before,
        after,
        keep_last,
    )
Beispiel #3
0
def clean(bundle, before, after, keep_last):
    """清理使用`ingest`命令存储的数据
    """
    bundles_module.clean(
        bundle,
        before,
        after,
        keep_last,
    )
Beispiel #4
0
def main():
    from zipline.pipeline.fundamentals.ctable import convert_sql_data_to_bcolz
    ingest_start_time = time.time()
    convert_sql_data_to_bcolz()
    duration = format(time.time() - ingest_start_time, '0.2f')
    log.info('{} was done. duration is {} seconds'.format(
        'to_bcolz', duration))

    # keep last 2
    for bundle_name in ('cnstock', '.test'):
        ingest_data(bundle_name)
        bundles_module.clean(bundle_name, keep_last=2)