From 97f33cd627206a6881bd51f92d5e3fa3e5ff478a Mon Sep 17 00:00:00 2001 From: ayy1337 Date: Thu, 25 Jan 2018 08:40:21 +1100 Subject: [PATCH] Add 10s timeout for api calls addresses issue #132 --- bittrex/bittrex.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bittrex/bittrex.py b/bittrex/bittrex.py index 004c2fd..6a4d629 100644 --- a/bittrex/bittrex.py +++ b/bittrex/bittrex.py @@ -74,7 +74,8 @@ def encrypt(api_key, api_secret, export=True, export_fn='secrets.json'): def using_requests(request_url, apisign): return requests.get( request_url, - headers={"apisign": apisign} + headers={"apisign": apisign}, + timeout=10 ).json()