szmile2008 / ftplugin Goto Github PK
View Code? Open in Web Editor NEW富途行情交易开放接口, 详见 "Plugins\PluginLocalServer\bin\readme.txt"
富途行情交易开放接口, 详见 "Plugins\PluginLocalServer\bin\readme.txt"
我刚刚实现了用C#的调用,需要上传例子么?
我QQ:[email protected],请问怎么样调用长城证券的交易解锁还有下单呢?HELP!
PluginServer在哪里可以调整 股票定阅上限 ?
重启FTNN也没用,是不是过了次数,就再也调用不了了?
socket_to_futu_api = futu_comom_api.connect_to_futunn_api("localhost", 11111)
def connect_to_futunn_api(host, port):
try:
socket_futu_api = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket_futu_api.settimeout(2)
socket_futu_api.connect((host, port))
socket_futu_api.settimeout(None)
except Exception as e:
print("连接错误")
print(e)
return
return socket_futu_api
如题
你好,假如在某个时刻输入指令获取基础报价(Protocol: 1001)
返回值如下:
{"ErrCode":"0","ErrDesc":"","Protocol":"1001","RetData":{"Close":"172100","Cur":"172100","High":"172500","LastClose":"171200","Low":"170300","Market":"1","Open":"171200","StockCode":"00700","Time":"40762","Turnover":"1526351903510","Vol":"8906710"},"Version":"1"}
返回字符串中的最高价(High),最低价(Low), 开盘价(Open)是指什么时间范围内的最高/最低价格?
开盘到输入指令时刻这段时间内的数据?还是最近1分钟,1小时的数据?
谢谢
{"ErrCode":"502","ErrDesc":"","Protocol":"1001","Version":"1"}
请问以下语句获取报价,程序执行时是否有频率限制,即1分钟/30秒/10秒等是否在服务器端会限制查询次数?个人发现通过该语句执行的结果,与富途的逐笔成交信息有出入,采集到的数有缺失
获取基础报价(Protocol: 1001)
{'Protocol':'1001', 'ReqParam':{'Market':'1','StockCode':'00700'},'Version':'1'}
github里word中的 “30秒内不能超过20次交易请求” 是否是针对该查询?
请帮忙释疑,谢谢
It always return 0. It cannot help to link with actual order ID. Please FIX
问题描述:牛牛版本 3.14.2392.0226, 调用python目录中的 futu_common_api.py 中的接口实现协议6007没有返回。
`
功能实现如下:
def GetHKAccountMsg(socket, evn_type):
global COOKIE
req_param = {"EnvType":str(evn_type), "Cookie":str(COOKIE)}
COOKIE += 1
analyzed_rsps = send_req_and_get_rsp(socket, "6007", req_param, 1)
if(int(analyzed_rsps[0]["ErrCode"]) == 0):
if(analyzed_rsps[0]["RetData"] is not None):
return analyzed_rsps[0]["RetData"]
print GetHKAccountMsg(socket, 1) # 模拟环境正常返回
print GetHKAccountMsg(socket, 0) # 真实环境没有返回
调用协议6006 解锁交易功能后的结果还是一样有问题
股票定阅的个数需要限制,在哪里限制了?指点一下
Java 通过socket的形式调不通、麻烦给处理一下、谢谢~
Socket client = new Socket(ip, port);//
os = client.getOutputStream();//
System.out.println("正在发送信息...");
String json = new JSONObject("{'Protocol':'1001','ReqParam':{'Market':'1','StockCode':'00700'},'Version':'1'}").toString();
os.write(json.getBytes("utf-8"));//发送信息
os.flush();//注意:如果不使用flush方法,服务端将收到客户端发送的信息
client.shutdownOutput();
is = client.getInputStream();//
byte[] buf = new byte[1024*8];//缓冲区
String msg="";
for(int len=is.read(buf);len>0;len=is.read(buf)){
msg+=new String(buf, 0, len);
}
client.shutdownInput();
System.out.println("正在接收回复信息...");
System.out.println("服务器返回的信息: "+msg);
球Linux版的。。。
3.18版本放入plugin 启动FTNN没有11111接口呢? 直接按照文档说明的把 dll 和 config.ini 放到plugins
rt
目前这个git是个人用的, 后续统一放在官方git上唯护,谢谢:)
https://github.com/FutunnOpen/OpenQuant
目前PLS只支持Windows,可否增加对Mac版富途的支持?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.