10 steps to setup your Python Luno trading bots on Microsoft Azure.
Step 1: Create a Virtual Machine for Ubuntu with size = B1s. You may choose the cheapest region, which is East US 2 - refer https://azureprice.net/. You do not need any graphical user interface for this Ubuntu.
- To save cost, you can consider to remove public ip from your Virtual Machine after you completed all 10 steps.
- Please do not worry about the connection because the bots will still running.
- You just need to associate a new public ip to your Virtual Machine when you need it - refer https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/associate-public-ip-address-vm
Step 2: Now, configure the SSH to only allows the public IP address from your computer.
Step 3: Log into that Virtual Machine to remove Python 2.7 and upgrade it to version 3.10 - refer https://www.itsupportwale.com/blog/how-to-upgrade-to-python-3-10-on-ubuntu-18-04-and-20-04-lts/. Remember to install pip too.
Step 4: Now, install MySQL on your Virtual Machine using sudo command - refer https://linuxize.com/post/how-to-install-mysql-on-ubuntu-18-04/.
Step 5: After that, install MySQL Client, MySQL Connector and Luno Python SDK on Python 3.10 inside your Virtual Machine. You might need setuptools as pre-requisites.
Step 6. Deploy the Python scripts for your bots.
Step 7. Check the configurations file.
Step 8. Build the database for your bots, which will be used to store trading information.
Step 9. Use nohup command to execute your Python bots at background.
Step 10. Use ps aux command to check whether your Step 9 has been done correctly or not.
Thanks.
No comments:
Post a Comment