Skip to content

IG-Group/ig-us-websocket-trade-python-example

Repository files navigation

IG US WebSocket Client Python Example

Introduction

This project is an example to demonstrate calling the IG US WebSocket API using the Python programming language.

It has been developed using Python 3.7.

It is not production quality code.

The example negotiates and establishes a FIXP session and then places a New Order Single.

To run the example an IG US Demo environment Username and Password are required. Open an account here.

Introduction to the IG US WebSocket API

IG US WebSocket Trade API

How to run the example

See below for how to activate the environment if you are using conda.

python WebSocketClient.py --userName=a_username --password=a_password --accountID=an_account_id

By default the example will connect to the Demo environment.

Consider Installing Anaconda

Anaconda is a commonly used Python environment.

You may choose to download the Indidual Edition.

Refer to the documents on the above site.

Create (Activate) the provided conda environment

conda env create -f environment.yml

How to export a conda environment if you extend it

conda env export > environment.yml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages