-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the price_log_service introduces a simple http server flask based used to serve price.log.gz files to different backtesting runners. There is no support yet in the bot to pull price.logs directly from this service. That will be added on a future PR. That change will allow the backtesting to not consume any local disk space or to perform any local gzip ops
- Loading branch information
Showing
5 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" price_log_service.py """ | ||
from flask import send_from_directory, Flask | ||
|
||
app: Flask = Flask(__name__) | ||
|
||
|
||
@app.route("/<path:path>") | ||
def root(path): | ||
"""root handler""" | ||
return send_from_directory("log", path) | ||
|
||
|
||
if __name__ == "__main__": | ||
app.run(host="0.0.0.0", port=8998) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters