Fcoin-api
For some people,use api easily!
脱胎于官方文档
Features
- Promise styles (promise 风格的接口)
- Support Instances (多实例)
- 支持代理模式
Installation
npm install fcoin-api
Examples
const Fcoin = require('fcoin-api');
let fcoin = new Fcoin({
key: '',
secret: '',
proxy: ''
})
fcoin.getTicker('ethusdt').then(data => {})
fcoin.getDepth('L20','ethusdt').then(data => {})
fcoin.createOrder(symbol, side, type, price, amount).then(data => {})
fcoin.cancelOrder(id).then(data => {})
fcoin.getBalance().then(data => {})
fcoin.getOrders(symbol, states, limit, after, before).then(data => {})
fcoin.getOrderByid(id).then(data => {})
Todo
Note
Any question about this project, you can write a issues to me.
In addition, if you are or will soon become a miner, you can join the telegram group