AttributeError: 'function' object has no attribute 'orderbook' #105
-
I am unable to get the orderbook. Can someone help me with the error? Thanks Error: AttributeError: 'function' object has no attribute 'orderbook' From empyrial import empyrial, Engine , get_report portfolio = Engine( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey, that's because of two things:
Here is the fix: https://colab.research.google.com/drive/1p-vclwEXJo06orBkkno7Qvj3hJP8a8Kc?usp=sharing |
Beta Was this translation helpful? Give feedback.
Hey, that's because of two things:
get_report
doesn't generate an orderbook butempyrial(portfolio)
does.empyrial.orderbook
after calling the function empyrial.Here is the fix: https://colab.research.google.com/drive/1p-vclwEXJo06orBkkno7Qvj3hJP8a8Kc?usp=sharing