There are lots of constant status definiation in backtest, for example:
bt.Order.Submitted, however they are simply integer. How about using enum instead.
the prons are:
- the enum value are truely constant, prevent people from change it by mistake
- the enum value could give meaningful string represent when print, instead of 1 we get order.Submitted
The API could stay compatible after the change and python2.7 could also be supported with third party enum library.