jamesmawm / High-Frequency-Trading-Model-with-IB

A high-frequency trading model using Interactive Brokers API with pairs and mean-reversion in Python
MIT License
2.44k stars 657 forks source link

Tried to run Main.py & ended with error #4

Closed Prchakr closed 5 years ago

Prchakr commented 6 years ago

Please help on this. Tried to run Main.py & ended with error

from models.hft_model import HFTModel

File "C:\Users\Raji\Downloads\High-Frequency-Trading-Model-with-IB-master\models\hft_model.py", line 378 except Exception, e: ^ SyntaxError: invalid syntax

jamesmawm commented 6 years ago

This code is in python 2 syntax. Are you running on python 3?