Esempio n. 1
0
def fetch_by_period(to_date: str = date_utils.get_current_dt()):
    to_period = date_utils.next_period(to_date)
    from_period = fetch_from_period()
    return fetch.common_fetch_report_by_period(TsCashFlow,
                                               'fetch_cash_flow',
                                               TsCashFlow.end_date,
                                               from_period=from_period,
                                               to_period=to_period)
def fetch_by_period(to_date: str = date_utils.get_current_dt()):
    to_period = date_utils.next_period(to_date)
    from_period = fetch_from_period()
    return fetch.common_fetch_report_by_period(TsBalanceSheet,
                                               'fetch_balance_sheet',
                                               TsBalanceSheet.end_date,
                                               from_period=from_period,
                                               to_period=to_period)
def fetch_by_period(to_date: str = date_utils.get_current_dt()):
    to_period = date_utils.next_period(to_date)
    from_period = fetch_from_period()
    return fetch.common_fetch_report_by_period(TsFinaIndicator,
                                               'fetch_fina_indicator',
                                               TsFinaIndicator.end_date,
                                               from_period=from_period,
                                               to_period=to_period)
Esempio n. 4
0
def fetch_by_period(to_date: str = date_utils.get_current_dt()):
    to_period = date_utils.next_period(to_date)
    from_period = fetch_from_period()
    return fetch.common_fetch_report_by_period(TsIncome,
                                               'fetch_income',
                                               TsIncome.end_date,
                                               from_period=from_period,
                                               to_period=to_period)
Esempio n. 5
0
def fetch_by_period(to_date: str = date_utils.get_current_dt()):
    to_period = date_utils.period_delta(date_utils.next_period(to_date),
                                        1)  # 年报和一季度的预报可能同时出
    from_period = fetch_from_period()
    return fetch.common_fetch_report_by_period(TsForecast,
                                               'fetch_forecast',
                                               TsForecast.end_date,
                                               from_period=from_period,
                                               to_period=to_period)