diff --git a/pyexchange/bitso.py b/pyexchange/bitso.py index c4879f7f..eb20d554 100644 --- a/pyexchange/bitso.py +++ b/pyexchange/bitso.py @@ -1,6 +1,6 @@ # This file is part of Maker Keeper Framework. # -# Copyright (C) 2020 MikeHathaway +# Copyright (C) 2020 MikeHathaway # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -193,8 +193,9 @@ def place_order(self, book: str, side: str, price: float, amount: float) -> str: assert(isinstance(amount, float)) client_id = str(uuid.uuid4()) + price = round(price, 2) + - request_body = { "book": book, # REQUIRED "side": side, # REQUIRED @@ -335,4 +336,4 @@ def _format_pair_string(self, pair: str) -> str: def _iso8601_to_unix(self, timestamp) -> int: assert(isinstance(timestamp, str)) int_timestamp = int(dateutil.parser.isoparse(timestamp).timestamp()) - return int_timestamp \ No newline at end of file + return int_timestamp