当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

lionshare-api

Realtime cryptocurrency API
授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 施鸿
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

api.lionshare.capital

API that powers Lionshare by providing both historical (REST)and realtime time (websocket) cryptocurrency market data. The data is sourcedfrom GDAX, Poloniex, andCoinmarketcap.

Build with Node, Koa 2, uws and Redis.

API Endpoints

Prices

GET https://api.lionshare.capital/api/prices

Params

  • period: hour | day | week | month | year

Returns historic prices for supported digital currencies

Example response:

{
  "data": {
    "BTC": [924.2, 924.63, 923.82, 923.02, 924.82, ...],
    "ETH": [10.74, 10.8, 10.79, 10.82, 10.82, 10.84, 10.78, ...],
    "LTC": [3.88, 3.86, 3.85, 3.85, 3.86, 3.86, 3.84, ...]
    ...
  }
}

Markets

GET https://api.lionshare.capital/api/markets

Returns market capitalization data

Example response:

{
  "data": {
    "BTC": 14718750986, 
    "ETH": 943628626,
    "LTC": 188560718,
    ...
  }
}

Development

Redis is required for caching and a valid connection URL should be set to REDIS_URLenvironment variable before running the development server. .env is loaded onstartup. Make sure that you have redis installed and running (redis-server)for local development.

yarn
yarn dev

Deploy

License

MIT

相关阅读

相关文章

相关问答

相关文档