Trading Software
    Menu Close
    Back to all

    Using Python to Code cTrader cBots

    Spotware Systems, the creator of the widely-used and popular online trading platform cTrader has launched the initial version of a Python library for the cTrader Open API, now available as an open-source resource on GitHub where they have provided a sample console application for users to explore and learn.


    cTrader Python Programming


    What is Open API?

    The cTrader Open API is an exclusive interface provided by cTrader, enabling developers to directly engage with cTrader servers for activities such as retrieving account information and conducting trades. This API eliminates reliance on client-based applications or libraries, granting developers greater independence and flexibility in their interactions with the platform.

    The Open API is an exceptionally versatile interface that offers direct interaction with the cTrader Server. Put simply, it empowers you to construct your own personalized trading user interface through its capabilities. The Open API proves to be the perfect solution for crafting custom trading applications, implementing proprietary trading strategies, and developing advanced trading analytics tools. Its flexibility opens up a world of possibilities for traders seeking tailored and innovative solutions.


    What is Python?

    Guido van Rossum, while working at the National Research Institute for Mathematics and Computer Science in the Netherlands, played a pivotal role in the creation of Python during the late 1980s and early 1990s.

    Python draws inspiration from a diverse range of programming languages, such as ABC, Modula-3, C, C++, Algol-68, SmallTalk, Unix shell, and various scripting languages. While a core development team at the institute now oversees its maintenance, Guido van Rossum continues to play a crucial role in guiding Python's advancement.


    Getting Started

    A Python package has been created for interacting with cTrader Open API., this package is developed and maintained by Spotware Systems. You can use OpenApiPy on all kinds of Python apps, it uses Twisted to send and receive messages asynchronously.


    cTrader FIX API with Python

    If you are looking for a FIX API implementation for Python then Spotware has also created this to help you get started, this works asynchronously by using Twisted and easily allows you to easily interact with cTrader FIX API and it manages everything in the background.


    Need Help Coding cBots?

    If you are looking for a good programmer to help you automate your trading strategy, and build a custom indicator or a trading terminal, contact our development team for a quote.