Hi there. I am a little unclear as to what you meant, so here's everything I tried.
- used the codeload command to get the moonshot-intro
2.Tried backtesting the "umd" file
- Copied and pasted my "tester" file into the moonshot-intro folder
- Put the moonshot-intro folder into the moonshot folder and backtested my "tester" file
- Put the moonshot-intro folder into the moonshot folder and backtested "umd"
Steps 2-4 generated the same error. However, step 5 generated a different one. Below is the command I ran and the new error it generated.
from quantrocket.moonshot import backtest
from moonchart import Tearsheet
backtest(["umd"], start_date="2020-10-01", end_date="2020-10-06",
filepath_or_buffer="atrm.csv", details=True)
HTTPError Traceback (most recent call last)
in
3
4 backtest(["umd"], start_date="2020-10-01", end_date="2020-10-06",
----> 5 filepath_or_buffer="atrm.csv", details=True)
/opt/conda/lib/python3.7/site-packages/quantrocket/moonshot.py in backtest(strategies, start_date, end_date, segment, allocations, nlv, params, details, output, filepath_or_buffer, no_cache)
135 params=_params, timeout=606024)
136
--> 137 houston.raise_for_status_with_json(response)
138
139 filepath_or_buffer = filepath_or_buffer or sys.stdout
/opt/conda/lib/python3.7/site-packages/quantrocket/houston.py in raise_for_status_with_json(response)
204 e.json_response = {}
205 e.args = e.args + ("please check the logs for more details",)
--> 206 raise e
207
208 # Instantiate houston so that all callers can share a TCP connection (for
/opt/conda/lib/python3.7/site-packages/quantrocket/houston.py in raise_for_status_with_json(response)
196 """
197 try:
--> 198 response.raise_for_status()
199 except requests.exceptions.HTTPError as e:
200 try:
/opt/conda/lib/python3.7/site-packages/requests/models.py in raise_for_status(self)
938
939 if http_error_msg:
--> 940 raise HTTPError(http_error_msg, response=self)
941
942 def close(self):
HTTPError: ('500 Server Error: INTERNAL SERVER ERROR for url: http://houston/moonshot/backtests.csv?strategies=umd&start_date=2020-10-01&end_date=2020-10-06&details=True', {'status': 'error', 'msg': 'sequence item 0: expected str instance, NoneType found'})
What should I do?