-
Notifications
You must be signed in to change notification settings - Fork 663
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4548361
commit 48c48f6
Showing
15 changed files
with
324 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,24 +25,29 @@ KQ 快期 (所有主连合约, 指数都归属在这里) | |
SSWE 上期所仓单 | ||
SSE 上海证券交易所 | ||
SZSE 深圳证券交易所 | ||
GFEX 广州期货交易所 | ||
================== ==================================================================== | ||
|
||
一些合约代码示例:: | ||
|
||
SHFE.cu1901 - 上期所 cu1901 期货合约 | ||
DCE.m1901 - 大商所 m1901 期货合约 | ||
CZCE.SR901 - 郑商所 SR901 期货合约 | ||
CFFEX.IF1901 - 中金所 IF1901 期货合约 | ||
INE.sc2109 - 上期能源 sc2109 期货合约 | ||
SHFE.cu1901 - 上期所 cu1901 期货合约 | ||
DCE.m1901 - 大商所 m1901 期货合约 | ||
CZCE.SR901 - 郑商所 SR901 期货合约 | ||
CFFEX.IF1901 - 中金所 IF1901 期货合约 | ||
INE.sc2109 - 上期能源 sc2109 期货合约 | ||
GFEX.si2301 - 广期所 si2301 期货合约 | ||
|
||
CZCE.SPD SR901&SR903 - 郑商所 SR901&SR903 跨期合约 | ||
DCE.SP a1709&a1801 - 大商所 a1709&a1801 跨期合约 | ||
CZCE.SPD SR901&SR903 - 郑商所 SR901&SR903 跨期合约 | ||
DCE.SP a1709&a1801 - 大商所 a1709&a1801 跨期合约 | ||
GFEX.SP si2308&si2309 - 广期所 si2308&si2309 跨期组合 | ||
|
||
DCE.m1807-C-2450 - 大商所豆粕期权 | ||
CZCE.CF003C11000 - 郑商所棉花期权 | ||
SHFE.au2004C308 - 上期所黄金期权 | ||
DCE.m1807-C-2450 - 大商所豆粕期权 | ||
CZCE.CF003C11000 - 郑商所棉花期权 | ||
SHFE.au2004C308 - 上期所黄金期权 | ||
CFFEX.IO2002-C-3550 - 中金所沪深300股指期权 | ||
INE.sc2109C450 - 上期能源原油期权 | ||
INE.sc2109C450 - 上期能源原油期权 | ||
GFEX.si2308-C-5800 - 广期所硅期权 | ||
|
||
|
||
[email protected] - 中金所IF品种主连合约 | ||
[email protected] - 上期所bu品种指数 | ||
|
@@ -67,6 +72,7 @@ SZSE 深圳证券交易所 | |
SZSE.90001355 - 深交所中证500ETF期权 | ||
SSE.510500 - 上交所中证500ETF | ||
SSE.10004497 - 上交所中证500ETF期权 | ||
SZSE.159901 - 深交所100ETF | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,52 +3,22 @@ | |
|
||
import setuptools | ||
|
||
# from py-spy/setup.py | ||
try: | ||
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel, get_platform | ||
|
||
class bdist_wheel(_bdist_wheel): | ||
|
||
def finalize_options(self): | ||
_bdist_wheel.finalize_options(self) | ||
# Mark us as not a pure python package (we have platform specific ctpse lib) | ||
if self.plat_name != "any": | ||
self.root_is_pure = False | ||
plat_name = (self.plat_name or get_platform()).replace('-', '_').replace('.', '_') | ||
if plat_name == "linux_x86_64" or plat_name == "manylinux1_x86_64": | ||
self.distribution.package_data[""] = ["ctpse/LinuxDataCollect64.so"] | ||
elif plat_name == "win32": | ||
self.distribution.package_data[""] = ["ctpse/WinDataCollect32.dll"] | ||
elif plat_name == "win_amd64": | ||
self.distribution.package_data[""] = ["ctpse/WinDataCollect64.dll"] | ||
|
||
def get_tag(self): | ||
# this set's us up to build generic wheels. | ||
python, abi, plat = _bdist_wheel.get_tag(self) | ||
# We don't contain any python source | ||
python, abi = 'py3', 'none' | ||
return python, abi, plat | ||
except ImportError: | ||
bdist_wheel = None | ||
|
||
with open("README.md", mode="r", encoding='utf-8') as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name='tqsdk', | ||
version="3.2.12", | ||
version="3.4.0", | ||
description='TianQin SDK', | ||
author='TianQin', | ||
author_email='[email protected]', | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url='https://www.shinnytech.com/tqsdk', | ||
packages=setuptools.find_packages(), | ||
zip_safe=False, | ||
packages=setuptools.find_packages(exclude=["tqsdk.test", "tqsdk.test.*"]), | ||
python_requires='>=3.6.4', | ||
install_requires=["websockets>=8.1", "requests", "numpy", "pandas>=1.1.0", "scipy", "simplejson", "aiohttp", | ||
"certifi", "pyjwt", "psutil", "shinny_structlog", "sgqlc", "filelock"], | ||
cmdclass={'bdist_wheel': bdist_wheel}, | ||
"certifi", "pyjwt", "psutil", "shinny_structlog", "sgqlc", "filelock", "tqsdk_ctpse", "tqsdk_sm"], | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '3.2.12' | ||
__version__ = '3.4.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.