Пример #1
0
def load_sharadar_bundle(name=SHARADAR_BUNDLE_NAME,
                         timestr=SHARADAR_BUNDLE_DIR,
                         environ=os.environ):
    return BundleData(
        asset_finder=SQLiteAssetFinder(
            asset_db_path(name, timestr, environ=environ), ),
        equity_minute_bar_reader=None,
        equity_daily_bar_reader=SQLiteDailyBarReader(
            daily_equity_path(name, timestr, environ=environ), ),
        adjustment_reader=SQLiteAdjustmentReader(
            adjustment_db_path(name, timestr, environ=environ), ),
    )
Пример #2
0
def _bar_reader(name=SHARADAR_BUNDLE_NAME,
                timestr=SHARADAR_BUNDLE_DIR,
                environ=os.environ):
    return SQLiteDailyBarReader(
        daily_equity_path(name, timestr, environ=environ))