diff --git a/gamestonk_terminal/forex/fx_view.py b/gamestonk_terminal/forex/fx_view.py index 0ac34599671..864acf2ade5 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. ", ) @@ -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": {