lukeliasi / binance-dca-bot

A bot to automatically DCA (Dollar-Cost Average) buy cryptocurrency on Binance
MIT License
183 stars 51 forks source link

Issue defining multiple assets in trades.js #21

Closed WinMinerGMX closed 3 years ago

WinMinerGMX commented 3 years ago

Hello again. I am facing another issue that I am unable to solve on my own. I defined multiple assets for buying in trade.js however I am getting a syntax error again and I can't figure out where my snytax is wrong. I tried to follow how trades are defined in the .env file with { and } encapsulating every asset, but I get the error below. I tried without { and } and with a singe { and } encapsulating the entire list of 5 assets but nothing works.

It looks like the bot is taking issue with the { in line 14, the second asset, and I do not know why.

See screenshot below.

2021-11-01 20_58_39-Window

Can you help me one more time?

WinMinerGMX commented 3 years ago

Okay nevermind, I am an idiot. The , is in the wrong spot. It doesn't have to be behind the WED, but behind the }, ...

It's working now.