sthewissen / Mynt

An Azure Functions-based crypto currency trading bot; featuring 10 exchanges, 25 indicators, custom strategy support, backtester and more
BSD 3-Clause "New" or "Revised" License
237 stars 129 forks source link

Configuration problem #51

Closed raphaelpessanha closed 6 years ago

raphaelpessanha commented 6 years ago

In azure cloud i can't edit configuration values like locally? When the function is running in Azure, the configuration values are read from App Settings? So i need to add an app setting, one by one, is it right?

sthewissen commented 6 years ago

Are you talking about the develop version? If so yes, you need to add an AppSetting in Azure Functions for each setting you want to alter. For settings that you don't set the default value as set in the appropriate Options class will be used. Does that help you?

Let me know if you still have questions about this. I'm looking at updating the documentation sometime soon.

raphaelpessanha commented 6 years ago

I'm using the master version. I put all configuration values manually, bot is running but i don't if is is working. I put TelegramBotToken and -221516272, but have no message. There is another way to check is is running well? print

sthewissen commented 6 years ago

When running master you currently need to put your configuration values in the Constants class and the appropriate NotificationManagers.

https://github.com/sthewissen/Mynt/blob/master/functions/Mynt.Core/Constants.cs

https://github.com/sthewissen/Mynt/blob/master/functions/Mynt.Core/NotificationManagers/TelegramNotificationManager.cs

One of the reasons we're improving the experience in the develop branch is that it isn't the best thing in master right now.

sthewissen commented 6 years ago

Now that develop is merged into master and the Wiki is updated I'm closing this question. It is described in the wiki.