{"id":13488510,"url":"https://github.com/sinall/StrategyEase-Python-SDK","last_synced_at":"2025-03-28T01:35:59.620Z","repository":{"id":41570942,"uuid":"73923592","full_name":"sinall/StrategyEase-Python-SDK","owner":"sinall","description":"策略易（StrategyEase）Python SDK，策略自动化交易 API 及量化平台。","archived":false,"fork":false,"pushed_at":"2023-04-30T02:02:18.000Z","size":306,"stargazers_count":979,"open_issues_count":1,"forks_count":362,"subscribers_count":106,"default_branch":"master","last_synced_at":"2024-10-01T15:39:33.880Z","etag":null,"topics":["quant","trade"],"latest_commit_sha":null,"homepage":"https://www.iguuu.com/e","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinall.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-11-16T13:39:12.000Z","updated_at":"2024-09-25T03:49:16.000Z","dependencies_parsed_at":"2023-07-17T17:43:26.014Z","dependency_job_id":null,"html_url":"https://github.com/sinall/StrategyEase-Python-SDK","commit_stats":{"total_commits":250,"total_committers":5,"mean_commits":50.0,"dds":0.05600000000000005,"last_synced_commit":"f5dcf8b87edcd505c54a785b06d4e941de44441f"},"previous_names":["sinall/shipane-python-sdk"],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinall%2FStrategyEase-Python-SDK","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinall%2FStrategyEase-Python-SDK/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinall%2FStrategyEase-Python-SDK/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinall%2FStrategyEase-Python-SDK/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinall","download_url":"https://codeload.github.com/sinall/StrategyEase-Python-SDK/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222333976,"owners_count":16968058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["quant","trade"],"created_at":"2024-07-31T18:01:17.167Z","updated_at":"2024-10-31T00:31:43.300Z","avatar_url":"https://github.com/sinall.png","language":"Python","readme":"StrategyEase-Python-SDK\n=======================\n\n策略易（StrategyEase）Python SDK。\n\n| 策略易是\\ `爱股网 \u003chttp://www.iguuu.com\u003e`__\\ 旗下的策略自动化解决方案；提供基于 HTTP 协议的 RESTFul Service，并管理交易客户端。\n| 详情见：http://www.iguuu.com/e\n| 交流QQ群：115279569 |策略交流|\n|\n\n.. contents:: **目录**\n\n原理概述\n--------\n- 策略易通过调用 WINDOWS API 对交易客户端进行操作。\n- 策略易提供基于 HTTP 协议的 RESTFul Service/API。\n- SDK 对 API 进行了封装（由 strategyease_sdk/client.py 中的 Client 类实现）。\n- 本地策略或量化交易平台（目前支持聚宽、米筐、优矿）的模拟交易通过调用 SDK 实现自动下单。\n\n功能介绍\n--------\n\n- 简单的策略易 HTTP API 封装，见 strategyease_sdk/client.py\n- 定时任务\n\n  - 多账号自动新股申购（自动打新）\n  - 多账号自动逆回购\n  - 定时批量下单\n\n- 策略集成\n\n  - 聚宽（JoinQuant）集成\n  - 米筐（RiceQuant）集成\n  - 优矿（Uqer）集成\n  - 果仁（Guorn）集成\n\n安装\n--------------\n\n- 安装 Python 3.5（建议安装 `Anaconda3-4.2.0 \u003chttps://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/\u003e`_）\n- 命令行中运行\n\n+--------+-------------------------------------------------------------------------+\n| 正式版 | :code:`pip install --no-binary strategyease_sdk strategyease_sdk`       |\n+--------+-------------------------------------------------------------------------+\n| 测试版 | :code:`pip install --pre --no-binary strategyease_sdk strategyease_sdk` |\n+--------+-------------------------------------------------------------------------+\n\n升级\n--------------\n\n- 命令行中运行\n\n+--------+---------------------------------------------------------------------------------------------+\n| 正式版 | :code:`pip install --upgrade --no-deps --no-binary strategyease_sdk strategyease_sdk`       |\n+--------+---------------------------------------------------------------------------------------------+\n| 测试版 | :code:`pip install --upgrade --pre --no-deps --no-binary strategyease_sdk strategyease_sdk` |\n+--------+---------------------------------------------------------------------------------------------+\n\n基本用法\n--------------\n\n.. code:: python\n\n  import logging\n\n  import strategyease_sdk\n\n  logging.basicConfig(level=logging.DEBUG)\n\n  client = strategyease_sdk.Client(host='localhost', port=8888, key='')\n  account_info = client.get_account('title:monijiaoyi')\n  print(account_info)\n\n详见：examples/basic_example.py\n\n测试用例\n--------------\n\n策略易 HTTP API 封装对应的测试用例见：\n\n+------------+------------------------------------------------------+\n| 查询及下单 | tests/strategyease_sdk/test_client.py                |\n+------------+------------------------------------------------------+\n| 客户端管理 | tests/strategyease_sdk/test_client_management.py     |\n+------------+------------------------------------------------------+\n| 融资融券   | tests/strategyease_sdk/test_client_margin_trading.py |\n+------------+------------------------------------------------------+\n| 其他       | tests/strategyease_sdk/...                           |\n+------------+------------------------------------------------------+\n\n定时任务调度\n--------------\n见《`定时任务调度说明 \u003cdocs/scheduler.rst\u003e`_》\n\n策略集成\n---------------------\n见《`策略集成说明 \u003cdocs/online-quant-integration.rst\u003e`_》\n\n其他语言 SDK\n------------\n\nC# SDK\n~~~~~~\n\n| 由网友 @YBO（QQ：259219140）开发。\n| 见 `ShiPanETradingSDK \u003chttp://git.oschina.net/ybo1990/ShiPanETradingSDK\u003e`_\n\n.. |策略交流| image:: http://pub.idqqimg.com/wpa/images/group.png\n   :target: http://shang.qq.com/wpa/qunwpa?idkey=1ce867356702f5f7c56d07d5c694e37a3b9a523efce199bb0f6ff30410c6185d%22\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinall%2FStrategyEase-Python-SDK","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinall%2FStrategyEase-Python-SDK","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinall%2FStrategyEase-Python-SDK/lists"}