feat: tickers, exchanges, tron_usdt

This commit is contained in:
Rafael Taranto 2023-09-07 18:01:18 +01:00
parent a1a27826b8
commit 59a97d08e4
21 changed files with 4916 additions and 449 deletions

View file

@ -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 })