Skip to main content

基于Restplus实现同花顺iFinD接口分布式调用

Project description

DIRestPlus Build Status

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

启动(两步)

  1. 编写一份启动脚本 run.py 文件
from direstplus import start_service
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!]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
DIRestPlus-0.2.2-py3-none-any.whl (33.8 kB) Copy SHA256 hash SHA256 Wheel py3
DIRestPlus-0.2.2.tar.gz (21.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page