Skip to content

sonempty/Bot

Repository files navigation

Bot

Coin analysis

APIs

Get OHLC API

http://your_domain:port/binance/ohlc/symbol/interval

Respond format:

{
  "author":"Son + huy",
  "api_name":"ohlc",
  "symbol":"BNBBTC",
  "interval":"15m",
  "startTime":["1519223400000","1519224300000",...],
  "open":["0.00090060","0.00090940",...],
  "high":["0.00091230","0.00090960",...],
  "low":["0.00089900","0.00089280",...],
  "close":["0.00090980","0.00089950",...],
  "volume":["20934.42000000","46623.63000000",...],
  "quoteVolume":["18.94686911","41.86486623",...
  "buyVolume":["10491.05000000","31808.57000000",...],
  "buyQuoteVolume":["9.49814530","28.55092583",...]
}

Example:

Get all tickers API

http://your_domain:port/binance/symbols

Respond format:

[BTCUSDT, BNBETH, .....]

Example:

Requirement

Install dependencies

cd <Your_root_dir>
npm install

Run Server

node app.js

Releases

No releases published

Packages

No packages published