Exemple #1
0
def __build_instance() -> FinanceData:
    plugin_path = root_path + '/Collector/'

    collector_plugin = PluginManager(plugin_path)
    collector_plugin.refresh()

    update_table = UpdateTableEx()

    return FinanceData(collector_plugin, update_table)
def __build_instance() -> TradeCalendar:
    from os import path
    root_path = path.dirname(path.dirname(path.abspath(__file__)))
    plugin_path = root_path + '/Collector/'

    collector_plugin = PluginManager(plugin_path)
    collector_plugin.refresh()

    update_table = UpdateTableEx()

    return TradeCalendar(collector_plugin, update_table)