From ec341afba90b7a7de7dd01ee59be2ae15f8b0d31 Mon Sep 17 00:00:00 2001 From: Alexandru Pisarenco Date: Mon, 19 Apr 2021 23:15:38 +0200 Subject: [PATCH] link mem_storage.py from README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b3e54df..712f906 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ Then go to either of the endpoints: * http://127.0.0.1:5000/last30m/DJ40J281M584 - list of quotes from the last 30 minutes, grouped by 1 minute intervals, which contain the opening price, closing price, min and max price. #### "Hot" stream -Upon inserting every quote value, the value is directed to an in-memory data structure: `alerter.mem_storage` +Upon inserting every quote value, the value is directed to an in-memory data structure: alerter/mem_storage.py Uses a dictionary to organize by symbol. For each symbol there's 2 data structures: * An ordered (by time) queue of entries. When a new entry is added to the right, old entries are removed from the left as long as they're older than 5 minutes.