PDF下载 下载

Python SDK下载

阅读 21906

PYTHON SDK


Python SDK说明

掘金 Python 语言版本API策略开发包。开发包内含API,文档,示例策略查看

  • 支持2.7.*, 3.6.*,3.7.*,3.8.*和3.9.*的Python版本

  • 支持Windows和Linux系统的Python

  • 支持64位和32位的Python

安装下载方式

  • 掘金Python SDK名为gm, 已经打包上传到PYPI库

  • 可以通过命令行python -m pip install gm -i https://pypi.doubanio.com/simple快速下载安装

Python SDK 升级日志

  • Python SDK v3.0.134
    升级日期:2021.3.2
    升级内容:
    1.新增接口bond_convertible_call - 可转债转股
    2.新增接口bond_convertible_put - 可转债回售
    3.新增接口bond_convertible_put_cancel - 可转债回售撤销
    4.调整接口ipo_get_instruments - 查询当日新股/新债清单 (增加了 sec_type 参数)
    5.调整接口ipo_get_quota - 查询新股申购额度 (调整了数据返回结构)
    6.调整常量增加 SecTypeOrderBusiness 的枚举
  • Python SDK v3.0.132
    升级日期:2021.2.5
    升级内容:
    1.统一和规范算法单中的 algo_param 参数命名
    2.修复 get_history_instruments 指定 fields 字段报错问题
    3.修复 context.data取bar数据抛出告警问题
  • Python SDK v3.0.131
    升级日期:2021.1.7
    升级内容:
    1.修复了期货订阅bar数据返回的position字段为空的问题。
    2.修复了回测时间设置导致定时任务未能成功进入的问题。
    3.修复了get_orders()和get_execution_reports()接口返回值问题。
    4.修复了订阅tick数据,用context.data取数据fields字段有误的问题。
    5.修复了订阅tick数据,9点至9点15数据未返回的问题。
    6.修复了涨跌停时tick字段缺失问题(填充为0)。
    7.history接口symbols支持list格式。
    8.修复了get_history_instruemnts()返回值去掉info字段。
    9.修复了context.data取tick数据不对齐的问题。
    10.修复了context.data返回部分数据不复权的问题。
  • Python SDK v3.0.130
    升级日期:2020.12.26
    升级内容:
    1.更新了C SDK
    2.增加L2字段:order_index 、exec_index 、ask_order_index 、bid_order_index
    3.Linux版本SDK支持Python3.8
    4.修复两融account_id传参问题
  • Python SDK v3.0.129
    升级日期:2020.12.18
    升级内容:
    1.position对象增加了vwap_open, fpnl_open字段
  • Python SDK v3.0.128
    升级日期:2020.11.18
    升级内容:
    1.修复get_strerror返回二进制而非字符串的问题
    2.优化算法传参
    3.修复py_gmi_get_child_orders参数传递错误的问题
  • Python SDK v3.0.127
    升级日期:2020.08.27
    升级内容:
    1.两融接口增加头寸来源字段参数:position_src
    2.解决订阅l2order和l2order_queue而未定义on_l2order、on_l2order_queue函数报错的问题
    3.新增基金与逆回购函数:bond_reverse_repurchase_agreement、fund_etf_buy、fund_etf_redemption、fund_subscribing、fund_buy、fund_redemption
  • Python SDK v3.0.126
    升级日期:2020.06.16
    升级内容:
    1.新增功能码函数:raw_func
    2.新增留痕函数:set_mfp
    3.增加Level2相关函数
    on_l2order、on_l2order_queue、get_history_l2orders、get_history_l2orders_queue
    4.规范命名
    get_history_transaction_l2 (原有)=> get_history_l2transactions(新增)
    get_history_ticks_l2 (原有)=> get_history_l2ticks(新增)
    get_history_bars_l2(原有) => get_history_l2bars(新增)
    5.新增两融接口
    6.解决Python3.8 SDK 找不到 gm.csdk.c_cdk 模块的问题
    7.优化data返回
0 篇笔记