UNPKG

dvf-client-js

Version:

<img src="https://avatars1.githubusercontent.com/u/56512535?s=200&v=4" align="right" />

11 lines (8 loc) 286 B
const { get } = require('request-promise') module.exports = async (dvf, symbols) => { if (symbols.constructor !== Array) { symbols = [symbols] } const response = await get(`${dvf.config.api}/market-data/tickers?symbols=${symbols.join(',')}`) return JSON.parse(response) }