Check whether you might have put more / less spaces before the trade statement block (line 44 of your code). Proper Indentation is mandatory in Python.
Check with a good code editor that will auto-highlight the indentation issue.
Right click on your Jupyter Notebook cell in VS Code and select “Format Cell”.
Go through your code now and check for indentation (space alignments over all code blocks).
Here, general structure of if-else block should be as follows -