Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dripjs
Advanced tools
Readme
用于构建高效且可扩展的交易程序的渐进式Node.js开源量化框架
see the English
Drip.js旨在提供一个开箱即用的量化交易程序体系架构,允许开发者轻松创建高可用、可扩展且易于维护的量化交易程序。
让量化开发者将大部分精力、时间花费在核心:交易策略的开发上。 Drip.js提供除此之外的一切,使得开发者不必再为重复造轮子而苦恼
https://www.jianshu.com/c/520f18fa56cb
由于此框架全部模块化,可以使用下面命令安装到您的程序中
npm install dripjs
如果只想用框架中的某子模块
// 假设想要使用bitmex api模块时
npm install dripjs-bitmex
import { IntelFactory, BitmexSpy } from 'dripjs';
// 生成指定交易所的数据接口
const bitmexSpy = IntelFactory.create(BitmexSpy, {
apiKey: `你的bitmex交易所apiKey`,
apiSecret: `你的bitmex交易所apiSecret`,
testnet: true,
});
const pair = 'XBTUSD';
// 订阅逐笔数据
bitmexSpy.getTicker$(pair).subscribe((res) => {
console.log(res);
});
setTimeout(() => {
console.log('do stop ticker subscription');
// 不用时,别忘记退订
bitmexSpy.stopTicker(pair);
}, 5000);
const dripjs = require('dripjs');
// 生成指定交易所的数据接口
const bitmexSpy = dripjs.IntelFactory.create(dripjs.BitmexSpy, {
apiKey: `你的bitmex交易所apiKey`,
apiSecret: `你的bitmex交易所apiSecret`,
testnet: true,
});
const pair = 'XBTUSD';
// 订阅逐笔数据
bitmexSpy.getTicker$(pair).subscribe((res) => {
console.log(res);
});
setTimeout(() => {
console.log('do stop ticker subscription');
// 不用时,别忘记退订
bitmexSpy.stopTicker(pair);
}, 5000);
模块名 | 描述 |
---|---|
dripjs | 框架主模块,可使用全部子模块 |
dripjs-common | 通用函数模块 |
dripjs-types | 类型定义模块 |
dripjs-bitmex | bitmex 交易接口模块(包含 rest 接口和 websocket 接口) |
此框架正在开发中,暂定实现如下功能,以后会陆续增加其他功能
FAQs
用于构建高效且可扩展的交易程序的渐进式Node.js开源量化框架
The npm package dripjs receives a total of 36 weekly downloads. As such, dripjs popularity was classified as not popular.
We found that dripjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.