Skip to content

CoinQuant/markets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-market

主流平台行情SDK, 当前支持聚币网、云币网、火币网、比特儿

install

npm i git+https://github.com/SuperDBJ/markets.git -S

Quick Start

const Market = require('markets');

const mk_ = new Market();

async function getCoins() {
    console.log('coins:', await mk_.coins());
}

async function ticker() {
    console.log('ticker:', await mk_.ticker('etc', ['yunbi', 'huobi']));
}

getCoins();

setTimeout(function () {
    ticker();
}, 2000);

Releases

No releases published

Packages

No packages published