MiniXC / simple-back

A simple daily python backtester that works out of the box.
Mozilla Public License 2.0
59 stars 12 forks source link

replace .attr #24

Closed MiniXC closed 4 years ago

MiniXC commented 4 years ago

It would be nice to write b.portfolio.value instead of b.portfolio.attr('value'). This should be possible to implement using https://docs.python.org/3/reference/datamodel.html#object.__getattribute__

MiniXC commented 4 years ago

improved the dataframe representation of a portfolio and added deprecation warning to attr in 7b70d802f419956898d89e4c25651961db2434df