abhi-g80 / pytradesimulator

Python based exchange simulator using FIX protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python exchange simulator

image

A python based trading exchange running on FIX.4.2.

The exchange performs order matching based on FIFO order matching algorithm. Amending existing order is also supported via FIX OrderCancelReplaceRequest message.

Order types

Run

Running ordering client and exchange server.

Clone the repo and run the following commands,

Running market data client and market data adapter.

Example

Start market data client.

Start the market data clients and subscribe to instruments (example, MSFT, HYG).

Start the exchange server.

Start the trading clients.

To send a order in MSFT, select new order and then set the required prices.

Price published to market data client.

Trades done will be published to the clients and to the market data subscribers.

Test

All tests should pass.

About

Python based exchange simulator using FIX protocol

License:MIT License


Languages

Language:Python 100.0%