feat: tickers, exchanges, tron_usdt
This commit is contained in:
parent
a1a27826b8
commit
59a97d08e4
21 changed files with 4916 additions and 449 deletions
|
|
@ -1 +1,15 @@
|
|||
const NAME = 'trongrid'
|
||||
const _ = require('lodash/fp')
|
||||
const base = require('../tron/base')
|
||||
|
||||
const NAME = 'trongrid'
|
||||
|
||||
function run (account) {
|
||||
if (!account.endpoint) throw new Error('Need to configure API endpoint for Infura')
|
||||
|
||||
const endpoint = _.startsWith('https://')(account.endpoint)
|
||||
? account.endpoint : `https://${account.endpoint}`
|
||||
|
||||
base.connect(endpoint)
|
||||
}
|
||||
|
||||
module.exports = _.merge(base, { NAME, run })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue