wbfdm 2.2.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wbfdm might be problematic. Click here for more details.

Files changed (337) hide show
  1. wbfdm/__init__.py +2 -0
  2. wbfdm/admin/__init__.py +42 -0
  3. wbfdm/admin/classifications.py +39 -0
  4. wbfdm/admin/esg.py +23 -0
  5. wbfdm/admin/exchanges.py +53 -0
  6. wbfdm/admin/instrument_lists.py +23 -0
  7. wbfdm/admin/instrument_prices.py +62 -0
  8. wbfdm/admin/instrument_requests.py +33 -0
  9. wbfdm/admin/instruments.py +117 -0
  10. wbfdm/admin/instruments_relationships.py +25 -0
  11. wbfdm/admin/options.py +101 -0
  12. wbfdm/analysis/__init__.py +2 -0
  13. wbfdm/analysis/esg/__init__.py +0 -0
  14. wbfdm/analysis/esg/enums.py +82 -0
  15. wbfdm/analysis/esg/esg_analysis.py +217 -0
  16. wbfdm/analysis/esg/utils.py +13 -0
  17. wbfdm/analysis/financial_analysis/__init__.py +1 -0
  18. wbfdm/analysis/financial_analysis/financial_metric_analysis.py +88 -0
  19. wbfdm/analysis/financial_analysis/financial_ratio_analysis.py +125 -0
  20. wbfdm/analysis/financial_analysis/financial_statistics_analysis.py +271 -0
  21. wbfdm/analysis/financial_analysis/statement_with_estimates.py +558 -0
  22. wbfdm/analysis/financial_analysis/utils.py +316 -0
  23. wbfdm/analysis/technical_analysis/__init__.py +1 -0
  24. wbfdm/analysis/technical_analysis/technical_analysis.py +138 -0
  25. wbfdm/analysis/technical_analysis/traces.py +165 -0
  26. wbfdm/analysis/utils.py +32 -0
  27. wbfdm/apps.py +14 -0
  28. wbfdm/contrib/__init__.py +0 -0
  29. wbfdm/contrib/dsws/__init__.py +0 -0
  30. wbfdm/contrib/dsws/client.py +285 -0
  31. wbfdm/contrib/internal/__init__.py +0 -0
  32. wbfdm/contrib/internal/dataloaders/__init__.py +0 -0
  33. wbfdm/contrib/internal/dataloaders/market_data.py +87 -0
  34. wbfdm/contrib/metric/__init__.py +0 -0
  35. wbfdm/contrib/metric/admin/__init__.py +2 -0
  36. wbfdm/contrib/metric/admin/instruments.py +12 -0
  37. wbfdm/contrib/metric/admin/metrics.py +43 -0
  38. wbfdm/contrib/metric/apps.py +10 -0
  39. wbfdm/contrib/metric/backends/__init__.py +2 -0
  40. wbfdm/contrib/metric/backends/base.py +159 -0
  41. wbfdm/contrib/metric/backends/performances.py +265 -0
  42. wbfdm/contrib/metric/backends/statistics.py +182 -0
  43. wbfdm/contrib/metric/decorators.py +14 -0
  44. wbfdm/contrib/metric/dispatch.py +23 -0
  45. wbfdm/contrib/metric/dto.py +88 -0
  46. wbfdm/contrib/metric/exceptions.py +6 -0
  47. wbfdm/contrib/metric/factories.py +33 -0
  48. wbfdm/contrib/metric/filters.py +28 -0
  49. wbfdm/contrib/metric/migrations/0001_initial.py +88 -0
  50. wbfdm/contrib/metric/migrations/0002_remove_instrumentmetric_unique_instrument_metric_and_more.py +26 -0
  51. wbfdm/contrib/metric/migrations/__init__.py +0 -0
  52. wbfdm/contrib/metric/models.py +180 -0
  53. wbfdm/contrib/metric/orchestrators.py +94 -0
  54. wbfdm/contrib/metric/registry.py +80 -0
  55. wbfdm/contrib/metric/serializers.py +44 -0
  56. wbfdm/contrib/metric/tasks.py +27 -0
  57. wbfdm/contrib/metric/tests/__init__.py +0 -0
  58. wbfdm/contrib/metric/tests/backends/__init__.py +0 -0
  59. wbfdm/contrib/metric/tests/backends/test_performances.py +152 -0
  60. wbfdm/contrib/metric/tests/backends/test_statistics.py +48 -0
  61. wbfdm/contrib/metric/tests/conftest.py +92 -0
  62. wbfdm/contrib/metric/tests/test_dto.py +73 -0
  63. wbfdm/contrib/metric/tests/test_models.py +72 -0
  64. wbfdm/contrib/metric/tests/test_tasks.py +24 -0
  65. wbfdm/contrib/metric/tests/test_viewsets.py +79 -0
  66. wbfdm/contrib/metric/urls.py +19 -0
  67. wbfdm/contrib/metric/viewsets/__init__.py +1 -0
  68. wbfdm/contrib/metric/viewsets/configs/__init__.py +1 -0
  69. wbfdm/contrib/metric/viewsets/configs/display.py +92 -0
  70. wbfdm/contrib/metric/viewsets/configs/menus.py +11 -0
  71. wbfdm/contrib/metric/viewsets/configs/utils.py +137 -0
  72. wbfdm/contrib/metric/viewsets/mixins.py +245 -0
  73. wbfdm/contrib/metric/viewsets/viewsets.py +40 -0
  74. wbfdm/contrib/msci/__init__.py +0 -0
  75. wbfdm/contrib/msci/client.py +92 -0
  76. wbfdm/contrib/msci/dataloaders/__init__.py +0 -0
  77. wbfdm/contrib/msci/dataloaders/esg.py +87 -0
  78. wbfdm/contrib/msci/dataloaders/esg_controversies.py +81 -0
  79. wbfdm/contrib/msci/sync.py +58 -0
  80. wbfdm/contrib/msci/tests/__init__.py +0 -0
  81. wbfdm/contrib/msci/tests/conftest.py +1 -0
  82. wbfdm/contrib/msci/tests/test_client.py +70 -0
  83. wbfdm/contrib/qa/__init__.py +0 -0
  84. wbfdm/contrib/qa/apps.py +22 -0
  85. wbfdm/contrib/qa/database_routers.py +25 -0
  86. wbfdm/contrib/qa/dataloaders/__init__.py +0 -0
  87. wbfdm/contrib/qa/dataloaders/adjustments.py +56 -0
  88. wbfdm/contrib/qa/dataloaders/corporate_actions.py +59 -0
  89. wbfdm/contrib/qa/dataloaders/financials.py +83 -0
  90. wbfdm/contrib/qa/dataloaders/market_data.py +117 -0
  91. wbfdm/contrib/qa/dataloaders/officers.py +59 -0
  92. wbfdm/contrib/qa/dataloaders/reporting_dates.py +67 -0
  93. wbfdm/contrib/qa/dataloaders/statements.py +267 -0
  94. wbfdm/contrib/qa/tasks.py +0 -0
  95. wbfdm/dataloaders/__init__.py +0 -0
  96. wbfdm/dataloaders/cache.py +129 -0
  97. wbfdm/dataloaders/protocols.py +112 -0
  98. wbfdm/dataloaders/proxies.py +201 -0
  99. wbfdm/dataloaders/types.py +209 -0
  100. wbfdm/dynamic_preferences_registry.py +45 -0
  101. wbfdm/enums.py +657 -0
  102. wbfdm/factories/__init__.py +13 -0
  103. wbfdm/factories/classifications.py +56 -0
  104. wbfdm/factories/controversies.py +27 -0
  105. wbfdm/factories/exchanges.py +21 -0
  106. wbfdm/factories/instrument_list.py +22 -0
  107. wbfdm/factories/instrument_prices.py +79 -0
  108. wbfdm/factories/instruments.py +63 -0
  109. wbfdm/factories/instruments_relationships.py +31 -0
  110. wbfdm/factories/options.py +66 -0
  111. wbfdm/figures/__init__.py +1 -0
  112. wbfdm/figures/financials/__init__.py +1 -0
  113. wbfdm/figures/financials/financial_analysis_charts.py +469 -0
  114. wbfdm/figures/financials/financials_charts.py +711 -0
  115. wbfdm/filters/__init__.py +31 -0
  116. wbfdm/filters/classifications.py +100 -0
  117. wbfdm/filters/exchanges.py +22 -0
  118. wbfdm/filters/financials.py +95 -0
  119. wbfdm/filters/financials_analysis.py +119 -0
  120. wbfdm/filters/instrument_prices.py +112 -0
  121. wbfdm/filters/instruments.py +198 -0
  122. wbfdm/filters/utils.py +44 -0
  123. wbfdm/import_export/__init__.py +0 -0
  124. wbfdm/import_export/backends/__init__.py +0 -0
  125. wbfdm/import_export/backends/cbinsights/__init__.py +2 -0
  126. wbfdm/import_export/backends/cbinsights/deals.py +44 -0
  127. wbfdm/import_export/backends/cbinsights/equities.py +41 -0
  128. wbfdm/import_export/backends/cbinsights/mixin.py +15 -0
  129. wbfdm/import_export/backends/cbinsights/utils/__init__.py +0 -0
  130. wbfdm/import_export/backends/cbinsights/utils/classifications.py +4150 -0
  131. wbfdm/import_export/backends/cbinsights/utils/client.py +217 -0
  132. wbfdm/import_export/backends/refinitiv/__init__.py +5 -0
  133. wbfdm/import_export/backends/refinitiv/daily_fundamental.py +36 -0
  134. wbfdm/import_export/backends/refinitiv/fiscal_period.py +63 -0
  135. wbfdm/import_export/backends/refinitiv/forecast.py +178 -0
  136. wbfdm/import_export/backends/refinitiv/fundamental.py +103 -0
  137. wbfdm/import_export/backends/refinitiv/geographic_segment.py +32 -0
  138. wbfdm/import_export/backends/refinitiv/instrument.py +55 -0
  139. wbfdm/import_export/backends/refinitiv/instrument_price.py +77 -0
  140. wbfdm/import_export/backends/refinitiv/mixin.py +29 -0
  141. wbfdm/import_export/backends/refinitiv/utils/__init__.py +1 -0
  142. wbfdm/import_export/backends/refinitiv/utils/controller.py +182 -0
  143. wbfdm/import_export/handlers/__init__.py +0 -0
  144. wbfdm/import_export/handlers/instrument.py +253 -0
  145. wbfdm/import_export/handlers/instrument_list.py +101 -0
  146. wbfdm/import_export/handlers/instrument_price.py +71 -0
  147. wbfdm/import_export/handlers/option.py +54 -0
  148. wbfdm/import_export/handlers/private_equities.py +49 -0
  149. wbfdm/import_export/parsers/__init__.py +0 -0
  150. wbfdm/import_export/parsers/cbinsights/__init__.py +0 -0
  151. wbfdm/import_export/parsers/cbinsights/deals.py +39 -0
  152. wbfdm/import_export/parsers/cbinsights/equities.py +56 -0
  153. wbfdm/import_export/parsers/cbinsights/fundamentals.py +45 -0
  154. wbfdm/import_export/parsers/refinitiv/__init__.py +0 -0
  155. wbfdm/import_export/parsers/refinitiv/daily_fundamental.py +7 -0
  156. wbfdm/import_export/parsers/refinitiv/forecast.py +7 -0
  157. wbfdm/import_export/parsers/refinitiv/fundamental.py +9 -0
  158. wbfdm/import_export/parsers/refinitiv/geographic_segment.py +7 -0
  159. wbfdm/import_export/parsers/refinitiv/instrument.py +75 -0
  160. wbfdm/import_export/parsers/refinitiv/instrument_price.py +26 -0
  161. wbfdm/import_export/parsers/refinitiv/utils.py +96 -0
  162. wbfdm/import_export/resources/__init__.py +0 -0
  163. wbfdm/import_export/resources/classification.py +23 -0
  164. wbfdm/import_export/resources/instrument_prices.py +33 -0
  165. wbfdm/import_export/resources/instruments.py +176 -0
  166. wbfdm/jinja2.py +7 -0
  167. wbfdm/management/__init__.py +30 -0
  168. wbfdm/menu.py +11 -0
  169. wbfdm/migrations/0001_initial.py +71 -0
  170. wbfdm/migrations/0002_rename_statements_instrumentlookup_financials_and_more.py +144 -0
  171. wbfdm/migrations/0003_instrument_estimate_backend_and_more.py +34 -0
  172. wbfdm/migrations/0004_rename_financials_instrumentlookup_statements_and_more.py +86 -0
  173. wbfdm/migrations/0005_instrument_corporate_action_backend.py +29 -0
  174. wbfdm/migrations/0006_instrument_officer_backend.py +29 -0
  175. wbfdm/migrations/0007_instrument_country_instrument_currency_and_more.py +117 -0
  176. wbfdm/migrations/0008_controversy.py +75 -0
  177. wbfdm/migrations/0009_alter_controversy_flag_alter_controversy_initiated_and_more.py +85 -0
  178. wbfdm/migrations/0010_classification_classificationgroup_deal_exchange_and_more.py +1299 -0
  179. wbfdm/migrations/0011_delete_instrumentlookup_instrument_corporate_actions_and_more.py +169 -0
  180. wbfdm/migrations/0012_instrumentprice_created_instrumentprice_modified.py +564 -0
  181. wbfdm/migrations/0013_instrument_is_investable_universe_and_more.py +199 -0
  182. wbfdm/migrations/0014_alter_controversy_instrument.py +22 -0
  183. wbfdm/migrations/0015_instrument_instrument_investible_index.py +16 -0
  184. wbfdm/migrations/0016_instrumenttype_name_repr.py +18 -0
  185. wbfdm/migrations/0017_instrument_instrument_security_index.py +16 -0
  186. wbfdm/migrations/0018_instrument_instrument_level_index.py +20 -0
  187. wbfdm/migrations/0019_alter_controversy_source.py +17 -0
  188. wbfdm/migrations/0020_optionaggregate_option_and_more.py +249 -0
  189. wbfdm/migrations/0021_delete_instrumentdailystatistics.py +15 -0
  190. wbfdm/migrations/0022_instrument_cusip_option_open_interest_20d_and_more.py +91 -0
  191. wbfdm/migrations/0023_instrument_unique_ric_instrument_unique_rmc_and_more.py +53 -0
  192. wbfdm/migrations/0024_option_open_interest_10d_option_volume_10d_and_more.py +36 -0
  193. wbfdm/migrations/0025_instrument_is_primary_and_more.py +29 -0
  194. wbfdm/migrations/0026_instrument_is_cash_equivalent.py +30 -0
  195. wbfdm/migrations/0027_remove_instrument_unique_ric_and_more.py +100 -0
  196. wbfdm/migrations/__init__.py +0 -0
  197. wbfdm/models/__init__.py +4 -0
  198. wbfdm/models/esg/__init__.py +1 -0
  199. wbfdm/models/esg/controversies.py +81 -0
  200. wbfdm/models/exchanges/__init__.py +1 -0
  201. wbfdm/models/exchanges/exchanges.py +223 -0
  202. wbfdm/models/fields.py +117 -0
  203. wbfdm/models/fk_fields.py +403 -0
  204. wbfdm/models/indicators.py +0 -0
  205. wbfdm/models/instruments/__init__.py +19 -0
  206. wbfdm/models/instruments/classifications.py +265 -0
  207. wbfdm/models/instruments/instrument_lists.py +120 -0
  208. wbfdm/models/instruments/instrument_prices.py +540 -0
  209. wbfdm/models/instruments/instrument_relationships.py +251 -0
  210. wbfdm/models/instruments/instrument_requests.py +196 -0
  211. wbfdm/models/instruments/instruments.py +991 -0
  212. wbfdm/models/instruments/llm/__init__.py +1 -0
  213. wbfdm/models/instruments/llm/create_instrument_news_relationships.py +78 -0
  214. wbfdm/models/instruments/mixin/__init__.py +0 -0
  215. wbfdm/models/instruments/mixin/financials_computed.py +804 -0
  216. wbfdm/models/instruments/mixin/financials_serializer_fields.py +1407 -0
  217. wbfdm/models/instruments/mixin/instruments.py +294 -0
  218. wbfdm/models/instruments/options.py +225 -0
  219. wbfdm/models/instruments/private_equities.py +59 -0
  220. wbfdm/models/instruments/querysets.py +73 -0
  221. wbfdm/models/instruments/utils.py +41 -0
  222. wbfdm/preferences.py +21 -0
  223. wbfdm/serializers/__init__.py +4 -0
  224. wbfdm/serializers/esg.py +36 -0
  225. wbfdm/serializers/exchanges.py +39 -0
  226. wbfdm/serializers/instruments/__init__.py +37 -0
  227. wbfdm/serializers/instruments/classifications.py +139 -0
  228. wbfdm/serializers/instruments/instrument_lists.py +61 -0
  229. wbfdm/serializers/instruments/instrument_prices.py +73 -0
  230. wbfdm/serializers/instruments/instrument_relationships.py +170 -0
  231. wbfdm/serializers/instruments/instrument_requests.py +61 -0
  232. wbfdm/serializers/instruments/instruments.py +274 -0
  233. wbfdm/serializers/instruments/mixins.py +104 -0
  234. wbfdm/serializers/officers.py +20 -0
  235. wbfdm/signals.py +7 -0
  236. wbfdm/sync/__init__.py +0 -0
  237. wbfdm/sync/abstract.py +31 -0
  238. wbfdm/sync/runner.py +22 -0
  239. wbfdm/tasks.py +69 -0
  240. wbfdm/tests/__init__.py +0 -0
  241. wbfdm/tests/analysis/__init__.py +0 -0
  242. wbfdm/tests/analysis/financial_analysis/__init__.py +0 -0
  243. wbfdm/tests/analysis/financial_analysis/test_statement_with_estimates.py +392 -0
  244. wbfdm/tests/analysis/financial_analysis/test_utils.py +322 -0
  245. wbfdm/tests/analysis/test_esg.py +159 -0
  246. wbfdm/tests/conftest.py +92 -0
  247. wbfdm/tests/dataloaders/__init__.py +0 -0
  248. wbfdm/tests/dataloaders/test_cache.py +73 -0
  249. wbfdm/tests/models/__init__.py +0 -0
  250. wbfdm/tests/models/test_classifications.py +99 -0
  251. wbfdm/tests/models/test_exchanges.py +7 -0
  252. wbfdm/tests/models/test_instrument_list.py +117 -0
  253. wbfdm/tests/models/test_instrument_prices.py +306 -0
  254. wbfdm/tests/models/test_instruments.py +202 -0
  255. wbfdm/tests/models/test_merge.py +99 -0
  256. wbfdm/tests/models/test_options.py +69 -0
  257. wbfdm/tests/test_tasks.py +6 -0
  258. wbfdm/tests/tests.py +10 -0
  259. wbfdm/urls.py +222 -0
  260. wbfdm/utils.py +54 -0
  261. wbfdm/viewsets/__init__.py +10 -0
  262. wbfdm/viewsets/configs/__init__.py +5 -0
  263. wbfdm/viewsets/configs/buttons/__init__.py +8 -0
  264. wbfdm/viewsets/configs/buttons/classifications.py +23 -0
  265. wbfdm/viewsets/configs/buttons/exchanges.py +9 -0
  266. wbfdm/viewsets/configs/buttons/instrument_prices.py +49 -0
  267. wbfdm/viewsets/configs/buttons/instruments.py +283 -0
  268. wbfdm/viewsets/configs/display/__init__.py +22 -0
  269. wbfdm/viewsets/configs/display/classifications.py +138 -0
  270. wbfdm/viewsets/configs/display/esg.py +75 -0
  271. wbfdm/viewsets/configs/display/exchanges.py +42 -0
  272. wbfdm/viewsets/configs/display/instrument_lists.py +137 -0
  273. wbfdm/viewsets/configs/display/instrument_prices.py +199 -0
  274. wbfdm/viewsets/configs/display/instrument_requests.py +116 -0
  275. wbfdm/viewsets/configs/display/instruments.py +618 -0
  276. wbfdm/viewsets/configs/display/instruments_relationships.py +65 -0
  277. wbfdm/viewsets/configs/display/monthly_performances.py +72 -0
  278. wbfdm/viewsets/configs/display/officers.py +16 -0
  279. wbfdm/viewsets/configs/display/prices.py +21 -0
  280. wbfdm/viewsets/configs/display/statement_with_estimates.py +101 -0
  281. wbfdm/viewsets/configs/display/statements.py +48 -0
  282. wbfdm/viewsets/configs/endpoints/__init__.py +41 -0
  283. wbfdm/viewsets/configs/endpoints/classifications.py +87 -0
  284. wbfdm/viewsets/configs/endpoints/esg.py +20 -0
  285. wbfdm/viewsets/configs/endpoints/exchanges.py +6 -0
  286. wbfdm/viewsets/configs/endpoints/financials_analysis.py +65 -0
  287. wbfdm/viewsets/configs/endpoints/instrument_lists.py +38 -0
  288. wbfdm/viewsets/configs/endpoints/instrument_prices.py +51 -0
  289. wbfdm/viewsets/configs/endpoints/instrument_requests.py +20 -0
  290. wbfdm/viewsets/configs/endpoints/instruments.py +13 -0
  291. wbfdm/viewsets/configs/endpoints/instruments_relationships.py +31 -0
  292. wbfdm/viewsets/configs/endpoints/statements.py +6 -0
  293. wbfdm/viewsets/configs/menus/__init__.py +9 -0
  294. wbfdm/viewsets/configs/menus/classifications.py +19 -0
  295. wbfdm/viewsets/configs/menus/exchanges.py +10 -0
  296. wbfdm/viewsets/configs/menus/instrument_lists.py +10 -0
  297. wbfdm/viewsets/configs/menus/instruments.py +20 -0
  298. wbfdm/viewsets/configs/menus/instruments_relationships.py +33 -0
  299. wbfdm/viewsets/configs/titles/__init__.py +42 -0
  300. wbfdm/viewsets/configs/titles/classifications.py +79 -0
  301. wbfdm/viewsets/configs/titles/esg.py +11 -0
  302. wbfdm/viewsets/configs/titles/exchanges.py +12 -0
  303. wbfdm/viewsets/configs/titles/financial_ratio_analysis.py +6 -0
  304. wbfdm/viewsets/configs/titles/financials_analysis.py +50 -0
  305. wbfdm/viewsets/configs/titles/instrument_prices.py +50 -0
  306. wbfdm/viewsets/configs/titles/instrument_requests.py +16 -0
  307. wbfdm/viewsets/configs/titles/instruments.py +31 -0
  308. wbfdm/viewsets/configs/titles/instruments_relationships.py +21 -0
  309. wbfdm/viewsets/configs/titles/market_data.py +13 -0
  310. wbfdm/viewsets/configs/titles/prices.py +15 -0
  311. wbfdm/viewsets/configs/titles/statement_with_estimates.py +10 -0
  312. wbfdm/viewsets/esg.py +72 -0
  313. wbfdm/viewsets/exchanges.py +63 -0
  314. wbfdm/viewsets/financial_analysis/__init__.py +3 -0
  315. wbfdm/viewsets/financial_analysis/financial_metric_analysis.py +85 -0
  316. wbfdm/viewsets/financial_analysis/financial_ratio_analysis.py +85 -0
  317. wbfdm/viewsets/financial_analysis/statement_with_estimates.py +145 -0
  318. wbfdm/viewsets/instruments/__init__.py +80 -0
  319. wbfdm/viewsets/instruments/classifications.py +279 -0
  320. wbfdm/viewsets/instruments/financials_analysis.py +614 -0
  321. wbfdm/viewsets/instruments/instrument_lists.py +77 -0
  322. wbfdm/viewsets/instruments/instrument_prices.py +542 -0
  323. wbfdm/viewsets/instruments/instrument_requests.py +51 -0
  324. wbfdm/viewsets/instruments/instruments.py +106 -0
  325. wbfdm/viewsets/instruments/instruments_relationships.py +235 -0
  326. wbfdm/viewsets/instruments/utils.py +27 -0
  327. wbfdm/viewsets/market_data.py +172 -0
  328. wbfdm/viewsets/mixins.py +9 -0
  329. wbfdm/viewsets/officers.py +27 -0
  330. wbfdm/viewsets/prices.py +62 -0
  331. wbfdm/viewsets/statements/__init__.py +1 -0
  332. wbfdm/viewsets/statements/statements.py +100 -0
  333. wbfdm/viewsets/technical_analysis/__init__.py +1 -0
  334. wbfdm/viewsets/technical_analysis/monthly_performances.py +93 -0
  335. wbfdm-2.2.1.dist-info/METADATA +15 -0
  336. wbfdm-2.2.1.dist-info/RECORD +337 -0
  337. wbfdm-2.2.1.dist-info/WHEEL +5 -0
wbfdm/enums.py ADDED
@@ -0,0 +1,657 @@
1
+ from django.db.models import TextChoices
2
+ from wbcore.utils.enum import ChoiceEnum
3
+
4
+
5
+ class StatementType(ChoiceEnum):
6
+ INCOME_STATEMENT = "incomestatment"
7
+ BALANCE_SHEET = "balancesheet"
8
+ CASHFLOW_STATEMENT = "cashflowstatement"
9
+
10
+
11
+ class MarketData(ChoiceEnum):
12
+ """This enum holds the datatypes about recurring periodic market data, usually daily such as pricing data"""
13
+
14
+ OPEN = "open"
15
+ CLOSE = "close"
16
+ HIGH = "high"
17
+ LOW = "low"
18
+ BID = "bid"
19
+ ASK = "ask"
20
+ VWAP = "vwap"
21
+ VOLUME = "volume"
22
+ SHARES_OUTSTANDING = "outstanding_shares"
23
+ MARKET_CAPITALIZATION = "market_capitalization"
24
+
25
+ @classmethod
26
+ def name_mapping(cls):
27
+ return {
28
+ cls.CLOSE.value: "Closing Price",
29
+ cls.MARKET_CAPITALIZATION.value: "Market Cap.",
30
+ }
31
+
32
+
33
+ class Frequency(ChoiceEnum):
34
+ """This enum holds the information about the frequency of returned market data"""
35
+
36
+ DAILY = "daily"
37
+ WEEKLY = "weekly"
38
+ MONTHLY = "monthly"
39
+ QUARTERLY = "quarterly"
40
+ YEARLY = "yearly"
41
+
42
+
43
+ class Financial(ChoiceEnum):
44
+ """This enum holds the datatypes about recurring financial data, such as revenue"""
45
+
46
+ REVENUE = "revenue"
47
+ TOTAL_OPERATING_EXPENSES = "operating_expenses"
48
+ OPERATING_INCOME = "operating_income"
49
+ GROSS_PROFIT = "gross_profit"
50
+ NET_INCOME_BEFORE_TAXES = "pbt"
51
+ NET_INCOME = "net_income"
52
+ EPS = "eps"
53
+ FREE_CASH_FLOW = "fcf"
54
+ EBITDA = "ebitda"
55
+ EBITDA_PER_SHARE = "ebitda_sh"
56
+ NET_DEBT = "net_debt"
57
+ ENTERPRISE_VALUE = "ev"
58
+ SHARES_OUTSTANDING = "outstanding_shares"
59
+ COST_OF_GOODS_SOLD = "cogs"
60
+ GROSS_PROFIT_MARGIN = "gross_profit_margin"
61
+ SELLING_MARKETING_EXPENSES = "selling_marketing_expenses"
62
+ SGA_EXPENSES = "sga_expenses"
63
+ GENERAL_ADMIN_EXPENSES = "general_admin_expenses"
64
+ RND_EXPENSES = "rnd_expenses"
65
+ STOCK_COMPENSATION = "stock_compensation"
66
+ DEPRECATION = "deprecation"
67
+ AMORTIZATION = "amortization"
68
+ EBIT = "ebit"
69
+ INTEREST_EXPENSE = "interest_expense"
70
+ TAX_PROVISION = "tax_provision"
71
+ TAX_RATE = "tax_rate"
72
+ EBITDA_REPORTED = "ebitda_reported"
73
+ NET_INCOME_BEFORE_TAXES_REPORTED = "pbt_reported"
74
+ NET_INCOME_REPORTED = "net_income_reported"
75
+ EPS_REPORTED = "eps_reported"
76
+ DIVIDEND_PER_SHARE = "dividend_per_share"
77
+ WORKING_CAPITAL = "working_capital"
78
+ INCOME_TAXES_PAID = "income_taxed_paid"
79
+ CASH_FLOW_FROM_OPERATIONS = "cash_flow_from_operations"
80
+ CAPEX = "capex"
81
+ CASH_FLOW_FROM_INVESTING = "cash_flow_from_investing"
82
+ FREE_CASH_FLOW_PER_SHARE = "fcf_per_share"
83
+ TOTAL_DIVIDENDS = "total_dividends"
84
+ CASH_FLOW_FROM_FINANCING = "cash_flow_from_financing"
85
+ CASH_FLOW_PER_SHARE = "cash_flow_per_share"
86
+ CASH_EQUIVALENTS = "cash_equivalents"
87
+ INVENTORY = "inventory"
88
+ CURRENT_ASSETS = "current_assets"
89
+ TOTAL_ASSETS = "total_assets"
90
+ CURRENT_LIABILITIES = "current_liabilities"
91
+ CURRENT_DEFERRED_REVENUE = "current_deferred_revenue"
92
+ TOTAL_DEBT = "total_debt"
93
+ SHAREHOLDERS_EQUITY = "shareholders_equity"
94
+ GOODWILL = "goodwill"
95
+ NET_ASSET_VALUE = "net_asset_value"
96
+ BOOK_VALUE_PER_SHARE = "book_value_per_share"
97
+ TANGIBLE_BOOK_VALUE_PER_SHARE = "tangible_book_value_per_share"
98
+ TANGIBLE_BOOK_VALUE = "tangible_book_value"
99
+ RETURN_ON_ASSETS = "roa"
100
+ RETURN_ON_CAPITAL = "roc"
101
+ RETURN_ON_INVESTED_CAPITAL = "roic"
102
+ RETURN_ON_EQUITY = "roe"
103
+
104
+ EMPLOYEES = "employees"
105
+ CASH_AND_SHORT_TERM_INVESTMENT = "cash_and_short_term_investment"
106
+ DILUTED_WEIGHTED_AVG_SHARES = "diluded_weighted_avg_shares"
107
+
108
+ @classmethod
109
+ def name_mapping(cls):
110
+ return {
111
+ cls.REVENUE.value: "Revenue",
112
+ cls.TOTAL_OPERATING_EXPENSES.value: "Total Operating Expenses",
113
+ cls.OPERATING_INCOME.value: "Operating Income",
114
+ cls.GROSS_PROFIT.value: "Gross Profit",
115
+ cls.NET_INCOME_BEFORE_TAXES.value: "Net Income Before Taxes",
116
+ cls.NET_INCOME.value: "Net Income",
117
+ cls.EPS.value: "EPS",
118
+ cls.FREE_CASH_FLOW.value: "Free Cash Flow",
119
+ cls.EBITDA.value: "EBITDA",
120
+ cls.EBITDA_PER_SHARE.value: "EBITDA per Share",
121
+ cls.NET_DEBT.value: "Net Debt",
122
+ cls.ENTERPRISE_VALUE.value: "Enterprise Value",
123
+ cls.SHARES_OUTSTANDING.value: "Shares Outstanding",
124
+ cls.COST_OF_GOODS_SOLD.value: "Cost of goods sold",
125
+ cls.GROSS_PROFIT_MARGIN.value: "Gross Profit Margin",
126
+ cls.SELLING_MARKETING_EXPENSES.value: "Selling/Marketing Expenses",
127
+ cls.SGA_EXPENSES.value: "SG&A Expenses",
128
+ cls.GENERAL_ADMIN_EXPENSES.value: "General & Admin. Expenses",
129
+ cls.RND_EXPENSES.value: "R&D Expenses",
130
+ cls.STOCK_COMPENSATION.value: "Stock based comp.",
131
+ cls.DEPRECATION.value: "Deprecation",
132
+ cls.AMORTIZATION.value: "Amortization",
133
+ cls.EBIT.value: "EBIT",
134
+ cls.INTEREST_EXPENSE.value: "Interest Expenses",
135
+ cls.TAX_PROVISION.value: "Tax Provision",
136
+ cls.TAX_RATE.value: "Tax Rate",
137
+ cls.EBITDA_REPORTED.value: "EBITDA (Reported)",
138
+ cls.NET_INCOME_BEFORE_TAXES_REPORTED.value: "Net Income Before Taxes (Reported)",
139
+ cls.NET_INCOME_REPORTED.value: "Net Income (Reported)",
140
+ cls.EPS_REPORTED.value: "EPS (Reported)",
141
+ cls.DIVIDEND_PER_SHARE.value: "Dividend per Share",
142
+ cls.WORKING_CAPITAL.value: "Working Capital",
143
+ cls.INCOME_TAXES_PAID.value: "Income Taxes Paid",
144
+ cls.CASH_FLOW_FROM_OPERATIONS.value: "Cash Flow from Operations",
145
+ cls.CAPEX.value: "Capital Expenditures",
146
+ cls.CASH_FLOW_FROM_INVESTING.value: "Cash Flow from Investing",
147
+ cls.FREE_CASH_FLOW_PER_SHARE.value: "Free Cash Flow per Share",
148
+ cls.TOTAL_DIVIDENDS.value: "Total Dividends",
149
+ cls.CASH_FLOW_FROM_FINANCING.value: "Cash Flow from Financing",
150
+ cls.CASH_FLOW_PER_SHARE.value: "Cash Flow per Share",
151
+ cls.CASH_EQUIVALENTS.value: "Cash & Cash Equivalents",
152
+ cls.INVENTORY.value: "Inventory",
153
+ cls.CURRENT_ASSETS.value: "Current Assets",
154
+ cls.TOTAL_ASSETS.value: "Total Assets",
155
+ cls.CURRENT_LIABILITIES.value: "Current Liabilities",
156
+ cls.CURRENT_DEFERRED_REVENUE.value: "Current deferred Revenue",
157
+ cls.TOTAL_DEBT.value: "Total Debt",
158
+ cls.SHAREHOLDERS_EQUITY.value: "Shareholders Equity",
159
+ cls.GOODWILL.value: "Goodwill",
160
+ cls.NET_ASSET_VALUE.value: "Net Asset Value",
161
+ cls.BOOK_VALUE_PER_SHARE.value: "Book Value per Share",
162
+ cls.TANGIBLE_BOOK_VALUE_PER_SHARE.value: "Tangible Book Value per Share",
163
+ cls.TANGIBLE_BOOK_VALUE.value: "Tangible Book Value",
164
+ cls.RETURN_ON_ASSETS.value: "Return of Assets (ROA)",
165
+ cls.RETURN_ON_CAPITAL.value: "Return on Captial (ROC)",
166
+ cls.RETURN_ON_INVESTED_CAPITAL.value: "Return on invested Capital (ROIC)",
167
+ cls.RETURN_ON_EQUITY.value: "Return on Equity (ROE)",
168
+ cls.EMPLOYEES.value: "# Employees",
169
+ cls.CASH_AND_SHORT_TERM_INVESTMENT.value: "Cash & Short Term Investments",
170
+ cls.DILUTED_WEIGHTED_AVG_SHARES.value: "Diluted Weighted Average Shares",
171
+ "net_debt_ebitda_ratio": "Net Debt/EBITDA",
172
+ "total_debt_ebitda_ratio": "Total Debt/EBITDA",
173
+ "fcf_total_debt_ratio": "FCF/Total Debt",
174
+ "cfo_total_debt_ratio": "CFO/Total Debt",
175
+ "total_debt_equity_ratio": "Total Debt / Equity",
176
+ "total_debt_capital_ratio": "Total Debt / Capital",
177
+ "current_ratio": "Current Ratio",
178
+ "cash_from_operation_current_liabilities_ratio": "Cash from Ops. To Curr Liab.",
179
+ "asset_turnover": "Asset Turnover",
180
+ "current_liability_coverage_ratio": "Current Liability Coverage Ratio",
181
+ "cash_flow_margin": "Cash Flow Margin (%)",
182
+ "asset_efficiency_margin": "Asset Efficiency (%)",
183
+ "net_debt_coverage_ratio": "Net Debt Coverage Ratio",
184
+ "gross_margin": "Gross Margin (%)",
185
+ "sga_margin": "SG&A Margin (%)",
186
+ "ebitda_margin": "EBITDA Margin (%)",
187
+ "ebit_margin": "EBIT Margin (%)",
188
+ "net_income_margin": "Net Income Margin (%)",
189
+ "free_cash_flow_margin": "Free Cash Flow Margin (%)",
190
+ "price_sales_ratio": "Price / Sales",
191
+ "price_earning_reported_ratio": "P / E(Reported)",
192
+ "price_earning_ratio": "P/E",
193
+ "ev_ebitda_ratio": "EV/EBITDA",
194
+ "ev_ebit_ratio": "EV/EBIT",
195
+ "price_to_cash_flow_ratio": "Price to Cash Flow",
196
+ "price_to_book_ratio": "Price to Book",
197
+ "roce": "ROCE",
198
+ "price_to_tangible_bv_ratio": "Price to Tangible BV",
199
+ "cash_shares_ratio": "Cash/Shares",
200
+ "total_debt_shares_ratio": "Total Debt/Shares",
201
+ "net_debt_shares_ratio": "Net Debt/Shares",
202
+ "stock_compensation_employee_ratio": "Stock based comp. / Employee",
203
+ "net_cash": "Net Cash",
204
+ }
205
+
206
+
207
+ class ESG(ChoiceEnum):
208
+ CARBON_EMISSIONS_SCOPE_1 = "carbon_emissions_scope_1"
209
+ CARBON_EMISSIONS_SCOPE_1_KEY = "carbon_emissions_scope_1_key"
210
+ CARBON_EMISSIONS_SCOPE_2 = "carbon_emissions_scope_2"
211
+ CARBON_EMISSIONS_SCOPE_2_KEY = "carbon_emissions_scope_2_key"
212
+ CARBON_EMISSIONS_SCOPE_3_TOTAL = "carbon_emissions_scope_3_total"
213
+ CARBON_EMISSIONS_SCOPE_3_YEAR = "carbon_emissions_scope_3_year"
214
+ CARBON_EMISSIONS_SOURCE = "carbon_emissions_source"
215
+ CARBON_EMISSIONS_YEAR = "carbon_emissions_year"
216
+ CARBON_EMISSIONS_SCOPE123_EVIC_EUR = "carbon_emissions_scope123_evic_eur"
217
+ CARBON_EMISSIONS_SCOPE123 = "carbon_emissions_scope123"
218
+ CARBON_EMISSIONS_SCOPE123_KEY = "carbon_emissions_scope123_key"
219
+ CARBON_EMISSIONS_SALES_EUR_SCOPE_ALL = "carbon_emissions_sales_eur_scope_all"
220
+ ACTIVE_FF_SECTOR_EXPOSURE = "active_ff_sector_exposure"
221
+ ACTIVE_FF_SECTOR_EXPOSURE_SOURCE = "active_ff_sector_exposure_source"
222
+ ACTIVE_FF_SECTOR_EXPOSURE_YEAR = "active_ff_sector_exposure_year"
223
+ PCT_NON_RENEW_CONSUMPTION_PRODUCTION = "pct_non_renew_consumption_production"
224
+ PCT_TOTAL_NON_RENEW_CONSUMPTION = "pct_total_non_renew_consumption"
225
+ PCT_TOTAL_NON_RENEW_PRODUCTION = "pct_total_non_renew_production"
226
+ TOTAL_RENEW_ENERGY_CONSUMPTION = "total_renew_energy_consumption"
227
+ TOTAL_RENEW_ENERGY_CONSUMPTION_SOURCE = "total_renew_energy_consumption_source"
228
+ TOTAL_RENEW_ENERGY_CONSUMPTION_YEAR = "total_renew_energy_consumption_year"
229
+ TOTAL_NON_RENEW_ENERGY_CONSUMPTION = "total_non_renew_energy_consumption"
230
+ TOTAL_NON_RENEW_ENERGY_CONSUMPTION_SOURCE = "total_non_renew_energy_consumption_source"
231
+ TOTAL_NON_RENEW_ENERGY_CONSUMPTION_YEAR = "total_non_renew_energy_consumption_year"
232
+ TOTAL_NON_RENEW_ENERGY_CONSUMPTION_PRODUCTION = "total_non_renew_energy_consumption_production"
233
+ TOTAL_NON_RENEW_ENERGY_CONSUMPTION_PRODUCTION_SOURCE = "total_non_renew_energy_consumption_production_source"
234
+ TOTAL_NON_RENEW_ENERGY_CONSUMPTION_PRODUCTION_YEAR = "total_non_renew_energy_consumption_production_year"
235
+ TOTAL_ENERGY_CONSUMPTION = "total_energy_consumption"
236
+ TOTAL_ENERGY_CONSUMPTION_SOURCE = "total_energy_consumption_source"
237
+ TOTAL_ENERGY_CONSUMPTION_YEAR = "total_energy_consumption_year"
238
+ ENERGY_CONSUMPTION_INTENSITY_EUR = "energy_consumption_intensity_eur"
239
+ ENERGY_CONSUMPTION_INTENSITY_EUR_SOURCE = "energy_consumption_intensity_eur_source"
240
+ ENERGY_CONSUMPTION_INTENSITY_EUR_YEAR = "energy_consumption_intensity_eur_year"
241
+ OPS_BIODIV_CONTROVERSITIES = "ops_biodiv_controversities"
242
+ OPS_BIODIV_AREAS = "ops_biodiv_areas"
243
+ WATER_EMISSIONS = "water_emissions"
244
+ WATER_EMISSIONS_YEAR = "water_emissions_year"
245
+ WATER_EMISSIONS_SOURCE = "water_emissions_source"
246
+ HAZARD_WASTE = "hazard_waste"
247
+ HAZARD_WASTE_YEAR = "hazard_waste_year"
248
+ HAZARD_WASTE_SOURCE = "hazard_waste_source"
249
+ OECD_ALIGNMENT = "oecd_alignment"
250
+ LABOR_DDP = "labor_ddp"
251
+ COMPLIANCE_GLOBAL_IMPACT = "compliance_global_impact"
252
+ GENDER_PAY_GAP_RATIO = "gender_pay_gap_ratio"
253
+ GENDER_PAY_GAP_RATIO_YEAR = "gender_pay_gap_ratio_year"
254
+ GENDER_PAY_GAP_RATIO_SOURCE = "gender_pay_gap_ratio_source"
255
+ PCT_FEMALE_DIRECTORS = "pct_female_directors"
256
+ CONTROVERSIAL_WEAPONS = "controversial_weapons"
257
+ CONTROVERSIAL_WEAPONS_SOURCE = "controversial_weapons_source"
258
+ CVI_FACTOR = "cvi_factor"
259
+ EVIC_EUR = "evic_eur"
260
+ NACE_SECTION_CODE = "nace_section_code"
261
+
262
+ @classmethod
263
+ def mapping(cls):
264
+ return {
265
+ cls.CARBON_EMISSIONS_SCOPE_1.value: (
266
+ 1,
267
+ "GHG emissions",
268
+ "Scope 1 GHC Emissions",
269
+ "Carbon Emission Scope 1 (metric tons)",
270
+ ),
271
+ cls.CARBON_EMISSIONS_SCOPE_1_KEY.value: (
272
+ 1,
273
+ "GHG emissions",
274
+ "Scope 1 GHC Emissions",
275
+ "Carbon Emissions - Scope 1 KEY",
276
+ ),
277
+ cls.CARBON_EMISSIONS_SCOPE_2.value: (
278
+ 1,
279
+ "GHG emissions",
280
+ "Scope 2 GHC Emissions",
281
+ "Carbon Emission Scope 2 (metric tons)",
282
+ ),
283
+ cls.CARBON_EMISSIONS_SCOPE_2_KEY.value: (
284
+ 1,
285
+ "GHG emissions",
286
+ "Scope 2 GHC Emissions",
287
+ "Carbon Emissions - Scope 2 KEY",
288
+ ),
289
+ cls.CARBON_EMISSIONS_SCOPE_3_TOTAL.value: (
290
+ 1,
291
+ "GHG emissions",
292
+ "Scope 3 Total GHC Emissions",
293
+ "Scope 3 - Total Emissions Estimated",
294
+ ),
295
+ cls.CARBON_EMISSIONS_SCOPE_3_YEAR.value: (
296
+ 1,
297
+ "GHG emissions",
298
+ "Scope 3 Total GHC Emissions",
299
+ "Scope 3 - Total Emissions Estimated Year",
300
+ ),
301
+ cls.CARBON_EMISSIONS_SOURCE.value: (
302
+ 1,
303
+ "GHG emissions",
304
+ "Total GHG emissions",
305
+ "Carbon Emissions - Source",
306
+ ),
307
+ cls.CARBON_EMISSIONS_YEAR.value: (1, "GHG emissions", "Total GHG emissions", "Carbon Emissions - Year"),
308
+ cls.CARBON_EMISSIONS_SCOPE123.value: (
309
+ 2,
310
+ "Carbon footprint",
311
+ "Scope 123 GHC Emissions",
312
+ "Total GHG Emissions (Scopes 1, 2 and 3)",
313
+ ),
314
+ cls.CARBON_EMISSIONS_SCOPE123_KEY.value: (
315
+ 2,
316
+ "Carbon footprint",
317
+ "Scope 123 GHC Emissions",
318
+ "Total GHG Emissions (Scopes 1, 2 and 3 Key)",
319
+ ),
320
+ cls.CARBON_EMISSIONS_SCOPE123_EVIC_EUR.value: (
321
+ 2,
322
+ "Carbon footprint",
323
+ "Carbon footprint",
324
+ "Total GHG Emissions Intensity per EUR million EVIC (t/EUR million EVIC)",
325
+ ),
326
+ cls.CARBON_EMISSIONS_SALES_EUR_SCOPE_ALL.value: (
327
+ 3,
328
+ "GHG intensity of investee companies",
329
+ "GHG intensity of investee companies",
330
+ "Total GHG Emissions Intensity per EUR million Sales (t/EUR million sales)",
331
+ ),
332
+ cls.ACTIVE_FF_SECTOR_EXPOSURE.value: (
333
+ 4,
334
+ "Exposure to companies active in the fossil fuel sector",
335
+ "Share of investments in companies active in the fossil fuel sector",
336
+ "Active Fossil Fuel Sector Exposure",
337
+ ),
338
+ cls.ACTIVE_FF_SECTOR_EXPOSURE_SOURCE.value: (
339
+ 4,
340
+ "Exposure to companies active in the fossil fuel sector",
341
+ "Share of investments in companies active in the fossil fuel sector",
342
+ "Active Fossil Fuel Sector Exposure - Source",
343
+ ),
344
+ cls.ACTIVE_FF_SECTOR_EXPOSURE_YEAR.value: (
345
+ 4,
346
+ "Exposure to companies active in the fossil fuel sector",
347
+ "Share of investments in companies active in the fossil fuel sector",
348
+ "Active Fossil Fuel Sector Exposure - Year",
349
+ ),
350
+ cls.PCT_NON_RENEW_CONSUMPTION_PRODUCTION.value: (
351
+ 5,
352
+ "Share of nonrenewable energy consumption and production",
353
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
354
+ "Percentage of non-renewable energy consumption and production",
355
+ ),
356
+ cls.PCT_TOTAL_NON_RENEW_CONSUMPTION.value: (
357
+ 5,
358
+ "Share of nonrenewable energy consumption and production",
359
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
360
+ "Percentage of Total Energy Consumption from Non-renewable Sources",
361
+ ),
362
+ cls.PCT_TOTAL_NON_RENEW_PRODUCTION.value: (
363
+ 5,
364
+ "Share of nonrenewable energy consumption and production",
365
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
366
+ "Percentage of Total Energy Production from Non-renewable Sources",
367
+ ),
368
+ cls.TOTAL_RENEW_ENERGY_CONSUMPTION.value: (
369
+ 5,
370
+ "Share of nonrenewable energy consumption and production",
371
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
372
+ "Total energy consumption from renewable sources (GWh)",
373
+ ),
374
+ cls.TOTAL_RENEW_ENERGY_CONSUMPTION_SOURCE.value: (
375
+ 5,
376
+ "Share of nonrenewable energy consumption and production",
377
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
378
+ "Total energy consumption from renewable sources (GWh) Source",
379
+ ),
380
+ cls.TOTAL_RENEW_ENERGY_CONSUMPTION_YEAR.value: (
381
+ 5,
382
+ "Share of nonrenewable energy consumption and production",
383
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
384
+ "Total energy consumption from renewable sources (GWh) Year",
385
+ ),
386
+ cls.TOTAL_NON_RENEW_ENERGY_CONSUMPTION.value: (
387
+ 5,
388
+ "Share of nonrenewable energy consumption and production",
389
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
390
+ "Total energy consumption from non-renewable sources (GWh)",
391
+ ),
392
+ cls.TOTAL_NON_RENEW_ENERGY_CONSUMPTION_SOURCE.value: (
393
+ 5,
394
+ "Share of nonrenewable energy consumption and production",
395
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
396
+ "Total energy consumption from non-renewable sources (GWh) Source",
397
+ ),
398
+ cls.TOTAL_NON_RENEW_ENERGY_CONSUMPTION_YEAR.value: (
399
+ 5,
400
+ "Share of nonrenewable energy consumption and production",
401
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
402
+ "Total energy consumption from non-renewable sources (GWh) Year",
403
+ ),
404
+ cls.TOTAL_NON_RENEW_ENERGY_CONSUMPTION_PRODUCTION.value: (
405
+ 5,
406
+ "Share of nonrenewable energy consumption and production",
407
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
408
+ "Total Energy Consumption and Production from Non-renewable Sources (GWh)",
409
+ ),
410
+ cls.TOTAL_NON_RENEW_ENERGY_CONSUMPTION_PRODUCTION_SOURCE.value: (
411
+ 5,
412
+ "Share of nonrenewable energy consumption and production",
413
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
414
+ "Total Energy Consumption and Production from Non-renewable Sources (GWh) Source",
415
+ ),
416
+ cls.TOTAL_NON_RENEW_ENERGY_CONSUMPTION_PRODUCTION_YEAR.value: (
417
+ 5,
418
+ "Share of nonrenewable energy consumption and production",
419
+ "Share of non-renewable energy consumption and non-renewable energy production of investee companies from non-renewable energy sources compared to renewable energy sources, expressed as a percentage",
420
+ "Total Energy Consumption and Production from Non-renewable Sources (GWh) Year",
421
+ ),
422
+ cls.TOTAL_ENERGY_CONSUMPTION.value: (
423
+ 5,
424
+ "Energy consumption intensity per high impact climate sector",
425
+ "Total Energy consumption",
426
+ "Total energy consumption (GWh)",
427
+ ),
428
+ cls.TOTAL_ENERGY_CONSUMPTION_SOURCE.value: (
429
+ 5,
430
+ "Energy consumption intensity per high impact climate sector",
431
+ "Total Energy consumption",
432
+ "Total energy consumption (GWh) - Source",
433
+ ),
434
+ cls.TOTAL_ENERGY_CONSUMPTION_YEAR.value: (
435
+ 5,
436
+ "Energy consumption intensity per high impact climate sector",
437
+ "Total Energy consumption",
438
+ "Total energy consumption (GWh) - Year",
439
+ ),
440
+ cls.ENERGY_CONSUMPTION_INTENSITY_EUR.value: (
441
+ 6,
442
+ "Energy consumption intensity per high impact climate sector",
443
+ "Energy consumption in GWh per million EUR of revenue of investee companies, per high impact climate sector",
444
+ "Energy consumption intensity (GWh / EUR million sales)",
445
+ ),
446
+ cls.ENERGY_CONSUMPTION_INTENSITY_EUR_SOURCE.value: (
447
+ 6,
448
+ "Energy consumption intensity per high impact climate sector",
449
+ "Energy consumption in GWh per million EUR of revenue of investee companies, per high impact climate sector",
450
+ "Energy consumption intensity (GWh / EUR million sales) - Source",
451
+ ),
452
+ cls.ENERGY_CONSUMPTION_INTENSITY_EUR_YEAR.value: (
453
+ 6,
454
+ "Energy consumption intensity per high impact climate sector",
455
+ "Energy consumption in GWh per million EUR of revenue of investee companies, per high impact climate sector",
456
+ "Energy consumption intensity (GWh / EUR million sales) - Year",
457
+ ),
458
+ cls.OPS_BIODIV_CONTROVERSITIES.value: (
459
+ 7,
460
+ "Activities negatively affecting biodiversity sensitive areas",
461
+ "Share of investments in investee companies with sites/operations located in or near to biodiversitysensitive areas where activities of those investee companies negatively affect those areas",
462
+ "Company has operations located in biodiversity sensitive areas and is involved in controversies with severe impact on the environment",
463
+ ),
464
+ cls.OPS_BIODIV_AREAS.value: (
465
+ 7,
466
+ "Activities negatively affecting biodiversity sensitive areas",
467
+ "Share of investments in investee companies with sites/operations located in or near to biodiversitysensitive areas where activities of those investee companies negatively affect those areas",
468
+ "Operational sites owned, leased, managed in, or adjacent to, protected areas and areas of high biodiversity value outside protected areas",
469
+ ),
470
+ cls.WATER_EMISSIONS.value: (
471
+ 8,
472
+ "Emissions to water",
473
+ "Tonnes of emissions to water generated by investee companies per million EUR invested, expressed as a weighted average",
474
+ "Water Emissions (metric tons)",
475
+ ),
476
+ cls.WATER_EMISSIONS_SOURCE.value: (
477
+ 8,
478
+ "Emissions to water",
479
+ "Tonnes of emissions to water generated by investee companies per million EUR invested, expressed as a weighted average",
480
+ "Water Emissions (metric tons) - Source",
481
+ ),
482
+ cls.WATER_EMISSIONS_YEAR.value: (
483
+ 8,
484
+ "Emissions to water",
485
+ "Tonnes of emissions to water generated by investee companies per million EUR invested, expressed as a weighted average",
486
+ "Water Emissions (metric tons) - Year",
487
+ ),
488
+ cls.HAZARD_WASTE.value: (
489
+ 9,
490
+ "Hazardous waste ratio",
491
+ "Tonnes of hazardous waste generated by investee companies per million EUR invested, expressed as a weighted average",
492
+ "Hazardous Waste (metric tons)",
493
+ ),
494
+ cls.HAZARD_WASTE_YEAR.value: (
495
+ 9,
496
+ "Hazardous waste ratio",
497
+ "Tonnes of hazardous waste generated by investee companies per million EUR invested, expressed as a weighted average",
498
+ "Hazardous Waste (metric tons) - Year",
499
+ ),
500
+ cls.OECD_ALIGNMENT.value: (
501
+ 10,
502
+ "Violations of UN Global Compact principles and Organisation for Economic Cooperation and Development (OECD) Guidelines for Multinational Enterprises",
503
+ "Share of investments in investee companies that have been involved in violations of the UNGC principles or OECD Guidelines for Multinational Enterprises",
504
+ "OECD Alignment",
505
+ ),
506
+ cls.LABOR_DDP.value: (
507
+ 11,
508
+ "Lack of processes and compliance mechanisms to monitor compliance with UN Global Compact principles and OECD Guidelines for Multinational Enterprises",
509
+ "Share of investments in investee companies without policies to monitor compliance with the UNGC principles or OECD Guidelines for Multinational Enterprises or grievance /complaints handling mechanisms to address violations of the UNGC principles or OECD Guidelines for Multinational Enterprises",
510
+ "Labor Due Diligence Policy (ILO)",
511
+ ),
512
+ cls.COMPLIANCE_GLOBAL_IMPACT.value: (
513
+ 11,
514
+ "Lack of processes and compliance mechanisms to monitor compliance with UN Global Compact principles and OECD Guidelines for Multinational Enterprises",
515
+ "Share of investments in investee companies without policies to monitor compliance with the UNGC principles or OECD Guidelines for Multinational Enterprises or grievance /complaints handling mechanisms to address violations of the UNGC principles or OECD Guidelines for Multinational Enterprises",
516
+ "Mechanism to monitor compliance with UN Global Compact",
517
+ ),
518
+ cls.GENDER_PAY_GAP_RATIO.value: (
519
+ 12,
520
+ "Unadjusted gender pay gap",
521
+ "Average unadjusted gender pay gap of investee companies",
522
+ "Gender pay gap ratio",
523
+ ),
524
+ cls.GENDER_PAY_GAP_RATIO_YEAR.value: (
525
+ 12,
526
+ "Unadjusted gender pay gap",
527
+ "Average unadjusted gender pay gap of investee companies",
528
+ "Gender pay gap ratio - Year",
529
+ ),
530
+ cls.GENDER_PAY_GAP_RATIO_SOURCE.value: (
531
+ 12,
532
+ "Unadjusted gender pay gap",
533
+ "Average unadjusted gender pay gap of investee companies",
534
+ "Gender pay gap ratio - Source",
535
+ ),
536
+ cls.PCT_FEMALE_DIRECTORS.value: (
537
+ 13,
538
+ "Board gender diversity",
539
+ "Average ratio of female to male board members in investee companies, expressed as a percentage of all board members",
540
+ "Female Directors Percentage",
541
+ ),
542
+ cls.CONTROVERSIAL_WEAPONS.value: (
543
+ 14,
544
+ "Exposure to controversial weapons (antipersonnel mines, cluster munitions, chemical weapons and biological weapons)",
545
+ "Share of investments in investee companies involved in the manufacture or selling of controversial weapons",
546
+ "Exposure to controversial weapons (landmines, cluster munitions, chemical weapons and biological weapons)",
547
+ ),
548
+ cls.CONTROVERSIAL_WEAPONS_SOURCE.value: (
549
+ 14,
550
+ "Exposure to controversial weapons (antipersonnel mines, cluster munitions, chemical weapons and biological weapons)",
551
+ "Share of investments in investee companies involved in the manufacture or selling of controversial weapons",
552
+ "Exposure to controversial weapons (landmines, cluster munitions, chemical weapons and biological weapons) - Source",
553
+ ),
554
+ cls.CVI_FACTOR.value: (
555
+ None,
556
+ "Metadata",
557
+ "Capital Value Investor Factor",
558
+ "CVI Factor",
559
+ ),
560
+ cls.EVIC_EUR.value: (
561
+ None,
562
+ "Metadata",
563
+ "Enterprise Value Including Cash",
564
+ "Enterprise Value Including Cash (EUR)",
565
+ ),
566
+ cls.NACE_SECTION_CODE.value: (
567
+ None,
568
+ "Metadata",
569
+ "NACE (Nomenclature of Economic Activities) is the European statistical classification of economic activities.",
570
+ "Nomenclature of Economic Activities (NACE) Code",
571
+ ),
572
+ }
573
+
574
+
575
+ class PeriodType(ChoiceEnum):
576
+ """This enum holds information about the periodicity of the required data"""
577
+
578
+ ANNUAL = "annual"
579
+ INTERIM = "interim"
580
+ ALL = "all"
581
+
582
+
583
+ class CalendarType(TextChoices):
584
+ """This enum holds information about the required calendar type"""
585
+
586
+ FISCAL = "fiscal"
587
+ CALENDAR = "calendar"
588
+
589
+
590
+ class SeriesType(ChoiceEnum):
591
+ """This enum holds information about the series type"""
592
+
593
+ COMPLETE = "complete"
594
+ ACTUAL = "actual"
595
+ ESTIMATE = "estimate"
596
+ FULL_ESTIMATE = "full_estimate"
597
+
598
+
599
+ class DataType(TextChoices):
600
+ """This enum helps to differenciate between reported and standardized data"""
601
+
602
+ REPORTED = "reported"
603
+ STANDARDIZED = "standardized"
604
+
605
+
606
+ class EstimateType(ChoiceEnum):
607
+ """This enum helps to differentiate between only valid estimates or all estimates (historic)"""
608
+
609
+ ALL = "all"
610
+ VALID = "valid"
611
+
612
+
613
+ class MarketDataChartType(TextChoices):
614
+ CLOSE = ("close", "Close")
615
+ DRAWDOWN = ("drawdown", "Drawdown")
616
+ RETURN = ("ret", "Return")
617
+ LOG_RETURN = ("log-ret", "Log Return")
618
+ CANDLESTICK = ("candlestick", "Candlestick")
619
+ OHLC = ("ohlc", "OHLC")
620
+ # BOLLINGER = ("bollinger", "Bollinger Bands")
621
+
622
+
623
+ class Indicator(TextChoices):
624
+ SMA_50 = ("sma_50", "SMA 50")
625
+ SMA_100 = ("sma_100", "SMA 100")
626
+ SMA_120 = ("sma_120", "SMA 120")
627
+ SMA_200 = ("sma_200", "SMA 200")
628
+
629
+
630
+ class MarketDataSeriesIndicator(ChoiceEnum):
631
+ DRAWDOWN = "drawdown"
632
+
633
+
634
+ class ESGControveryStatus(TextChoices):
635
+ ONGOING = "ONGOING", "Ongoing"
636
+ PARTIALLY_CONCLUDED = "PARTIALLY_CONCLUDED", "Partially Concluded"
637
+ CONCLUDED = "CONCLUDED", "Concluded"
638
+
639
+
640
+ class ESGControverySeverity(TextChoices):
641
+ MINOR = "MINOR", "Minor"
642
+ MODERATE = "MODERATE", "Moderate"
643
+ SEVERE = "SEVERE", "Severe"
644
+ VERY_SEVERE = "VERY_SEVERE", "Very Severe"
645
+
646
+
647
+ class ESGControveryType(TextChoices):
648
+ STRUCTURAL = "STRUCTURAL", "Structural"
649
+ NON_STRUCTURAL = "NON_STRUCTURAL", "Non Structural"
650
+
651
+
652
+ class ESGControveryFlag(TextChoices):
653
+ GREEN = "GREEN", "Green"
654
+ YELLOW = "YELLOW", "Yellow"
655
+ ORANGE = "ORANGE", "Orange"
656
+ RED = "RED", "Red"
657
+ UNKNOWN = "UNKNOWN", "Unknown"
@@ -0,0 +1,13 @@
1
+ from .instruments import InstrumentFactory, CashFactory, EquityFactory, InstrumentTypeFactory
2
+ from .instrument_prices import InstrumentPriceFactory
3
+ from .controversies import ControversyFactory
4
+ from .exchanges import ExchangeFactory
5
+ from .classifications import (
6
+ ClassificationGroupFactory,
7
+ ClassificationFactory,
8
+ ParentClassificationFactory,
9
+ InstrumentClassificationThroughModelFactory,
10
+ )
11
+ from .instrument_list import InstrumentListFactory, InstrumentListThroughModelFactory
12
+ from .instruments_relationships import RelatedInstrumentThroughModelFactory, InstrumentFavoriteGroupFactory
13
+ from .options import OptionFactory, OptionAggregateFactory