I have a polygon api and am trying to understand how I can use it for either local backtesting or live trading that's hosted on my own PC via lean.  How do I incorporate the code into my algorithm?

I found this post, however creating the config.json file as described here leads to build errors.