3cqs-coder / SymBot

SymBot is a user friendly, self-hosted and automated DCA (Dollar Cost Averaging) cryptocurrency bot solution
https://www.3cqs.com
Other
175 stars 15 forks source link

Need help about Syntax Error in Bot Config file #18

Closed REFLEXGAMING007 closed 10 months ago

REFLEXGAMING007 commented 10 months ago

I'm getting syntax error in cmd when I tried to execute the symbot script

This is the error I'm getting 👇

Bot configuration file error: SyntaxError: Unexpected token 's', ."sphrase": symbot@07#"... is not valid JSON

Screenshot_3322(2).jpg

I'm also attaching my bot config file pic in case there's a problem in it (don't worry those APIs are not valid)👇

Screenshot_3326.jpg

3cqs-coder commented 10 months ago

If you are upgrading, please also confirm any new parameters in app.json are added correctly to your existing app.json configuration file. If any are missing or the JSON format is incorrect, SymBot will fail to start.

REFLEXGAMING007 commented 10 months ago

It's working perfectly in test mode ( when I remove api key, pass phrase & secret from bot config) but it's keeps giving me this error when I added them back

I believe everything is correct in app config because if it didn't, it properly won't have worked in test mode as well. Also probably told me in the cmd what's wrong

3cqs-coder commented 10 months ago

You do not have your apiPassphrase enclosed in quotes, which is breaking the JSON. Any string value must be in quotes.

REFLEXGAMING007 commented 10 months ago

Okay thanks. I didn't know that. I thought all I had to do was replace null with my thing

REFLEXGAMING007 commented 10 months ago

Also I'm supposed to keep the the sandbox value true even when I'm trading with real Account right?

3cqs-coder commented 10 months ago

When sandBox: true real orders will never be executed on the exchange. Set to false for real trading. Please keep in mind the software is still considered beta and it is highly recommended to only use sandBox: true.

REFLEXGAMING007 commented 10 months ago

Wait what I'm confused...

Isn't sandbox true means paper trading?? what do you mean by highly recommending it, Do you mean you highly recommend paper trading or something?

3cqs-coder commented 10 months ago

Yes, sandBox: true is basically paper trading, which is recommended.