CTP_MARKET_DATA
一、安装
Last updated 3 years ago by alien381 .
ISC · Original npm · Tarball · package.json
$ cnpm install CTP_MARKET_DATA 
SYNC missed versions from official npm registry.

一、安装

windows下编译需要安装的软件

nodejs 6.5.0

python 2.7.12

vs2015

npm install -g node-gyp

如果编译有问题可以尝试 npm install -g npm@next

npm install alh_node_cc

安装windows下的插件

npm install alh_node_lx

安装Linux下的插件

二、使用

//引入插件

const SFIT = require('alh_node_cc');

//创建一个实例

var obj = SFIT.CreateObject();

//设置服务器IP,用户名,密码,BrokerID

obj.SetParam("tcp://180.168.146.186:10013","068716","112233123","9999");

//设置要订阅的行情代码,可以添加多个

obj.AddID("RM701");

//开始接受数据,并设置回调函数,obj为实时行情数据,

//正常情况errorcode为0,

//登录失败为-1

//连接断开为-2,连接超时为-3

obj.Run(function(obj,errorcode) {

if (errorcode==0)
	
	console.log(obj);

if (errorcode==-1)
	
	console.log("login error!");

if (errorcode==-2)
	
	console.log("Disconnected!");

if (errorcode==-3)
	
	console.log("Timeout!");

});

setInterval(function(){ console.log("---------------------------"); }, 1000);

Current Tags

  • 1.0.70                                ...           latest (3 years ago)

68 Versions

  • 1.0.70                                ...           3 years ago
  • 1.0.61                                ...           3 years ago
  • 1.0.60                                ...           3 years ago
  • 1.0.59                                ...           3 years ago
  • 1.0.58                                ...           3 years ago
  • 1.0.55                                ...           3 years ago
  • 1.0.54                                ...           3 years ago
  • 1.0.53                                ...           3 years ago
  • 1.0.52                                ...           3 years ago
  • 1.0.51                                ...           3 years ago
  • 1.0.49                                ...           3 years ago
  • 1.0.47                                ...           3 years ago
  • 1.0.46                                ...           3 years ago
  • 1.0.45                                ...           3 years ago
  • 1.0.44                                ...           3 years ago
  • 1.0.43                                ...           3 years ago
  • 1.0.42                                ...           3 years ago
  • 1.0.41                                ...           3 years ago
  • 1.0.40                                ...           3 years ago
  • 1.0.39                                ...           3 years ago
  • 1.0.38                                ...           3 years ago
  • 1.0.37                                ...           3 years ago
  • 1.0.36                                ...           3 years ago
  • 1.0.35                                ...           3 years ago
  • 1.0.34-test                                ...           3 years ago
  • 1.0.33                                ...           3 years ago
  • 1.0.32-test                                ...           3 years ago
  • 1.0.32                                ...           3 years ago
  • 1.0.31                                ...           3 years ago
  • 1.0.30                                ...           3 years ago
  • 1.0.29                                ...           3 years ago
  • 1.0.28-TEST9                                ...           3 years ago
  • 1.0.28-TEST8                                ...           3 years ago
  • 1.0.28-TEST7                                ...           3 years ago
  • 1.0.28-TEST6                                ...           3 years ago
  • 1.0.28-TEST5                                ...           3 years ago
  • 1.0.28-TEST4                                ...           3 years ago
  • 1.0.28-TEST3                                ...           3 years ago
  • 1.0.28-TEST2                                ...           3 years ago
  • 1.0.28-TEST1                                ...           3 years ago
  • 1.0.28-TEST                                ...           3 years ago
  • 1.0.28-ASYNC                                ...           3 years ago
  • 1.0.28                                ...           3 years ago
  • 1.0.27                                ...           3 years ago
  • 1.0.25                                ...           3 years ago
  • 1.0.24                                ...           3 years ago
  • 1.0.23                                ...           3 years ago
  • 1.0.22                                ...           3 years ago
  • 1.0.21                                ...           3 years ago
  • 1.0.20                                ...           3 years ago
  • 1.0.19                                ...           3 years ago
  • 1.0.18                                ...           3 years ago
  • 1.0.17                                ...           3 years ago
  • 1.0.16                                ...           3 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |