siat 2.12.5__py3-none-any.whl → 2.12.6__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.
- siat/financial_statements.py +4 -1
- siat/financials.py +2 -1
- siat/google_authenticator.py +13 -0
- siat/translate.py +4 -4
- {siat-2.12.5.dist-info → siat-2.12.6.dist-info}/METADATA +1 -1
- {siat-2.12.5.dist-info → siat-2.12.6.dist-info}/RECORD +8 -8
- {siat-2.12.5.dist-info → siat-2.12.6.dist-info}/WHEEL +0 -0
- {siat-2.12.5.dist-info → siat-2.12.6.dist-info}/top_level.txt +0 -0
siat/financial_statements.py
CHANGED
@@ -259,7 +259,10 @@ def get_income_statements(symbol):
|
|
259
259
|
# 服务型企业无此项
|
260
260
|
if 'CostOfRevenue' not in list(stmt):
|
261
261
|
stmt['CostOfRevenue']=0
|
262
|
-
|
262
|
+
|
263
|
+
if 'OperatingExpense' not in list(stmt):
|
264
|
+
stmt['OperatingExpense']=stmt['CostOfRevenue']
|
265
|
+
|
263
266
|
# 服务型企业
|
264
267
|
if 'OperatingIncome' not in list(stmt):
|
265
268
|
stmt['OperatingIncome']=stmt['OperatingRevenue']-stmt['OperatingExpense']
|
siat/financials.py
CHANGED
@@ -970,7 +970,8 @@ def calc_fin_rates(fsdf):
|
|
970
970
|
fs['Total Asset Growth']=fs['TotalAssets'].pct_change()
|
971
971
|
#固定资产成新率:平均固定资产净值 / 平均固定资产原值。又称“固定资产净值率”或“有用系数”
|
972
972
|
#fs['PPE Residual']=fs['avgNetPPE']/fs['avgGrossPPE']
|
973
|
-
|
973
|
+
if ('NetPPE' in list(fs)) and ('GrossPPE' in list(fs)):
|
974
|
+
fs['PPE Residual']=fs['NetPPE']/fs['GrossPPE']
|
974
975
|
|
975
976
|
#其他指标
|
976
977
|
#盈利能力指标
|
siat/google_authenticator.py
CHANGED
@@ -25,10 +25,23 @@ class CalGoogleCode():
|
|
25
25
|
|
26
26
|
return '%06d' % google_code # 不足6位时,在前面补0
|
27
27
|
|
28
|
+
def signin_binance():
|
29
|
+
secret_key = "HLAT4FZ6IDW53AYD"
|
30
|
+
print(CalGoogleCode.cal_google_code(secret_key))
|
31
|
+
|
32
|
+
return
|
33
|
+
|
34
|
+
def signin_pypi():
|
35
|
+
secret_key = "CYKOJC2LMKOKPD6VGI7CAHDWBP2AVB23"
|
36
|
+
print(CalGoogleCode.cal_google_code(secret_key))
|
37
|
+
|
38
|
+
return
|
28
39
|
|
29
40
|
if __name__ == '__main__':
|
41
|
+
# For Binance
|
30
42
|
secret_key = "HLAT4FZ6IDW53AYD"
|
31
43
|
print(CalGoogleCode.cal_google_code(secret_key))
|
32
44
|
|
45
|
+
# for PyPi
|
33
46
|
secret_key = "CYKOJC2LMKOKPD6VGI7CAHDWBP2AVB23"
|
34
47
|
print(CalGoogleCode.cal_google_code(secret_key))
|
siat/translate.py
CHANGED
@@ -750,9 +750,9 @@ def codetranslate0(code):
|
|
750
750
|
['00005.HK','港股汇丰控股'],['02888.HK','港股渣打银行'],
|
751
751
|
['03988.HK','中国银行港股'],['BANK OF CHINA','中国银行'],
|
752
752
|
|
753
|
-
['CICHY','
|
754
|
-
['ACGBY','
|
755
|
-
['IDCBY','
|
753
|
+
['CICHY','建设银行美股'],['CICHF','建设银行美股'],
|
754
|
+
['ACGBY','农业银行美股'],['ACGBF','农业银行美股'],
|
755
|
+
['IDCBY','工商银行美股'],['IDCBF','工商银行美股'],
|
756
756
|
['BCMXY','交通银行美股'],
|
757
757
|
|
758
758
|
['BAC','美国银行'],['Bank of America Corporation','美国银行'],
|
@@ -777,7 +777,7 @@ def codetranslate0(code):
|
|
777
777
|
['00005.HK','港股汇丰控股'],['HSBC HOLDINGS','汇丰控股'],
|
778
778
|
['02888.HK','港股渣打银行'],['STANCHART','渣打银行'],
|
779
779
|
|
780
|
-
['UBSG.SW','瑞士瑞银'],
|
780
|
+
['UBSG.SW','瑞士瑞银'], ['IBN','印度IBN银行'], ['SCGLY','法国兴业银行'],
|
781
781
|
|
782
782
|
#股票:高科技
|
783
783
|
['AAPL','苹果'],['Apple','苹果'],['DELL','戴尔'],['IBM','国际商用机器'],
|
@@ -33,9 +33,9 @@ siat/exchange_bond_china.pickle,sha256=78r6E3vPFZlCYPcmS1asgVbe0FGAxsCWaw8ek42Sd
|
|
33
33
|
siat/fama_french.py,sha256=tNtr0WRyPxDbgN6Nu_ZnDtVC-RIiQfh6w0JiPjevWa0,47538
|
34
34
|
siat/fama_french_test.py,sha256=M4O23lBKsJxhWHRluwCb3l7HSEn3OFTjzGMpehcevRg,4678
|
35
35
|
siat/financial_base.py,sha256=j961-1YS9qBl6LmOzI4gCOpdTmk0d1JgNXMzLmV-lrs,41062
|
36
|
-
siat/financial_statements.py,sha256=
|
36
|
+
siat/financial_statements.py,sha256=mdUk5nAoAgQuguPxqHay1xsEgXFi2HfPqJezAc4eet0,24045
|
37
37
|
siat/financial_statements_test.py,sha256=FLhx8JD-tVVWSBGux6AMz1jioXX4U4bp9DmgFHYXb_w,716
|
38
|
-
siat/financials.py,sha256=
|
38
|
+
siat/financials.py,sha256=TyKthn5S1UC1QL01RkDvecc9PHAkp_P-mTJL1bzARhE,78860
|
39
39
|
siat/financials2 - 副本.py,sha256=dKlNjIfKeoSy055fQ6E6TUj9HEoO5Ney9grD84J5kfk,14389
|
40
40
|
siat/financials2.py,sha256=ReiQL7MLj68lNg6NMvKzUDl8NatSL_9ianFcbvZNX1Q,38012
|
41
41
|
siat/financials_china.py,sha256=nUSPS4SDLP1RaOZF6uIvel8pFl3X_aBO_I0Opl1O8RI,177685
|
@@ -56,7 +56,7 @@ siat/fund_test.py,sha256=V4ADb8Gsp8gyeFTwcgRsJBpnUih_O-Q2V1ILc5oKjK8,1116
|
|
56
56
|
siat/future_china.py,sha256=F-HsIf2Op8Z22RzTjet1g8COzldgnMjFNSXsAkeGyWo,17595
|
57
57
|
siat/future_china_test.py,sha256=BrSzmDVaOHki6rntOtosmRn-6dkfOBuLulJNqh7MOpc,1163
|
58
58
|
siat/global_index_test.py,sha256=hnFp3wqqzzL-kAP8mgxDZ54Bd5Ijf6ENi5YJlGBgcXw,2402
|
59
|
-
siat/google_authenticator.py,sha256=
|
59
|
+
siat/google_authenticator.py,sha256=ZUbZR8OW0IAKDbcYtlqGqIpZdERpFor9NccFELxg9yI,1637
|
60
60
|
siat/grafix.py,sha256=ZeyZHtimAMTYoHlNoWvCi3vEvEzcARUsRg7a9LPfAXw,67596
|
61
61
|
siat/grafix_test.py,sha256=kXvcpLgQNO7wd30g_bWljLj5UH7bIVI0_dUtXbfiKR0,3150
|
62
62
|
siat/holding_risk.py,sha256=Dh4zXEw-0hnbMNorbsRS142C8mUzq4NhFjYnauWu5tc,30548
|
@@ -119,13 +119,13 @@ siat/transaction_test.py,sha256=Z8g1LJCN4-mnUByXMUMoFmN0t105cbmsz2QmvSuIkbU,1858
|
|
119
119
|
siat/translate-20230125.py,sha256=NPPSXhT38s5t9fzMvl_fvi4ckSB73ThLmZetVI-xGdU,117953
|
120
120
|
siat/translate-20230206.py,sha256=-vtI125WyaJhmPotOpDAmclt_XnYVaWU9ByLWZ6FyYE,118133
|
121
121
|
siat/translate-20230215.py,sha256=TJgtPE3n8IjljmZ4Pefy8dmHoNdFF-1zpML6BhA9FKE,121657
|
122
|
-
siat/translate.py,sha256=
|
122
|
+
siat/translate.py,sha256=EbMGZ7V9YZLPy3WKxMgQeemqw-liUBSp7GSv4oyW5bY,143164
|
123
123
|
siat/universal_test.py,sha256=CDAOffW1Rvs-TcNN5giWVvHMlch1w4dp-w5SIV9jXL0,3936
|
124
124
|
siat/valuation.py,sha256=3VKrO9b9xY9dOJGGuF0ZhytzB5d2pCx3kO3TtMml7mo,44025
|
125
125
|
siat/valuation_china.py,sha256=oEQRrktJNHiOG1mJSQN1aSSQAQrwrg-ppIHyNVjMjNg,67603
|
126
126
|
siat/valuation_market_china_test.py,sha256=gbJ0ioauuo4koTPH6WKUkqcXiQPafnbhU5eKJ6lpdLA,1571
|
127
127
|
siat/var_model_validation.py,sha256=zB_Skk_tmzIR15l6oAW3am4HBGVIG-eZ8gJhCdXZ8Qw,14859
|
128
|
-
siat-2.12.
|
129
|
-
siat-2.12.
|
130
|
-
siat-2.12.
|
131
|
-
siat-2.12.
|
128
|
+
siat-2.12.6.dist-info/METADATA,sha256=hS1b0748mitbfvJBmBgQdIPv17hrVZc9bBfHCVBt-rY,1378
|
129
|
+
siat-2.12.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
130
|
+
siat-2.12.6.dist-info/top_level.txt,sha256=r1cVyL7AIKqeAmEJjNR8FMT20OmEzufDstC2gv3NvEY,5
|
131
|
+
siat-2.12.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|