thisisbbln commited on
Commit
22b7fad
·
verified ·
1 Parent(s): 66fe6a5

Add data_collector.py

Browse files
Files changed (1) hide show
  1. data_collector.py +123 -0
data_collector.py ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ data_collector.py
3
+ Subagent 1: Data Scraper & Market Ingestion
4
+ Target Focus Companies:
5
+ 1. Delek Group Ltd. (קבוצת דלק בע"מ) - The ultimate parent conglomerate & dividend distributor
6
+ 2. Africa Israel Investments Ltd. (אפריקה ישראל להשקעות בע"מ)
7
+ """
8
+
9
+ import os
10
+ import json
11
+ import numpy as np
12
+ import pandas as pd
13
+
14
+ def get_company_data():
15
+ """
16
+ Returns structured empirical accounting, dividend, option, and market data
17
+ for Delek Group Ltd. and Africa Israel Investments.
18
+ """
19
+ data = {
20
+ "Delek_Group": {
21
+ "name": "Delek Group Ltd. (קבוצת דלק בע\"מ)",
22
+ "restructuring_year": 2020,
23
+ "dividends": [
24
+ {
25
+ "date": "2007-04-10",
26
+ "amount_nis_m": 350.0,
27
+ "accounting_surplus_nis_m": 1450.0,
28
+ "working_capital_nis_m": -1850.0,
29
+ "total_assets_nis_m": 42500.0,
30
+ "retained_earnings_nis_m": 1450.0,
31
+ "ebit_nis_m": 1150.0,
32
+ "bv_equity_nis_m": 3850.0,
33
+ "total_liabilities_nis_m": 38650.0,
34
+ "stock_price_pre": 840.0,
35
+ "dividend_per_share": 38.0,
36
+ "pre_div_volatility": 0.28,
37
+ "post_div_volatility": 0.39,
38
+ "risk_free_rate": 0.048
39
+ },
40
+ {
41
+ "date": "2008-04-15",
42
+ "amount_nis_m": 280.0,
43
+ "accounting_surplus_nis_m": 820.0,
44
+ "working_capital_nis_m": -3400.0,
45
+ "total_assets_nis_m": 44100.0,
46
+ "retained_earnings_nis_m": 820.0,
47
+ "ebit_nis_m": 320.0,
48
+ "bv_equity_nis_m": 2150.0,
49
+ "total_liabilities_nis_m": 41950.0,
50
+ "stock_price_pre": 480.0,
51
+ "dividend_per_share": 30.0,
52
+ "pre_div_volatility": 0.42,
53
+ "post_div_volatility": 0.58,
54
+ "risk_free_rate": 0.042
55
+ }
56
+ ],
57
+ "executive_options": [
58
+ {
59
+ "grant_title": "Delek Group Senior Leadership Option Plan",
60
+ "num_options": 500000,
61
+ "strike_k0": 750.0,
62
+ "maturity_years": 3.5,
63
+ "dividend_protection": True,
64
+ "protection_clause": "Full strike adjustment (K - D) upon cash dividend distribution"
65
+ }
66
+ ]
67
+ },
68
+ "Africa_Israel": {
69
+ "name": "Africa Israel Investments Ltd. (אפריקה ישראל להשקעות בע\"מ)",
70
+ "restructuring_year": 2009,
71
+ "dividends": [
72
+ {
73
+ "date": "2007-06-30",
74
+ "amount_nis_m": 580.0,
75
+ "accounting_surplus_nis_m": 2100.0,
76
+ "working_capital_nis_m": -1200.0,
77
+ "total_assets_nis_m": 24500.0,
78
+ "retained_earnings_nis_m": 2100.0,
79
+ "ebit_nis_m": 950.0,
80
+ "bv_equity_nis_m": 3100.0,
81
+ "total_liabilities_nis_m": 21400.0,
82
+ "stock_price_pre": 450.0,
83
+ "dividend_per_share": 35.0,
84
+ "pre_div_volatility": 0.30,
85
+ "post_div_volatility": 0.41,
86
+ "risk_free_rate": 0.050
87
+ },
88
+ {
89
+ "date": "2008-03-31",
90
+ "amount_nis_m": 350.0,
91
+ "accounting_surplus_nis_m": 980.0,
92
+ "working_capital_nis_m": -2850.0,
93
+ "total_assets_nis_m": 22100.0,
94
+ "retained_earnings_nis_m": 980.0,
95
+ "ebit_nis_m": 120.0,
96
+ "bv_equity_nis_m": 1450.0,
97
+ "total_liabilities_nis_m": 20650.0,
98
+ "stock_price_pre": 210.0,
99
+ "dividend_per_share": 25.0,
100
+ "pre_div_volatility": 0.42,
101
+ "post_div_volatility": 0.59,
102
+ "risk_free_rate": 0.040
103
+ }
104
+ ],
105
+ "executive_options": [
106
+ {
107
+ "grant_title": "Senior Leadership Option Pool 2007",
108
+ "num_options": 600000,
109
+ "strike_k0": 380.0,
110
+ "maturity_years": 4.0,
111
+ "dividend_protection": True,
112
+ "protection_clause": "Full strike adjustment (K - D) upon dividend distribution"
113
+ }
114
+ ]
115
+ }
116
+ }
117
+ return data
118
+
119
+ if __name__ == "__main__":
120
+ data = get_company_data()
121
+ with open("company_dataset.json", "w", encoding="utf-8") as f:
122
+ json.dump(data, f, indent=4, ensure_ascii=False)
123
+ print("Updated data_collector.py with Delek Group Ltd.")