Skip to content

AttributeError: 'function' object has no attribute 'orderbook' #105

Closed Answered by santoshlite
Jeraz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, that's because of two things:

  1. get_report doesn't generate an orderbook but empyrial(portfolio) does.
  2. You should call empyrial.orderbook after calling the function empyrial.

Here is the fix: https://colab.research.google.com/drive/1p-vclwEXJo06orBkkno7Qvj3hJP8a8Kc?usp=sharing

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jeraz
Comment options

Answer selected by santoshlite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants