From 2a7ea587a4d1c493ffd1d3f6301971ac88293f8a Mon Sep 17 00:00:00 2001 From: DJ Date: Mon, 26 Apr 2021 17:24:01 -0600 Subject: [PATCH 1/2] change type --- gamestonk_terminal/forex/fx_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamestonk_terminal/forex/fx_view.py b/gamestonk_terminal/forex/fx_view.py index 0ac34599671..4ea9438c3b8 100644 --- a/gamestonk_terminal/forex/fx_view.py +++ b/gamestonk_terminal/forex/fx_view.py @@ -233,7 +233,7 @@ def create_order(accountID, instrument, other_args: List[str]): "--price", dest="price", action="store", - type=float, + type=check_non_negative, required=True, help="The price to set for the limit order. ", ) From 9eb5e798f8df1aff64fba3ee883baf44bf400a0b Mon Sep 17 00:00:00 2001 From: DJ Date: Mon, 26 Apr 2021 17:28:34 -0600 Subject: [PATCH 2/2] remove conversion --- gamestonk_terminal/forex/fx_view.py | 1 - 1 file changed, 1 deletion(-) diff --git a/gamestonk_terminal/forex/fx_view.py b/gamestonk_terminal/forex/fx_view.py index 4ea9438c3b8..864acf2ade5 100644 --- a/gamestonk_terminal/forex/fx_view.py +++ b/gamestonk_terminal/forex/fx_view.py @@ -245,7 +245,6 @@ def create_order(accountID, instrument, other_args: List[str]): ns_parser.price = round(ns_parser.price, 3) else: ns_parser.price = round(ns_parser.price, 5) - check_non_negative(ns_parser.price) data = { "order": {