Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RLTrader.py #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MichaelQuaMan
Copy link

Issue
qs.report.html() function signature doesn't support file as an argument.

Call results in:

"TypeError: html() got an unexpected keyword argument 'file'". The correct argument is `output`. 

Support

qs.report.html() signature:

def html(returns, benchmark=None, rf=0., grayscale=False,
         title='Strategy Tearsheet', output=None, compounded=True,
         periods_per_year=252, download_filename='quantstats-tearsheet.html',
         figfmt='svg', template_path=None, match_dates=False):

and

Argument output usage:

    with open(output, 'w', encoding='utf-8') as f:
        f.write(tpl)

qs.report.html() signature doesn't support `file` as an argument; so, calling this results in: "TypeError: html() got an unexpected keyword argument 'file'". The correct argument is `output`.  See: https://github.com/ranaroussi/quantstats/blob/6aaa65c20bad4c364efa7623375901925c036b45/quantstats/reports.py#L57 and https://github.com/ranaroussi/quantstats/blob/6aaa65c20bad4c364efa7623375901925c036b45/quantstats/reports.py#L250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant