dyn4mik3 / OrderBook

Matching Engine for Limit Order Book
Other
361 stars 116 forks source link

AttributeError #14

Open kenneth opened 5 years ago

kenneth commented 5 years ago
Traceback (most recent call last):
  File "algosim.py", line 141, in <module>
    myalgo.process_trade(trade, 'trade')
AttributeError: 'NoneType' object has no attribute 'process_trade'
bgura commented 5 years ago

For what its worth, algosim requires 2 parameters. 1 is a CSV input and the other is the name of an algo. It ends up dynamically importing a module using what ever name you provided for the algo. If you don't provide an arg, myalgo is assigned None which causes the error. The AlgoSim file looks like it could use some cleanup..