From 520a5fe04ad02e9da14a109f53ecc2bc159c3096 Mon Sep 17 00:00:00 2001 From: jose-donato <43375532+jose-donato@users.noreply.github.com> Date: Tue, 1 Nov 2022 21:05:39 +0000 Subject: [PATCH] Fix 3191 (#3241) * fix(docs): added margin between sections * fix: news params and descend * fix: fixed sort Co-authored-by: Henrique Joaquim --- .../cryptocurrency/due_diligence/dd_controller.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py b/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py index f11128ffc84..411f8360493 100644 --- a/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py +++ b/openbb_terminal/cryptocurrency/due_diligence/dd_controller.py @@ -183,6 +183,21 @@ class DueDiligenceController(CryptoBaseController): "-l": "--limit", "--descend": {}, } + choices["news"] = { + "--sort": {c: {} for c in cryptopanic_model.SORT_FILTERS}, + "-s": "--sort", + "--limit": {str(c): {} for c in range(1, 100)}, + "-l": "--limit", + "--descend": {}, + "--urls": {}, + "-u": "--urls", + "--kind": {c: {} for c in cryptopanic_model.CATEGORIES}, + "-k": "--kind", + "--filter": {c: {} for c in cryptopanic_model.FILTERS}, + "-f": "--filter", + "--region": {c: {} for c in cryptopanic_model.REGIONS}, + "-r": "--region", + } choices["mt"] = {c: None for c in self.messari_timeseries} choices["mt"]["-i"] = {c: None for c in messari_model.INTERVALS_TIMESERIES} choices["mcapdom"]["-i"] = {