File tree 3 files changed +32
-9
lines changed
3 files changed +32
-9
lines changed Original file line number Diff line number Diff line change
1
+ ![ logo] ( logo.png )
2
+
1
3
### jqdatasdk
2
4
3
5
> jqdatasdk是提供给用户获取聚宽金融数据的SDK。用户可以在自己搭建的环境中获取聚宽提供的金融数据,除了需要验证之外,其余的功能特性与官网的投资研究模块保持一致。
4
6
5
-
7
+
6
8
7
9
#### 安装
8
10
11
+ - 方式一:pip install git+https://github.com/JoinQuant/jqdatasdk.git
12
+ - 方式二:python setup.py install
13
+
14
+
15
+
16
+ #### 升级
9
17
10
18
```
11
- pip install git+https://github.com/JoinQuant/jqdatasdk.git
19
+ pip install -U git+https://github.com/JoinQuant/jqdatasdk.git
12
20
```
13
21
14
22
15
23
16
-
17
24
#### 使用简介
18
25
26
+ 例如:获取平安银行2017-01-01到2017-12-31的所有日行情数据
27
+
19
28
```
20
29
import jqdatasdk
21
30
jqdatasdk.auth(username, password)
22
- jqdatasdk.get_price("000001.XSHE")
31
+ jqdatasdk.get_price("000001.XSHE", start_date="2017-01-01", end_date="2017-12-31" )
23
32
```
24
33
34
+ 结果显示:
35
+
36
+ ```
37
+ open close high low volume money
38
+ 2017-01-03 8.98 9.03 9.05 8.96 46650858.0 4.205952e+08
39
+ 2017-01-04 9.02 9.03 9.05 9.01 45584521.0 4.115034e+08
40
+ 2017-01-05 9.04 9.04 9.05 9.02 34936662.0 3.157697e+08
41
+ 2017-01-06 9.04 9.00 9.04 8.98 36334775.0 3.271764e+08
42
+ 2017-01-09 9.00 9.02 9.04 8.98 36631757.0 3.299946e+08
43
+ 2017-01-10 9.02 9.02 9.03 9.01 24454945.0 2.205751e+08
44
+ 2017-01-11 9.01 9.01 9.04 9.00 30783091.0 2.775532e+08
45
+ 2017-01-12 9.00 9.02 9.04 9.00 43421325.0 3.918694e+08
46
+ 2017-01-13 9.01 9.03 9.06 8.99 44059912.0 3.976019e+08
47
+ ...
48
+ ```
25
49
26
50
27
- #### 申请试用
28
51
29
- 如果您想试用该数据包接口,请联系我们的运营周言(微信:18141907163),添加时请备注jqdatasdk。
52
+ #### 试用
53
+
54
+ 如果您想试用该数据包接口,请联系我们的运营(微信: jqdata01 ),添加时请备注jqdatasdk。
30
55
31
56
32
57
@@ -215,8 +240,6 @@ jqdatasdk.get_price("000001.XSHE")
215
240
216
241
217
242
218
-
219
-
220
243
- baidu_factor
221
244
222
245
查询股票某日百度搜索量数据
Original file line number Diff line number Diff line change 1
- 1.4.0
1
+ 1.4.2
You can’t perform that action at this time.
0 commit comments