Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

updated temporary bitso round #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pyexchange/bitso.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
return int_timestamp