Merge pull request #406 from alokan/main

Change to requested type
This commit is contained in:
DidierRLopes
2021-04-27 21:33:29 +01:00
committed by GitHub

View File

@@ -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": {