fix: trades not working under ccxt

This commit is contained in:
Rafael Taranto 2023-09-26 11:56:42 +01:00
parent ba19ae327a
commit e3421a33a7
4 changed files with 6 additions and 6 deletions

View file

@ -9,7 +9,7 @@ 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: _cryptoCode, tradeId } = tradeEntry
try {
const cryptoCode = coinUtils.getEquivalentCode(_cryptoCode)
const exchangeConfig = ALL[exchangeName]