Code Monkey home page Code Monkey logo

direstplus's Introduction

DIRestPlus

Build Status GitHub issues GitHub forks GitHub stars GitHub license HitCount Pypi Twitter

Data Integration RESTPlus,通过Flask-RESTPlus 构建接口框架,将Wind、iFinD、Choice等进行统一封装

启动(两步)

  1. 编写一份启动脚本 run.py 文件
from direstplus import start_service
from direstplus.config import config
# 配置 ifind 账号、密码
config.THS_LOGIN_USER_NAME = '***'
config.THS_LOGIN_PASSWORD = '***'
# 
start_service()
  1. 启动脚本
python run.py

如果是Linux系统,使用python3

python3 run.py

外部环境依赖及安装配置

ifind 环境配置

python "d:\IDE\iFinD\bin\x64\installiFinDPy.py" "D:\IDE\iFinD\bin"

测试接口文件安装是否成功

from iFinDPy import *
# 返回 D:\WSPych\RestIFindPy\venv\lib\site-packages\iFinDPy.pth
# 说明安装成功

# 登陆
thsLogin = THS_iFinDLogin("***","***")  # 0

thsDataDataPool  = THS_DataPool('block','2016-11-27;001005260','date:Y,security_name:Y,thscode:Y')

wind 环境配置

python "d:\IDE\Wind\Wind.NET.Client\WindNET\bin\installWindPy.py" "d:\IDE\Wind\Wind.NET.Client\WindNET"

测试接口文件安装是否成功

from WindPy import w
w.start()

输出内容:

Welcome to use Wind Quant API for Python (WindPy)! COPYRIGHT (C) 2017 WIND INFORMATION CO., LTD. ALL RIGHTS RESERVED. IN NO CIRCUMSTANCE SHALL WIND BE RESPONSIBLE FOR ANY DAMAGES OR LOSSES CAUSED BY USING WIND QUANT API FOR Python. .ErrorCode=0 .Data=[OK!]

direstplus's People

Contributors

mmmaaaggg avatar oykhaha avatar

Watchers

James Cloos 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.