Skip to content

Commit

Permalink
Add 10s timeout for api calls
Browse files Browse the repository at this point in the history
addresses issue #132
  • Loading branch information
ayy1337 authored and ericsomdahl committed Jan 24, 2018
1 parent 0538750 commit 97f33cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bittrex/bittrex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 97f33cd

Please sign in to comment.