Skip to main content

掘金量化 掘金3 sdk

Project description

掘金量化

A股实盘量化 中国期货量化 程序化交易 仿真 中国量化第一 掘金3 sdk

Changelog

Version 3.0.155

  • 两融API改造, 补全头寸来源 position_src, 负债合约编号 debtsno 和还款方式 repay_type 三个字段
  • 修复 context.data 获取日线bar时有重复数据的bug
  • current 接口支持 field 过滤
  • 修复 stk_get_index_constituents 接口返回值 weight 为 0 bug
  • Python3.9 的 pandas 库 1.5 版本有bug, 在转带时区的datetime数据时非常慢, 限制 pandas 库的最高版本号避免

Version 3.0.154

  • 修正用广发端时AccountStatus事件中account_name缺失问题
  • 修正AccountStatus状态为6问题
  • SDK 报错提示错误信息文案优化
  • 支持分布式部署, Linux SDK 现在可以连上终端
  • 修复投研数据查询接口返回值时间格式问题
  • 指数成分查询函数stk_get_index_constituents增加总市值和流通市值字段
  • 优化回测时 on_tick 和 on_bar 的性能瓶颈
  • 修复行情连接断开又连上后,订阅行情成功策略却退出问题
  • context.account().status 的类型改为 dict 类型

Version 3.0.153

  • 修复 SDK Python 3.10 版本的第三方依赖库兼容性问题

Version 3.0.152

  • 修复部分老接口日期格式兼容问题
  • 修复 grpc 网络错误问题
  • 限制第三方库最高版本以保证兼容性

Versino 3.0.151

  • 修正使用数据代理时还在读取sdk缓存问题
  • 优化 SDK 依赖项, 保证 SDK 安装兼容性

Version 3.0.150

  • 本地数据代理优化
  • SDK 报错机制改造
  • 新增接口 set_option - 设置策略运行系统选项, 目前支持设置回测运行的最大线程数和触发流控时最大等待时间
  • 优化回测时的超时机制,避免部分回测业务不正常
  • 添加枚举量, 新的委托拒绝原因
  • 接口变更, 查询指数成分股接口新增 trade_date 参数
  • 修复 AccountStatus 查询与推送系列问题
  • 回测模式下载数据时打印相关指引信息

Version 3.0.149

  • 新增广发期权组合保证金API

Version 3.0.148

  • 新增财务数据接口
  • 修复已知 bug

Version 3.0.147

  • 修复启动速度过慢的问题
  • 修复调用 get_history_symbols 接口时进程崩溃退出问题

Version 3.0.146

  • 修复 get_symbols 和 get_history_symbols 接口 bug
  • Tick 类型添加 ask_q, bid_q 字段

Version 3.0.145

  • 新增投研数据查询接口
  • 修复 ipo_get_match_number 和 ipo_get_lot_info 函数日期参数传输错误 bug
  • 修复 get_history_instruments 函数返回值不存在 info 字段时产生的 Bug
  • 修复用 in 判断 BarLikeDict2 对象时无法退出的 bug

Version 3.0.144

  • 修复 get_history_instruments 返回错误的调整标志的 Bug

Version 3.0.143

  • 增加接口 bond_convertible_get_call_info - 查询可转债赎回信息

Version 3.0.142

  • context.data 获取 tick 时返回格式修正为 DataFrame
  • get_history_instrument 增加可转债字段
  • 支持 Python3.10, 弃用 Python2.7

Version 3.0.141

  • 限制 protobuf 版本小于 4.0 防止不兼容情况
  • 修复 get_history_instruments 里获取的保证金比例 margin_ratio 获取的是最新数据而不是历史数据的问题

Version 3.0.140

  • 算法单新增 algo_params 字段
  • 兼容老版本客户端传入错误的默认参数 undefined 的情况
  • 实时模式能正确返回错误信息
  • instrument 添加 conversion_price 字段

Version 3.0.139

  • 修复 Python 3.7.1 版本 typing_extensions 依赖问题, typing_extensions 版本需要大于等于 4.1.1
  • 增加 get_expire_rest_days 查询到期剩余天数
  • 修改 option_covered_open 备兑开仓, 在回测/仿真模式下不占用保证金
  • 修改 option_covered_close 备兑平仓, 在回测/仿真模式下不释放保证金
  • 新增 option_preorder_valid_volume 备兑标志, 可获取备兑可开数量
  • run 函数新增 backtest_match_mode 参数, 设置回测撮合模式, 可设定市价单是否采用当前 bar/tick 撮合成交

Version 3.0.138

  • 策略进程退出前, SDK主动退订已订阅代码, 恢复订阅权限
  • 修复回测模式中在 on_bar 或 on_tick 里下单后资金和持仓没有变化的问题
  • 兼容 Pandas 1.4.0 以上版本
  • option_get_symbols_by_exchange 增加参数 adjust_flag
  • 修复 get_history_instruments 返回的 multiplier 和 exercise_price 字段只取最新数据问题
  • 之前对所有的浮点数四舍五入改为仅对价格类的字段四舍五入4位小数
  • run 添加参数 backtest_commission_unit, 表示回测手续费需要按张收取
  • option_get_symbols_by_in_at_out 添加参数 adjust_flag 来决定选择的合约范围是否包含调整过的合约
  • 修复 get_instruments 的 exchanges 不支持list格式问题
  • 增加针对剩余时间t=0导致分母为0的健壮性处理, 定价模型计算时剩余时间最小值设置为 0.01

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gm-3.0.155-cp310-cp310-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.10Windows x86-64

gm-3.0.155-cp310-cp310-win32.whl (3.3 MB view details)

Uploaded CPython 3.10Windows x86

gm-3.0.155-cp310-cp310-manylinux1_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.10

gm-3.0.155-cp39-cp39-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.9Windows x86-64

gm-3.0.155-cp39-cp39-win32.whl (3.3 MB view details)

Uploaded CPython 3.9Windows x86

gm-3.0.155-cp39-cp39-manylinux1_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.9

gm-3.0.155-cp38-cp38-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.8Windows x86-64

gm-3.0.155-cp38-cp38-win32.whl (3.3 MB view details)

Uploaded CPython 3.8Windows x86

gm-3.0.155-cp38-cp38-manylinux1_x86_64.whl (8.9 MB view details)

Uploaded CPython 3.8

gm-3.0.155-cp37-cp37m-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.7mWindows x86-64

gm-3.0.155-cp37-cp37m-win32.whl (3.3 MB view details)

Uploaded CPython 3.7mWindows x86

gm-3.0.155-cp37-cp37m-manylinux1_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.7m

gm-3.0.155-cp36-cp36m-win_amd64.whl (3.9 MB view details)

Uploaded CPython 3.6mWindows x86-64

gm-3.0.155-cp36-cp36m-win32.whl (3.2 MB view details)

Uploaded CPython 3.6mWindows x86

gm-3.0.155-cp36-cp36m-manylinux1_x86_64.whl (8.5 MB view details)

Uploaded CPython 3.6m

File details

Details for the file gm-3.0.155-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: gm-3.0.155-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b59f131549e171ef0ed83702aa07cb2c49577af099832b42093918d602c35f1
MD5 a1862e797490579f630c5a0954bac497
BLAKE2b-256 8a3ad1685661226733f1f7c64e3dfd8877a3d7df72c7bcc53335e676b21d9a5c

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp310-cp310-win32.whl.

File metadata

  • Download URL: gm-3.0.155-cp310-cp310-win32.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 40f6c409a10a51206a913d1c6a511cbe92c95932c48bb0cd86789e7ace0a8400
MD5 49a13ca5708dcc2c1dd67ecc580e5579
BLAKE2b-256 798fa093fd6720cb79e4f7f2652ea5c2609a29bc6093b5da92602dd9e297a8a7

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp310-cp310-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gm-3.0.155-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4b0160b38171facd5aba06d2d0107836025fab10e6dfc6039f54f855a0665344
MD5 e51de7de802f4d0d1c001841f46b2ae9
BLAKE2b-256 f5935505e34dd975c1cf23464760307eef5dc86af0261abe56ef19df5877f906

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: gm-3.0.155-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 253a46e9221644e3bf28d845fec21a4aa92fe01cda9745b011b96fa48d20e869
MD5 badd6a065e91be1000636dc035fdf776
BLAKE2b-256 71bd7debd4cf3e1f5fbf1216b39b76e51cac3b369a83fbb0ed0e7f0b31373b65

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp39-cp39-win32.whl.

File metadata

  • Download URL: gm-3.0.155-cp39-cp39-win32.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 502ede2b7911cd1327502b41b5f421d56c0aa7005d7fb547e8e08f3a99db61df
MD5 7cd13f2050559cab69dac8dc3bdc0070
BLAKE2b-256 8bf0dd089d5b8a9b9dd7fbf1fa37abe1684cd62e8b00b1945983dbe941daaae1

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp39-cp39-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gm-3.0.155-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c9a0ee3b3a2847e393f4f5de50cc532bf50cf0b6923adbf627a4917c4d30a509
MD5 e171e5c4d4457fd80bf030c23588de97
BLAKE2b-256 e15213499291e18955bcd9bc6adf62021930f1ef9db253631d1efc66a7fff4ae

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: gm-3.0.155-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8ab85d039c00f8f147eda72011e10f654c4a19aab56de822d49bda7037799b47
MD5 3aa666ec21a782567dd1525696e7f8c6
BLAKE2b-256 5697907effd2cf15d3dfa9fc99e0e5fd77486651fae48fb82924d405b573374f

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp38-cp38-win32.whl.

File metadata

  • Download URL: gm-3.0.155-cp38-cp38-win32.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 04f3e0594311be1f407597a116d1fb3ae30180f39a1979ad5b0f4b585b6aa7b5
MD5 14ba1a5861c6b35346f8ba2d6dd20678
BLAKE2b-256 6c62182f1a15fddd99ed3bcf962b2284c042f859911906af327897745f71796e

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp38-cp38-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gm-3.0.155-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 668f666dfca75b46d95d9d360a011f0ef3470f8760c7b8a9e0dd47a37f115788
MD5 c5b7a2e40036f43e2d7a64d324c48985
BLAKE2b-256 37e2aaba001d12b284e1c65780f0b702680f4d80195a0c720bf968cdaebba77c

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: gm-3.0.155-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 29ab54334639948ffacd619206e8112445615dd77588e969d1303c8b9811492f
MD5 261caf84a8f8d676063a24d36b368731
BLAKE2b-256 0a62a06130c955b9103d80e0516ea522894919b11a763c09d5e6df9806b32125

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp37-cp37m-win32.whl.

File metadata

  • Download URL: gm-3.0.155-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 d3f0926fe83ab8313b8b6fa00483f74f0f46bced1eda2a6b704116acab036285
MD5 3def53e1f0566aa0be5aacc38034d0b1
BLAKE2b-256 cd8af74b37c922158e01777ab7f3842a474074ce1426b5414569479a131ee623

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gm-3.0.155-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 bc55a99d3b3d053af8f5ea55ad3bdc821e70edf65b3d5dd934c5e1c92d924307
MD5 6a927397c1e44e2036fa058b7b4c94b7
BLAKE2b-256 d8190ff2ba7005d530fcba18960acfe3625043e2fdf39b3d9936143cd55c7406

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: gm-3.0.155-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 97cf6ff7d4aafaa918f1d1d6dacef0892953b440d36ff12644206e2750d6a417
MD5 e62e06dbe9814d495dff89189aecef86
BLAKE2b-256 6ea46ba3f2c4103b12aaaccb7c5e9cea2a8692a77751e49c486e4743f33b763f

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp36-cp36m-win32.whl.

File metadata

  • Download URL: gm-3.0.155-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for gm-3.0.155-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 3d3d6219be5b68334d96a539b03ab758db0053680d72339960edbee1d4891bdd
MD5 1ea602ac560dfdbe7769fbfb54fcc915
BLAKE2b-256 671264ba208a182601e536a5b1c4be113848de776f96db5f7bbd5f92135e8212

See more details on using hashes here.

File details

Details for the file gm-3.0.155-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gm-3.0.155-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1be32d210cf5956d90b1ebbb1386d3f978b91279d9af16cd46bbe599686f1c67
MD5 ee457d1835c078f17ef7fdb5bb8070f9
BLAKE2b-256 04f2dbd8abac6af3b2f25dbfa979d0af5b3488ec49ff038523e5102aef6f6d5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page