GithubHelp home page GithubHelp logo

c787297017 / strategyease-python-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sinall/strategyease-python-sdk

0.0 0.0 0.0 299 KB

策略易(StrategyEase)Python SDK,策略自动化交易 API 及量化平台。

Home Page: https://www.iguuu.com/e

License: MIT License

Python 98.67% Jupyter Notebook 0.97% Batchfile 0.15% Shell 0.22%

strategyease-python-sdk's Introduction

StrategyEase-Python-SDK

策略易(StrategyEase)Python SDK。

策略易是爱股网旗下的策略自动化解决方案;提供基于 HTTP 协议的 RESTFul Service,并管理交易客户端。
交流QQ群:115279569 策略交流

  • 策略易通过调用 WINDOWS API 对交易客户端进行操作。
  • 策略易提供基于 HTTP 协议的 RESTFul Service/API。
  • SDK 对 API 进行了封装(由 strategyease_sdk/client.py 中的 Client 类实现)。
  • 本地策略或量化交易平台(目前支持聚宽、米筐、优矿)的模拟交易通过调用 SDK 实现自动下单。
  • 简单的策略易 HTTP API 封装,见 strategyease_sdk/client.py
  • 定时任务
    • 多账号自动新股申购(自动打新)
    • 多账号自动逆回购
    • 定时批量下单
  • 策略集成
    • 聚宽(JoinQuant)集成
    • 米筐(RiceQuant)集成
    • 优矿(Uqer)集成
    • 果仁(Guorn)集成
正式版 pip install --no-binary strategyease_sdk strategyease_sdk
测试版 pip install --pre --no-binary strategyease_sdk strategyease_sdk
  • 命令行中运行
正式版 pip install --upgrade --no-deps --no-binary strategyease_sdk strategyease_sdk
测试版 pip install --upgrade --pre --no-deps --no-binary strategyease_sdk strategyease_sdk
import logging

import strategyease_sdk

logging.basicConfig(level=logging.DEBUG)

client = strategyease_sdk.Client(host='localhost', port=8888, key='')
account_info = client.get_account('title:monijiaoyi')
print(account_info)

详见:examples/basic_example.py

策略易 HTTP API 封装对应的测试用例见:

查询及下单 tests/strategyease_sdk/test_client.py
客户端管理 tests/strategyease_sdk/test_client_management.py
融资融券 tests/strategyease_sdk/test_client_margin_trading.py
其他 tests/strategyease_sdk/...

见《定时任务调度说明

见《策略集成说明

由网友 @YBO(QQ:259219140)开发。

strategyease-python-sdk's People

Contributors

loveyakamoz avatar pyangs avatar sinall avatar szhu3210 avatar yutiansut avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.