Skip to main content

掘金量化 掘金3 sdk

Project description

掘金量化

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

Changelog

Version 3.0.161

  • current 函数添加 include_call_auction 入参

Version 3.0.160

  • SDK 支持 Python 3.11 版本
  • 对不常用到的依赖库设置为可选依赖项, 现在默认移除 scipy 库的依赖, 要下载所有依赖可使用 pip install gm[all] 命令
  • Pandas 的默认精度改为8位小数
  • 修复 tick 回测模式 created_at 字段毫秒数错误问题
  • 添加新枚举值, 委托类型 OrderType 相关

Version 3.0.159

  • 修复context.data报错问题

Version 3.0.158

  • 修复context.data取日线数据少了最近一天的问题
  • 修复回测模式下,订阅用了wait_group=True,导致定时任务处理时间不对问题
  • Tick增加iopv字段
  • 交易所增加广期所

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

Uploaded CPython 3.11Windows x86-64

gm-3.0.161-cp311-cp311-win32.whl (3.3 MB view details)

Uploaded CPython 3.11Windows x86

gm-3.0.161-cp311-cp311-manylinux1_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.11

gm-3.0.161-cp310-cp310-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

gm-3.0.161-cp310-cp310-manylinux1_x86_64.whl (9.2 MB view details)

Uploaded CPython 3.10

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.8

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

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

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

Uploaded CPython 3.6m

File details

Details for the file gm-3.0.161-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: gm-3.0.161-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 4.0 MB
  • Tags: CPython 3.11, 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.161-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 71838848cd6e49205484472fb87a1170920fdc291dc63fd56b10df5b357800b3
MD5 7136cd34559ee6b34a53f5a92477f0e2
BLAKE2b-256 b832b75024b0f9fa482653aceadc955588eca7fb9b69ed6cda33d374805d6ac1

See more details on using hashes here.

File details

Details for the file gm-3.0.161-cp311-cp311-win32.whl.

File metadata

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

File hashes

Hashes for gm-3.0.161-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a314ca37551359ff39cea9fee6fd024ccf01fc7522beb9268b919fe8461016b8
MD5 bf60d553eea22d48b34f639802fec56d
BLAKE2b-256 73d43f06fee0a65cdb6689ac277c0ee7a6b1b4408ef489d4b08d87ef2d60514b

See more details on using hashes here.

File details

Details for the file gm-3.0.161-cp311-cp311-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gm-3.0.161-cp311-cp311-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c184a890f8e62dc735a585b1a36461fc63b5e14d57fd42b81881d4dfda1523f0
MD5 f217b721508704531b80fa5cdce6d4b7
BLAKE2b-256 60d2feacb4e53cdb7d1f4edfce33f882435b712b93816d948f19248829b782ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e1e53b30e0fe1d4eb3b3848f0ac5100e477631f824f2e3f476c3fdd7b18a2bdf
MD5 ea4e554f6a2f3a1cb4ac1a0232025791
BLAKE2b-256 8cc3bf744467ff2b487aace85edab965f14f7229ee86502457e381fae852d5e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1d84b7598e4aacf1789f01cccd4be31a69371c31394add2bb8436aba0de1537b
MD5 64f6ea090e1a5e621c041c8a2cfb0bc3
BLAKE2b-256 2aa373a3861d2a2a2fa4fb928d47334a195e5e2b7932aa8278a10f4058cf24df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.161-cp310-cp310-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 13a003d46022605fcc094d02f369f4628b3a04faf0f799c8e0be7c33219c3831
MD5 ed6e3e9e82e5f55d7c0372b333b349b2
BLAKE2b-256 e973c47129dbac38ec40c3b4a5f60ef8afd5926b13181ed838020437c3fc73cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fb8eaa96aaa88b0cc7f3a4379434aefe08fd39e34e030f6c96b740f6d5b2dcf3
MD5 69c5c2aa5dc5d825804e04c301825a4a
BLAKE2b-256 ae86a31228c0ad1cc55f144ff7022be3321f507ebd3a62d4905df6f568bdc75b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 293f0496f83b86e0b62522a753a24afcc8f237a57a3f2d3bcd6c8ae42f8d1d5b
MD5 71cfa14e7f2dfaad70272c0dd8c5b5d3
BLAKE2b-256 f64b3df00fd159911df6a778a4304628f4c4555ab0aa8c65fd22837eb5f8c14c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.161-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4949d7535a1dbcae9d799c1be7b51755526f7709d8a0b77140d7a202d7bec88a
MD5 e6519637dbfacb76e4d8806b8f01a2d6
BLAKE2b-256 4ac07b618b30e44980454bb309106c5497b4dda9aa1ba48e3c5c58db6567cc4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6e0f0582471883321b689dd977a2ace130c5a991286c9922fa84e0d9a5d3e0e8
MD5 6ffe6933955fa8c7a936945eddd54fad
BLAKE2b-256 9cad12fbd7f72286fde2c508db363d71ad5ffbeb0465a28de8ac6ecc9da27194

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d7b198135180fc888cf7abc31ed0f35faa52dd2d2f415dd99f137d88d5e09a40
MD5 2c58e720967776a535bb99757dc971e1
BLAKE2b-256 5a9141e38b323f11acad88121091860bd147916f6a720c7c0540c32b2a639f59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.161-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e15bf8de676d8a746bdc93c7f99062ff53625b6975b288ec3fa8f54f0401aefe
MD5 842c8e994d8e2be274f5873da9078265
BLAKE2b-256 1d0dd616b8ab950176c886aa7d3c46857ffeb0838f07f8beebd04c481a101463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b6ad12b20fc38217635b0856b5cbfbc72c8178c558beeea75f79de60aa75dc19
MD5 eaca8d982a3da796f9d1784f25d0d550
BLAKE2b-256 dc7f69de6424c6648d6b140c77d7d5f39cba83d3633e58adca8b8cedcc72acb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 a781429079e9d0d885b0a430b649611f70fdf18224ccd06481e0a713e3324012
MD5 cc6bba3f8262dbbafce5264a6c862991
BLAKE2b-256 5c95d388066562dfcff3321cc80bdf3b18ed864feaea52f8ce04b3643a7f3c5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.161-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7ddf162a087a5c639436a1471afa89209c2abb468585abde58ae8ae5c1ceb0bf
MD5 7bd6dd97f41067f56eadd685491a47ec
BLAKE2b-256 a41289493da7bf8a3830074091ee324d2f955e3931ae2c5f7e7ca15466df1996

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 a82307f604ecad0ca36ceaf25ff0971e4955b4fad03945f8788d173fbabba4d3
MD5 ca798b191c646a5abdc662c99bd82b90
BLAKE2b-256 6995a3f1f2e995b0f6e3de58df73970213e7507fef34584868ce01e323746c21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gm-3.0.161-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.161-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 89bd82b022e057f9aed39550871ba252961a882818cd9301d5ad5a7425725043
MD5 b553a64a6e847a90de9d02fec0158f6f
BLAKE2b-256 3e846594c75802b637142611a5c804043a05351c8a7c29693a2683b9fa2077f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gm-3.0.161-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7518d1ecf34bbc544ee483530be0a4e540685608417d2cb36c788e06747c7d20
MD5 0048a4b7b104992072176ffb50efc7d9
BLAKE2b-256 a83be9aae8365b1b9fcf8c2c052ccafdc1444430e2771c54f8a7f5efb106419d

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