Skip to content

Commit 32e3206

Browse files
author
zhangyongsheng
committed
fix bug
1 parent 1a867f4 commit 32e3206

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
+ get_current_tick
66
+ get_fund_info
77
+ get_query_count
8+
+ get_industry
9+
+ get_industries
10+
- 数据压缩传输
811
- 修复已知问题
912

1013
# 2018-08-15

VERSION.txt

-1
This file was deleted.

jqdatasdk/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def auth(username, password, host="39.107.190.114", port=7000):
2929
"get_index_stocks",
3030
"get_industry_stocks",
3131
"get_industries",
32+
"get_industry",
3233
"get_concept_stocks",
3334
"get_concepts",
3435
"get_all_securities",

jqdatasdk/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,4 +589,4 @@ def write_file(path, content, append=False):
589589
"get_billboard_list", "get_ticks", "read_file", "write_file", "get_factor_values", "get_index_weights",
590590
"get_bars", "get_current_tick", "get_fund_info", "get_query_count", "get_price_engine",
591591
"history_engine", "attribute_history_engine", "get_bars_engine", "get_ticks_engine",
592-
"get_current_tick_engine", "get_daily_info_engine",]
592+
"get_current_tick_engine", "get_daily_info_engine","get_industry"]

setup.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
# coding=utf-8
3+
import re
34
import sys
45
from os.path import dirname, join
56

@@ -17,8 +18,8 @@
1718
)
1819

1920

20-
with open(join(dirname(__file__), 'VERSION.txt'), 'rb') as f:
21-
version = f.read().decode('ascii').strip()
21+
with open(join(dirname(__file__), 'jqdatasdk', '__init__.py'), 'r') as f:
22+
version = re.match(r".*__version__ = \"(.*?)\"", f.read(), re.S).group(1)
2223

2324
with open(join(dirname(__file__), 'README.md'), 'rb') as f:
2425
long_description = f.read().decode('utf-8')

0 commit comments

Comments
 (0)