From 85c1688341acbe3f093e602fd27fcd4410861c05 Mon Sep 17 00:00:00 2001 From: Ian Harvey Date: Fri, 3 Apr 2020 17:16:57 -0700 Subject: [PATCH] updated temporary bitso round --- pyexchange/bitso.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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