mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user