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

@ -9,8 +9,9 @@ const DEFAULT_PRICE_PRECISION = 2
const DEFAULT_AMOUNT_PRECISION = 8
function trade (side, account, tradeEntry, exchangeName) {
const { cryptoAtoms, fiatCode, cryptoCode, tradeId } = tradeEntry
const { cryptoAtoms, fiatCode, _cryptoCode, tradeId } = tradeEntry
try {
const cryptoCode = coinUtils.getEquivalentCode(_cryptoCode)
const exchangeConfig = ALL[exchangeName]
if (!exchangeConfig) throw Error('Exchange configuration not found')