From b8d31ec2bd6e2054de0b72bca218341ff3bf19eb Mon Sep 17 00:00:00 2001 From: peshay Date: Sun, 31 Dec 2017 12:17:12 +0100 Subject: [PATCH] re-add Decimal float parser Sorry for losing this due to wrong merging. --- btcde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btcde.py b/btcde.py index 1a79bcb..ab24543 100644 --- a/btcde.py +++ b/btcde.py @@ -166,7 +166,7 @@ def APIConnect(self, method, params): # Handle API Errors if HandleAPIErrors(r): # get results - result = r.json() + result = r.json(parse_float=decimal.Decimal) else: result = {} except requests.exceptions.RequestException as e: