Skip to main content

掘金量化 掘金3 sdk

Project description

掘金量化

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

Changelog

Version 3.0.157

  • 修正 Order 对象被错误过滤掉 order_business 和 position_src 字段的问题

Version 3.0.156

  • 新增做市API
  • 新增10个财务接口
  • 修复get_history_instruments接口conversion_price字段取数错误问题
  • get_symbols增加股转作市业务相关字段
  • 修正回测错误时,返回错误码与扩展信息不一致问题
  • 增加枚举常量 OrderBusiness_MARKET_MAKING

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.157-cp310-cp310-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

gm-3.0.157-cp310-cp310-manylinux1_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.10

gm-3.0.157-cp39-cp39-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

gm-3.0.157-cp39-cp39-manylinux1_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.9

gm-3.0.157-cp38-cp38-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

gm-3.0.157-cp38-cp38-manylinux1_x86_64.whl (9.2 MB view details)

Uploaded CPython 3.8

gm-3.0.157-cp37-cp37m-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

gm-3.0.157-cp37-cp37m-manylinux1_x86_64.whl (8.8 MB view details)

Uploaded CPython 3.7m

gm-3.0.157-cp36-cp36m-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.6mWindows x86-64

gm-3.0.157-cp36-cp36m-win32.whl (3.3 MB view details)

Uploaded CPython 3.6mWindows x86

gm-3.0.157-cp36-cp36m-manylinux1_x86_64.whl (8.7 MB view details)

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: gm-3.0.157-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.157-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a5076c48de610ab5c0aa8f655cf1066f7a3d2346b57272d9bf0191b5ff6636d9
MD5 c183e2b44a97d0a63d93330ce1382427
BLAKE2b-256 1e838f3e16ac73d1f1222429104208effc8f23c0a32394a8dfcdde266b335c04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-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.157-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 741b79069af5a567fbb69938b4b522243ae37c32c8c03256b2806d2b0aa4f187
MD5 eacf7b647ba0e8887b81d560fd357ec3
BLAKE2b-256 0ea015fbc6bda13982eb3c1a10544954578f107009e48acf683f5243995257e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.157-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 23a3503f1b6874c15af2e345d3bc35f785bcb57cc2c6bedaa210ed38d5c01017
MD5 2bb669de7a2b3801b669938b51898317
BLAKE2b-256 d043e502a970d87dee13726f5e8ade2811385b842fe8b17612a51fbd0a1e82d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.157-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1209b03dfe8af9e09a735e095154d0eb54829d17c74221875bdaa3af404241bd
MD5 c9747f384b80bea0e05144d04eb9b635
BLAKE2b-256 1cbeae9fa6bbd8198bf3d77a3409434b33a833b548af53e5850b1ca3ce18d562

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-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.157-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3311f2621371f70d7f46de9d120c3db766e3ca21939258f3aa0f20ebfa3ec520
MD5 fd2df34b44b5f86301714a11342c940b
BLAKE2b-256 cf4fad93e2a916fc16747289d2d9ff80ea2761d705e04e29c91af503e2881e1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.157-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5d08b1f97b655ad1a23e8336c3d0de372b0dbe9cccba2c50be7fa0ba0b6e4b29
MD5 4c98775d85ccd12bca471dd8503894e8
BLAKE2b-256 1bc90dfa63d5e8b951c63bea7845b44ff6844a041af3fc05daafd9d1d144b5de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.157-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6af014330605052fec54e25256cb61f91f46fbd0b7fc5e5349e7a6b8d0c1a5c0
MD5 9c0984d07df181fe16a5a1c1af0c8688
BLAKE2b-256 010b73b51a139065f6610ced0c607f2f48372674ac52e2482454f03f2ad32c02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-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.157-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b207259038bab3d4472cc319e137de5047c8ebff0d7fc5fd029bdc5a5ad4e210
MD5 43166091c5c3e6ef6f93bbfc48c1abb1
BLAKE2b-256 90c134d9acb077cb756083cea7d6c2deea48a7a2826e55ca8b13c88d0a7a36b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.157-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c9e8eb9d2a1eaf3e43113bf62ef1b5f649c336dd88b199f817b4b98750770e02
MD5 3ff4afdecb83f2c34b220a59d34df2bf
BLAKE2b-256 5d4a61929f77c54b04b50e9e24e7d39ce829a6d7eac82ab149122f64b8854271

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.157-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b1533d4873285b8e0f74c766be890ce2b7dbc1e17eefcf7bbda94f6d19aff3e9
MD5 e8f807491eabc11eb6fee8417f679e34
BLAKE2b-256 f62a82e8095cad2672b800c29071f13a59540cd8d2bd7c684d4fb95eabafa77a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-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.157-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 0b514aa8edb9ede61c652333bf48406b1e12b0d23250346446a6919a631372c3
MD5 36998a541f438a073440c0e4528681d5
BLAKE2b-256 25a15256891058a64646b23896cdcb9724ec4ff732f53d53d0a1b6b4b6744e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.157-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ce6d07720cebf9385b09cf368820e3d1a599369f8eef3dccc43adf700437c0ab
MD5 b94e9055a2e197580e4b6d120cc066d7
BLAKE2b-256 0d070fbe69f77455e8c9704bf9d2a89f003d325ccb75777a56336b6b90a23e99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 4.0 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.157-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 287195c75496fb37692249999b249e60f66b40d52b2f9996ae40de87ef6c01fd
MD5 475b3e8445253da8cfc3e8c5869bcbde
BLAKE2b-256 09663b8d35047b219feeccc1d2cb919a569909c9fd6212588335b99e867adea7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.157-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 3.3 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.157-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 85c9e0b4ca69e2dbd0c489a18c44d2ee2b0a6df2f35857d56032b3ffa2f193ff
MD5 fcd33c7c0a5e583a27e79e05585645ae
BLAKE2b-256 99ce0497d3bc2d796c34e801bc594615412e15269dea7b8162d6e48f681f3e97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.157-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 008c50c37212031482bef41b341adf8b9f0069ffb171b6b3d101216adc32fd41
MD5 0e3e91c8a473fa736e076e14aa619f7a
BLAKE2b-256 0cbfe01d27b1d347f06d52b91b5b9e61bf3bb3799791ac5aaf13c19f78c46dd4

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