robswc / tradingview-webhooks-bot

a framework 🏗 for trading with tradingview webhooks!
http://tvwb.robswc.me
GNU General Public License v3.0
620 stars 185 forks source link

Add log to a file #12

Closed JDJoe closed 4 years ago

JDJoe commented 4 years ago

When running it via apache, there is no way to see how exchange replies or if something happens. So, some kind log file is needed.

robswc commented 4 years ago

Added in 2020.1 branch. Will eventually merge into main branch, 2020.1 should be considered a beta for the time being.

https://github.com/Robswc/tradingview-webhooks-bot/tree/2020.1

Logging is turned on by default, goes to a csv file.

JDJoe commented 4 years ago

BTW, how do I use it? I have the file you added but what's next? :)

robswc commented 4 years ago

It should log any incoming POST requests and orders to the logs/log.csv file.

It can also display them via the GUI, which is the app.py file. Will think of a better name eventually lol