def notify_trade(self, trade): pass
def notify_trade(self, trade):
Python error. If you have no function lines in the def notify_trade() function, you'll get an error. Either comment out that line, or put in pass after it.
For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/