Python Webhooks of Tradingview and Chartink [Member Use]

Just a scrap of websites and links I followed or stumbled to make a python webhook system of unofficed for chartink, tradingview. (Receptor). For my own future use and anyone who is suffering my fate in the universe.

Installed Django using this method -
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04

The gunicorn shit will work only if you do on virtualenv and only if you do with user. (I did with root and direct.)
https://www.digitalocean.com/community/questions/gunicorn-service-no-such-file-or-directory
See the first comment which gunicorn’s response can not be read if you are a user.

https://blog.bearer.sh/consume-webhooks-with-python/
https://reqbin.com/
If you request from reqbin, digitalocean will throw errors. So I tried to fix some error that never actually happened.
The solution of https://stackoverflow.com/questions/53974149/django-create-webhook-receiver was working fine.
https://stackoverflow.com/questions/1188542/django-runserver-permanent Maybe in the future?

Instead of reqbin, test using normal python directly. Here goes sample code -
stackoverflow.com/questions/24068576/how-to-receive-json-data-using-http-post-request-in-django-1-6

Stumbled on this good info while I was troubleshooting fictional problem stackoverflow.com/questions/1208067/wheres-my-json-data-in-my-incoming-django-request

Slack Bot Tag Mechanism - https://stackoverflow.com/questions/32419756/how-do-you-tag-people-with-a-slack-bot

Sites I was visiting to make the port 80
stackoverflow.com/questions/15689641/django-project-on-80-port
Good read on gunicorn
https://serverfault.com/questions/331256/why-do-i-need-nginx-and-something-like-gunicorn
stackoverflow.com/questions/26858513/gunicorn-nginx-and-using-port-80-for-running-a-django-web-application

Did not liked this tutorial as I am not fan of sock file https://stackoverflow.com/questions/61462556/getting-rid-of-port-in-url-for-django-installation-in-production
As It was not gunicorn I tried into deep and found an amazing tutorial https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html#configure-nginx-for-your-site
It uses uWSGI
Again it landed in ownership problems and I did not want to make mess with that part as I have interconnected apps https://stackoverflow.com/questions/30199501/uwsgi-socket-file-not-created

This I used finally digitalocean.com/community/questions/how-to-forward-traffic-from-another-port-to-port-80

Some shit was running in port 80 https://stackoverflow.com/questions/11583562/how-to-kill-a-process-running-on-particular-port-in-linux

Firewall was not active. https://www.digitalocean.com/community/questions/sudo-ufw-status-return-inactive

Activating Firewall firewalled my SSH and SFTP digitalocean.com/community/questions/i-am-not-able-to-connect-my-droplet-ip-using-sftp

Adding HTTPS
https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04
https://www.digitalocean.com/community/questions/how-to-secure-nginx-with-let-s-encrypt-on-for-a-subdomain

Finally screened https://stackoverflow.com/questions/1188542/django-runserver-permanent

why firewall? why https? why all the security. Why shud it matter if someone else can read the stuff?

Pinakin system is integrated.

It can fire orders to any broker without API.

Like - You can fire BN ATM PE if BN crosses x point.

Also, All automated accounts are deeply connected. All you need to know is the right set of token from me.