Set up a virtual server for IBridgePy at Amazon EC2

Setting up a virtual server for trading is essential for running reliable algorithmic trading strategies 24/7. Many traders choose cloud-based virtual server solutions on Amazon EC2 to ensure uninterrupted execution for Python stock trading.

virtual server

Why Use a Dedicated Virtual Server for Trading?

Many users want to set up a dedicated server for algorithm trading and it is definitely highly recommended because any other services at the same server that runs IBridgePy may adversely affect implementing your pre-defined trading strategies. For example, excessive internet traffic during streaming a Netflix movie will take the resources of communication between IBridgePy and IB server and slow down the trading processes.

EXCLUSIVE OFFER

Extra 7% OFF All Quantra Courses

Level up your quant trading skills with courses from Quantra by QuantInsti — Python for trading, machine learning strategies, options trading, and more.

HUI7 Browse Courses → Use code HUI7 at checkout

In this tutorial, we will talk about setting up a dedicated virtual server IBridgePy at Amazon Elastic Compute Cloud (EC2).

What is Amazon EC2?

Amazon EC2 provides scalable computing capacity in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster.

For detailed setup instructions and configuration guides, visit our tutorials section or check our documentation.

Need help building this strategy?

Our Rent-a-Coder team builds custom automated trading programs. From simple scripts to complex multi-account strategies — we handle it all.

EXCLUSIVE OFFER

Extra 7% OFF All Quantra Courses

Level up your quant trading skills with courses from Quantra by QuantInsti — Python for trading, machine learning strategies, options trading, and more.

HUI7 Browse Courses → Use code HUI7 at checkout

Ready to Automate Your Trading?

Download IBridgePy free or let our coders build your strategy.

Download Free Hire a Coder

10 thoughts on “Set up a virtual server for IBridgePy at Amazon EC2”

  1. I did exactly the same with Alibaba Cloud !
    OK it cost 4.5 US Dollar per month (Ubuntu in Germany) but it comes with 40GB disc space.
    Here a very short Tutorial:
    ++++++++++++++++++++
    First of all create the Key-pair and bind it with the instance then log in via ssl to install a Desktop:
    ++++++++++++++++++++
    ssh -i “keyAlibaba.pem” root@11.55.33.77
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
    adduser carofa
    sudo apt-get install lxde
    apt-get install default-jdk
    +++++++++++++++++++
    access the Desktop inside the Chrome-browser via Alibaba Console by the link ” Connect”
    first use the Guest login and reboot then login as carofa
    +++++++++++++++++++
    wget https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-x64.sh
    wget
    chmod a+x ibgateway-stable-standalone-linux-x64.sh
    ./ibgateway-stable-standalone-linux-x64.sh

    wget https://ibridgepy.com//wp-content/uploads/2018/09/IBridgePy_Ubuntu_Python27_64.zip
    unzip IBridgePy_Ubuntu_Python27_64.zip

    python -m pip install pandas

    python2.7 RUN_ME.py
    ++++++++++++++++++
    If everything is fine make a Snapshot (9GB) via the Alibaba Console.

  2. Yes I found it. I was in a wrong region! sorry. Thanks.
    Now I could set it up but the instance has low resources to handle the TWS + Spyder. I can’t open both simultaneously.

  3. Does the instance still come with Python 2.7? I’m testing my code in Python 3.7, not sure what is the effect if I run it under Python 2.7? Or just remove and replace with 3.7?

Leave a Comment