Coverage for aether_quant/data.py: 100%

17 statements  

« prev     ^ index     » next       coverage.py v7.17.3, created at 2026-11-22 12:55 +0000

1"""Parsers and tables of the data pipeline (fetchers and backfills stay in `data_pipeline/`).""" 

2 

3from data_pipeline.bar_synthesis import adaptive_sell_threshold, derive_signal, flatten_fill_forward_bar, midpoint_bar_from_quote_bar, pad_sequence_history 

4from data_pipeline.binance_archive import base_asset, daily_funding, funding_url, kline_url, liquid_universe, list_symbols, listed_months, months_between, parse_funding_zip, parse_kline_zip, price_breaks, truncate_at_swap 

5from data_pipeline.cftc_cot import change_by_session, fx_pair_scores, macro_scores, parse_annual_text, parse_zip_bytes, read_positioning 

6from data_pipeline.edgar_facts import ( 

7 collect_cached_eps, 

8 extended_rows, 

9 first_filings_annual, 

10 fundamentals_rows, 

11 fundamentals_table, 

12 market_cap_table, 

13 quarterly_first_filings, 

14 quarterly_ttm_rows, 

15 read_eps, 

16 read_fundamentals, 

17 read_splits, 

18 sector_for_sic, 

19 split_adjusted_eps, 

20 split_factor_after, 

21 standardised_surprises, 

22 surprise_table, 

23 user_agent, 

24 write_fundamentals, 

25) 

26from data_pipeline.factor_library import parse_aqr_sheet, parse_french_zip 

27from data_pipeline.filing_text import ( 

28 cosine as count_cosine, 

29) 

30from data_pipeline.filing_text import ( 

31 earnings_rows as filing_earnings_rows, 

32) 

33from data_pipeline.filing_text import ( 

34 hashed_counts, 

35) 

36from data_pipeline.filing_text import ( 

37 merge_pages as merge_submission_pages, 

38) 

39from data_pipeline.filing_text import ( 

40 prior_year_pairs as prior_year_filing_pairs, 

41) 

42from data_pipeline.filing_text import ( 

43 similarity_rows as filing_similarity_rows, 

44) 

45from data_pipeline.filing_text import ( 

46 tokens as filing_tokens, 

47) 

48from data_pipeline.finra_short_volume import finra_symbol, parse_day, short_ratio_table 

49from data_pipeline.public_candles import bars_to_panel, candle_windows, candles_url, coinbase_product, default_get_json, fetch_daily_bars, parse_candles 

50from data_pipeline.sec_form345 import insider_net_table, opportunistic, parse_quarter, quarters 

51from data_pipeline.sp500_membership import canonical_issuer, coverage_by_year, is_member, load_membership, member_days_by_year, parse_membership, suspect_interval, tickers_touching, yahoo_symbol_for_member 

52 

53__all__ = [ 

54 "adaptive_sell_threshold", 

55 "base_asset", 

56 "canonical_issuer", 

57 "change_by_session", 

58 "collect_cached_eps", 

59 "count_cosine", 

60 "coverage_by_year", 

61 "daily_funding", 

62 "derive_signal", 

63 "extended_rows", 

64 "filing_earnings_rows", 

65 "filing_similarity_rows", 

66 "filing_tokens", 

67 "finra_symbol", 

68 "first_filings_annual", 

69 "flatten_fill_forward_bar", 

70 "fundamentals_rows", 

71 "fundamentals_table", 

72 "funding_url", 

73 "fx_pair_scores", 

74 "hashed_counts", 

75 "insider_net_table", 

76 "is_member", 

77 "kline_url", 

78 "liquid_universe", 

79 "list_symbols", 

80 "listed_months", 

81 "load_membership", 

82 "macro_scores", 

83 "market_cap_table", 

84 "member_days_by_year", 

85 "merge_submission_pages", 

86 "midpoint_bar_from_quote_bar", 

87 "months_between", 

88 "opportunistic", 

89 "pad_sequence_history", 

90 "parse_annual_text", 

91 "parse_aqr_sheet", 

92 "parse_day", 

93 "parse_french_zip", 

94 "parse_funding_zip", 

95 "parse_kline_zip", 

96 "parse_membership", 

97 "parse_quarter", 

98 "parse_zip_bytes", 

99 "price_breaks", 

100 "prior_year_filing_pairs", 

101 "quarterly_first_filings", 

102 "quarterly_ttm_rows", 

103 "quarters", 

104 "read_eps", 

105 "read_fundamentals", 

106 "read_positioning", 

107 "read_splits", 

108 "sector_for_sic", 

109 "short_ratio_table", 

110 "split_adjusted_eps", 

111 "split_factor_after", 

112 "standardised_surprises", 

113 "surprise_table", 

114 "suspect_interval", 

115 "tickers_touching", 

116 "truncate_at_swap", 

117 "user_agent", 

118 "write_fundamentals", 

119 "yahoo_symbol_for_member", 

120 # V6.6.5: Coinbase public candles, no key (fetch_daily_bars takes the network as get_json) 

121 "bars_to_panel", 

122 "candle_windows", 

123 "candles_url", 

124 "coinbase_product", 

125 "default_get_json", 

126 "fetch_daily_bars", 

127 "parse_candles", 

128]