alpacahq / Momentum-Trading-Example

An example algorithm for a momentum-based day trading strategy.
656 stars 218 forks source link

Change qty from str to int #5

Closed alexonab closed 5 years ago

alexonab commented 5 years ago

This should resolve the below error.

File “algo.py”, line 143, in handle_trade_update positions[symbol] += qty TypeError: unsupported operand type(s) for +=: ‘int’ and ‘str’

nickvertucci commented 3 years ago

@alexonab and @ttt733 Are you still managing this repo?