tushare 1.4.6__py3-none-any.whl → 1.4.7__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.
- tushare/__init__.py +1 -1
- tushare/pro/data_pro.py +18 -10
- tushare/subs/model/tick.py +128 -128
- tushare/subs/tgw_subs/convert.py +20 -20
- {tushare-1.4.6.dist-info → tushare-1.4.7.dist-info}/METADATA +98 -101
- {tushare-1.4.6.dist-info → tushare-1.4.7.dist-info}/RECORD +9 -46
- {tushare-1.4.6.dist-info → tushare-1.4.7.dist-info}/WHEEL +1 -1
- {tushare-1.4.6.dist-info → tushare-1.4.7.dist-info}/top_level.txt +0 -1
- baks/__init__.py +0 -0
- baks/demo.py +0 -184
- baks/rtqc.py +0 -612
- baks/setup.py +0 -15
- baks/sss.py +0 -56
- test/__init__.py +0 -0
- test/bar_test.py +0 -23
- test/billboard_test.py +0 -35
- test/build_pyd/__init__.py +0 -8
- test/build_pyd/rtqc.py +0 -612
- test/build_pyd/setup.py +0 -15
- test/build_pyd//321/206/320/231/320/243/321/205/320/234/320/225pyd/321/205/320/241/342/225/234/321/204/342/225/227/320/264.txt +0 -1
- test/classifying_test.py +0 -50
- test/dateu_test.py +0 -19
- test/fund_test.py +0 -43
- test/indictor_test.py +0 -23
- test/macro_test.py +0 -50
- test/nav_test.py +0 -104
- test/news_test.py +0 -38
- test/pro_test.py +0 -11
- test/ref_test.py +0 -57
- test/shibor_test.py +0 -33
- test/storing_test.py +0 -61
- test/test_query.py +0 -16
- test/test_realtime.py +0 -24
- test/test_realtime_quote.py +0 -13
- test/test_sdk_event.py +0 -21
- test/test_stk_mins.py +0 -16
- test/test_stock_basic.py +0 -16
- test/test_tgw_subscribe.py +0 -28
- test/test_ts_subscribe.py +0 -22
- test/test_websocket.py +0 -52
- test/trading_test.py +0 -43
- tushare/stock/rtqc.pyd +0 -0
- tushare/subs/ht_subs/service/__init__.py +0 -0
- tushare/subs/ht_subs/service/covert.py +0 -189
- tushare/subs/ts_subs.py +0 -192
- {tushare-1.4.6.dist-info → tushare-1.4.7.dist-info}/LICENSE +0 -0
@@ -1,37 +1,4 @@
|
|
1
|
-
|
2
|
-
baks/demo.py,sha256=-08f5k-Rd9I3mbneDWCtmxs2OEzisO2t1Xgtyp8Sn8A,5940
|
3
|
-
baks/rtqc.py,sha256=0TJHzK41zWR7ka34bT5UIIcXMW6WOs__WB1HVwrcfjA,21085
|
4
|
-
baks/setup.py,sha256=rNK-9qDmwnb6mSnwMoHsQbyTSEKJf8c7gPPbmaPMHHY,250
|
5
|
-
baks/sss.py,sha256=CVdXa4WL7cf94SKcutRidioKZPM4ahKtcC-RJEMAwik,2647
|
6
|
-
test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
|
-
test/bar_test.py,sha256=DMsVn_PU7sxy76mgn1Sj3_rvjbh5oCdo1af_nDaoxw0,499
|
8
|
-
test/billboard_test.py,sha256=9IuZDsBA9qFBS-XygZ2QpjgI4PoKEQf7_rEIXC3sy_k,811
|
9
|
-
test/classifying_test.py,sha256=4s8xIqY4bIIqgz89LOZ25tMgqyQWrMOWtnDXTlQMREg,1338
|
10
|
-
test/dateu_test.py,sha256=H3D0ztCVFw2AV9zSgCHdLe6C1M304NNzTMvhF1omGaw,557
|
11
|
-
test/fund_test.py,sha256=XdeK1lxXrZ3LDMX-A8Y09XRifaon-OjwESx7LTrYl2c,1274
|
12
|
-
test/indictor_test.py,sha256=HN3hUJ9ssrQ9tRxc3aUjYmuSdXQFhqQpg2AqJfnF5rs,528
|
13
|
-
test/macro_test.py,sha256=KJb8ujyuJ4cjJlGRH-7lqOnBr-7WGRsPOCJ9zG3wbAc,1234
|
14
|
-
test/nav_test.py,sha256=aebhBp5QIbwoEvkdyyPDzklzYHKlmwEOfux2lDPF5Kc,3953
|
15
|
-
test/news_test.py,sha256=Q8X6JJr8pxlZ9JnM71soDiYbFWOv_ZXIlwweYT3jhbo,901
|
16
|
-
test/pro_test.py,sha256=Aj5cmLY12OvxEV2XE1oReHeYBI2paNOhm0CwWSrz1Tg,229
|
17
|
-
test/ref_test.py,sha256=FFOQO1Jnn42TRgmGipGJy_H-qZ9JJyFDb6ShY7YRDNo,1507
|
18
|
-
test/shibor_test.py,sha256=l8EGCh92obzozUcPphOP4V8EQEM2-Xzh1l3CApjNjt8,762
|
19
|
-
test/storing_test.py,sha256=UVyDDZXisjFrKy_5bpWLEN4M5fReOy-q8tvBOGO0XhQ,1789
|
20
|
-
test/test_query.py,sha256=X-u8RpJBu77P00DowBLMO1nbbsCxEqIRyHsiEEDVv7s,329
|
21
|
-
test/test_realtime.py,sha256=YpEH3Ic3D-4dgL9BI9RbWNSD-ZM8KfuqtSxyBvexSRg,697
|
22
|
-
test/test_realtime_quote.py,sha256=UeONzpFDuLazPyK-lZkwtg2szmxg002ngEB07CFOZ0c,311
|
23
|
-
test/test_sdk_event.py,sha256=NSX0AYuU45BHztn_wcnM0clIf1Xb0s4DzNsm3SgTXRo,529
|
24
|
-
test/test_stk_mins.py,sha256=ctaoAkclIKxNQT6KYuXaB5HESpZSD29dn-KLbUT2rmo,53600
|
25
|
-
test/test_stock_basic.py,sha256=XQW6TZGeOjrB0a4OV8WxK0RvOx-iQW_vwARoMLppWVA,309
|
26
|
-
test/test_tgw_subscribe.py,sha256=mgCDbB_Wa-U1QlTas3U7OMh1VskA29fFsAMJTL2r_tU,669
|
27
|
-
test/test_ts_subscribe.py,sha256=VB8ZVtsaKopu6-XZz56WjHT4FtMbBfiBm0GDJBKx1xg,617
|
28
|
-
test/test_websocket.py,sha256=DgOEcX9vuYlPVfBi54AJZTh6k0eu9lG4qcOdJhGllNU,1079
|
29
|
-
test/trading_test.py,sha256=otXiHdU0ob441x7o1swadfSEuyPusT7oYU8SQeesSxE,1147
|
30
|
-
test/build_pyd/__init__.py,sha256=pel_N6SRBWzJKf55rnF6eZa0zDNpO41JU1_3IRwi3uU,121
|
31
|
-
test/build_pyd/rtqc.py,sha256=0TJHzK41zWR7ka34bT5UIIcXMW6WOs__WB1HVwrcfjA,21085
|
32
|
-
test/build_pyd/setup.py,sha256=rNK-9qDmwnb6mSnwMoHsQbyTSEKJf8c7gPPbmaPMHHY,250
|
33
|
-
test/build_pyd/打包pyd命令.txt,sha256=EO6iGOJXxFWOCJlIhhvRylaZpoa1R8PznZM9jDek55w,35
|
34
|
-
tushare/__init__.py,sha256=oPFf9vxuW9mjFfQxCvnEQvhLyWjY2Msk0PUUUioV-PE,4764
|
1
|
+
tushare/__init__.py,sha256=psVu0ZLbywMr4wTiS7FWfrPJWsW7ks8EpgXY2qREgng,4764
|
35
2
|
tushare/bond/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
3
|
tushare/bond/bonds.py,sha256=PJM0xDiWZDpOPwDtbEU9PdP0M_Gu0c599YuB1rbZ3r8,232
|
37
4
|
tushare/coins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -51,7 +18,7 @@ tushare/internet/caixinnews.py,sha256=IwNOB5F1q_CxfuP93-jgUpTW5yY5NANPRJXySm_bj2
|
|
51
18
|
tushare/internet/indexes.py,sha256=oteQCv0k2X0pbhXRHwMSviD1AowJWE6xRjKkqr5RNCo,3595
|
52
19
|
tushare/pro/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
53
20
|
tushare/pro/client.py,sha256=91jKHO9OPrNWPp3193edresGg6UoX0NlmOqAdf0mX4A,1312
|
54
|
-
tushare/pro/data_pro.py,sha256=
|
21
|
+
tushare/pro/data_pro.py,sha256=SOHbK-j9CmZguuv0CLIT-Z3hUynEy96mbvvhrGN6y9I,10883
|
55
22
|
tushare/stock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
56
23
|
tushare/stock/billboard.py,sha256=vCrbN7-NGXSpXMc8jq7NcjjHyu9pTcr4uXp559iA1wA,12833
|
57
24
|
tushare/stock/classifying.py,sha256=3yWqlLhgj2irk-9ksKWFFS5HY-SnjfEr5erwJxBidG8,10539
|
@@ -69,21 +36,17 @@ tushare/stock/ref_vars.py,sha256=MIxor-2rISl65I32vUzC-z7ZC_QFzG4sxOKDyjLWuU4,444
|
|
69
36
|
tushare/stock/reference.py,sha256=x_HZlrP58T-5OTZ7SLdf2Dh9THj1h7cT4wcIp42IHFI,38227
|
70
37
|
tushare/stock/rtq.py,sha256=gMTTv8XOtCgStLa0DhXIXMJhf5jBsZbs_1zzQVugTDc,23123
|
71
38
|
tushare/stock/rtq_vars.py,sha256=V6LeJkSP76z8veRfP_mGiQ63V5YBHoTMaqUA5hSBWh4,4200
|
72
|
-
tushare/stock/rtqc.pyd,sha256=zmi-KXqBkbCFbph8tH2RaEV1FVzYxo1Jpj2D8Aoe1Pc,158208
|
73
39
|
tushare/stock/shibor.py,sha256=Fx9OUZ429kz6l7ZdaYSD6p_X79ud69PDM9EZogm8xCY,6422
|
74
40
|
tushare/stock/trading.py,sha256=3bvM4pexEYW-uGGEL7g6Vkte4sqGC1iYO6dC8mGLSdM,55619
|
75
41
|
tushare/subs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
76
|
-
tushare/subs/ts_subs.py,sha256=yDVnP_6tTObo3MZypwxajoa3j4a6MAVHY2x2GPmURcw,6072
|
77
42
|
tushare/subs/ht_subs/__init__.py,sha256=DPsp9mTsNzVdOEOMNFmLRqUrJ2REVD5T_-muI3CgBgk,132
|
78
43
|
tushare/subs/ht_subs/covert.py,sha256=d25f86D_4CHjrX3IGh8JtTSb7VI2Da506FHwlhOhk1c,7368
|
79
44
|
tushare/subs/ht_subs/subscribe.py,sha256=yYnPeg7c0OHbIJhEf4bXFMLbQ4H1bHhApDPrHeTimuw,8340
|
80
|
-
tushare/subs/ht_subs/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
81
|
-
tushare/subs/ht_subs/service/covert.py,sha256=s1-LPu4ZsdXCwOXvo758TzMLIrm26rohYSC8NbqVQvA,7336
|
82
45
|
tushare/subs/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
83
46
|
tushare/subs/model/min.py,sha256=-AYBGOM1U8IB7Q6SPHS0tpoWN3qz1hngCw7k5x2HhUU,375
|
84
|
-
tushare/subs/model/tick.py,sha256=
|
47
|
+
tushare/subs/model/tick.py,sha256=YB_a5Kdktp7bGBnFnkiYUNI5SKZKmC9XxnLyd9QGoX0,4211
|
85
48
|
tushare/subs/tgw_subs/__init__.py,sha256=30AFeIgTci0HLNyZTNpr1wRChrVdvpD2dHNKS4Q-fS0,69
|
86
|
-
tushare/subs/tgw_subs/convert.py,sha256=
|
49
|
+
tushare/subs/tgw_subs/convert.py,sha256=VWsDOv_rmz3a9YjQ-ZThXerc1HqcWPlBYAOF6A9SqjQ,5474
|
87
50
|
tushare/subs/tgw_subs/login.py,sha256=z7laiscTx50LzOB0cM2hypv5E78DvWx-2Ip5kDE7uNk,903
|
88
51
|
tushare/subs/tgw_subs/subscribe.py,sha256=OwLKcSTN2xrge33hBkio_S188viMeGuicDj_x0VaR2A,3336
|
89
52
|
tushare/subs/ts_subs/__init__.py,sha256=AyX957j8DDjdpIYcNR7dyRaMfxusa6d2VeunMEB6RAc,107
|
@@ -108,8 +71,8 @@ tushare/util/verify_token.py,sha256=cuV3RErWbOC318NANCYL6K1LKZ3wSAL2yMwZHA7tD3s,
|
|
108
71
|
tushare/util/protobuf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
109
72
|
tushare/util/protobuf/funcs.py,sha256=UCdK8FxTyjPZsNzoEeXqYzqrQXUmRMvW5hua6GPA66A,779
|
110
73
|
tushare/util/protobuf/response_pb2.py,sha256=vJH9ONkDuJlg6y-q1PvuDZoviKrK7hzNtMieQHK45DI,11347
|
111
|
-
tushare-1.4.
|
112
|
-
tushare-1.4.
|
113
|
-
tushare-1.4.
|
114
|
-
tushare-1.4.
|
115
|
-
tushare-1.4.
|
74
|
+
tushare-1.4.7.dist-info/LICENSE,sha256=C2j55UI0Ul-1-wA1-rn7OaY6b3vGl4YukiyvYzHsU9o,1503
|
75
|
+
tushare-1.4.7.dist-info/METADATA,sha256=xdDYzUgnrx-NOwrlgXbcFkjdo0_hw5oIDoW7JjCPkQs,2838
|
76
|
+
tushare-1.4.7.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
77
|
+
tushare-1.4.7.dist-info/top_level.txt,sha256=HHOxMuqc31KuAIcxpE0t5dAPMKbaiRtjsjTMFd7FlXI,8
|
78
|
+
tushare-1.4.7.dist-info/RECORD,,
|
baks/__init__.py
DELETED
File without changes
|
baks/demo.py
DELETED
@@ -1,184 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
"""
|
3
|
-
Created on 2021-12-31 09:32:16
|
4
|
-
---------
|
5
|
-
@summary:
|
6
|
-
---------
|
7
|
-
@author: yangyx01
|
8
|
-
"""
|
9
|
-
import pandas as pd
|
10
|
-
import requests
|
11
|
-
from typing import Optional
|
12
|
-
from tushare.util.format_stock_code import format_stock_code
|
13
|
-
|
14
|
-
|
15
|
-
def get_stock_all_a_dc(page_count: Optional[int] = None,
|
16
|
-
proxies: Optional[dict] = {}) -> pd.DataFrame:
|
17
|
-
"""
|
18
|
-
东方财富网-沪深京 A 股-实时行情
|
19
|
-
https://quote.eastmoney.com/center/gridlist.html#hs_a_board
|
20
|
-
:return: 实时行情
|
21
|
-
:rtype: pandas.DataFrame
|
22
|
-
1、序号:RANK
|
23
|
-
2、代码:TS_CODE
|
24
|
-
3、名称:NAME
|
25
|
-
4、最新价:PRICE
|
26
|
-
5、涨跌幅:PCT_CHANGE
|
27
|
-
6、涨跌额:CHANGE
|
28
|
-
7、成交量:VOLUME
|
29
|
-
8、成交额:AMOUNT
|
30
|
-
9、振幅:SWING
|
31
|
-
10、最高:HIGH
|
32
|
-
11、最低:LOW
|
33
|
-
12、今开:OPEN
|
34
|
-
13、昨收:CLOSE
|
35
|
-
14、量比:VOL_RATIO
|
36
|
-
15、换手率:TURNOVER_RATE
|
37
|
-
16、市盈率-动态:PE
|
38
|
-
17、市净率:PB
|
39
|
-
18、总市值:TOTAL_MV
|
40
|
-
19、流通市值:FLOAT_MV
|
41
|
-
20、涨速:RISE
|
42
|
-
21、5分钟涨跌:5MIN
|
43
|
-
22、60日涨跌幅:60DAY
|
44
|
-
23、年初至今涨跌幅:1YEAR
|
45
|
-
"""
|
46
|
-
url = "http://82.push2.eastmoney.com/api/qt/clist/get"
|
47
|
-
params = {
|
48
|
-
"pn": "1",
|
49
|
-
"pz": "50000",
|
50
|
-
"po": "1",
|
51
|
-
"np": "1",
|
52
|
-
"ut": "bd1d9ddb04089700cf9c27f6f7426281",
|
53
|
-
"fltt": "2",
|
54
|
-
"invt": "2",
|
55
|
-
"fid": "f3",
|
56
|
-
"fs": "m:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23,m:0 t:81 s:2048",
|
57
|
-
"fields": "f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f22,f11,f62,f128,f136,f115,f152",
|
58
|
-
"_": "1623833739532",
|
59
|
-
}
|
60
|
-
if page_count:
|
61
|
-
params["pz"] = 20
|
62
|
-
r = requests.get(url, params=params, proxies=proxies)
|
63
|
-
data_json = r.json()
|
64
|
-
if not data_json["data"]["diff"]:
|
65
|
-
return pd.DataFrame()
|
66
|
-
temp_df = pd.DataFrame(data_json["data"]["diff"])
|
67
|
-
temp_df.columns = [
|
68
|
-
"_",
|
69
|
-
"最新价",
|
70
|
-
"涨跌幅",
|
71
|
-
"涨跌额",
|
72
|
-
"成交量",
|
73
|
-
"成交额",
|
74
|
-
"振幅",
|
75
|
-
"换手率",
|
76
|
-
"市盈率-动态",
|
77
|
-
"量比",
|
78
|
-
"5分钟涨跌",
|
79
|
-
"代码",
|
80
|
-
"_",
|
81
|
-
"名称",
|
82
|
-
"最高",
|
83
|
-
"最低",
|
84
|
-
"今开",
|
85
|
-
"昨收",
|
86
|
-
"总市值",
|
87
|
-
"流通市值",
|
88
|
-
"涨速",
|
89
|
-
"市净率",
|
90
|
-
"60日涨跌幅",
|
91
|
-
"年初至今涨跌幅",
|
92
|
-
"-",
|
93
|
-
"-",
|
94
|
-
"-",
|
95
|
-
"-",
|
96
|
-
"-",
|
97
|
-
"-",
|
98
|
-
"-",
|
99
|
-
]
|
100
|
-
temp_df.reset_index(inplace=True)
|
101
|
-
# temp_df["index"] = temp_df.index + 1
|
102
|
-
# temp_df.rename(columns={"index": "序号"}, inplace=True)
|
103
|
-
temp_df = temp_df[
|
104
|
-
[
|
105
|
-
# "序号",
|
106
|
-
"代码",
|
107
|
-
"名称",
|
108
|
-
"最新价",
|
109
|
-
"涨跌幅",
|
110
|
-
"涨跌额",
|
111
|
-
"成交量",
|
112
|
-
"成交额",
|
113
|
-
"振幅",
|
114
|
-
"最高",
|
115
|
-
"最低",
|
116
|
-
"今开",
|
117
|
-
"昨收",
|
118
|
-
"量比",
|
119
|
-
"换手率",
|
120
|
-
"市盈率-动态",
|
121
|
-
"市净率",
|
122
|
-
"总市值",
|
123
|
-
"流通市值",
|
124
|
-
"涨速",
|
125
|
-
"5分钟涨跌",
|
126
|
-
"60日涨跌幅",
|
127
|
-
"年初至今涨跌幅",
|
128
|
-
]
|
129
|
-
]
|
130
|
-
|
131
|
-
temp_df["代码"] = temp_df["代码"].apply(format_stock_code)
|
132
|
-
temp_df["最新价"] = pd.to_numeric(temp_df["最新价"], errors="coerce")
|
133
|
-
temp_df["涨跌幅"] = pd.to_numeric(temp_df["涨跌幅"], errors="coerce")
|
134
|
-
temp_df["涨跌额"] = pd.to_numeric(temp_df["涨跌额"], errors="coerce")
|
135
|
-
temp_df["成交量"] = pd.to_numeric(temp_df["成交量"], errors="coerce")
|
136
|
-
temp_df["成交额"] = pd.to_numeric(temp_df["成交额"], errors="coerce")
|
137
|
-
temp_df["振幅"] = pd.to_numeric(temp_df["振幅"], errors="coerce")
|
138
|
-
temp_df["最高"] = pd.to_numeric(temp_df["最高"], errors="coerce")
|
139
|
-
temp_df["最低"] = pd.to_numeric(temp_df["最低"], errors="coerce")
|
140
|
-
temp_df["今开"] = pd.to_numeric(temp_df["今开"], errors="coerce")
|
141
|
-
temp_df["昨收"] = pd.to_numeric(temp_df["昨收"], errors="coerce")
|
142
|
-
temp_df["量比"] = pd.to_numeric(temp_df["量比"], errors="coerce")
|
143
|
-
temp_df["换手率"] = pd.to_numeric(temp_df["换手率"], errors="coerce")
|
144
|
-
temp_df["市盈率-动态"] = pd.to_numeric(temp_df["市盈率-动态"], errors="coerce")
|
145
|
-
temp_df["市净率"] = pd.to_numeric(temp_df["市净率"], errors="coerce")
|
146
|
-
temp_df["总市值"] = pd.to_numeric(temp_df["总市值"], errors="coerce")
|
147
|
-
temp_df["流通市值"] = pd.to_numeric(temp_df["流通市值"], errors="coerce")
|
148
|
-
temp_df["涨速"] = pd.to_numeric(temp_df["涨速"], errors="coerce")
|
149
|
-
temp_df["5分钟涨跌"] = pd.to_numeric(temp_df["5分钟涨跌"], errors="coerce")
|
150
|
-
temp_df["60日涨跌幅"] = pd.to_numeric(temp_df["60日涨跌幅"], errors="coerce")
|
151
|
-
temp_df["年初至今涨跌幅"] = pd.to_numeric(temp_df["年初至今涨跌幅"], errors="coerce")
|
152
|
-
temp_df.columns = [
|
153
|
-
# "RANK",
|
154
|
-
"TS_CODE",
|
155
|
-
"NAME",
|
156
|
-
"PRICE",
|
157
|
-
"PCT_CHANGE",
|
158
|
-
"CHANGE",
|
159
|
-
"VOLUME",
|
160
|
-
"AMOUNT",
|
161
|
-
"SWING",
|
162
|
-
"HIGH",
|
163
|
-
"LOW",
|
164
|
-
"OPEN",
|
165
|
-
"CLOSE",
|
166
|
-
"VOL_RATIO",
|
167
|
-
"TURNOVER_RATE",
|
168
|
-
"PE",
|
169
|
-
"PB",
|
170
|
-
"TOTAL_MV",
|
171
|
-
"FLOAT_MV",
|
172
|
-
"RISE",
|
173
|
-
"5MIN",
|
174
|
-
"60DAY",
|
175
|
-
"1YEAR",
|
176
|
-
]
|
177
|
-
temp_df = temp_df.iloc[:, [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12]]
|
178
|
-
df_sorted = temp_df.sort_values(by='PCT_CHANGE', ascending=False).reset_index(drop=True)
|
179
|
-
return df_sorted
|
180
|
-
|
181
|
-
|
182
|
-
if __name__ == '__main__':
|
183
|
-
df = get_stock_all_a_dc(page_count=1)
|
184
|
-
print(df)
|