From c53f2e6b88703cf71d27d7bb56e4bc34b017625c Mon Sep 17 00:00:00 2001 From: gcarq Date: Fri, 13 Oct 2017 19:56:31 +0200 Subject: [PATCH] pin to python-bittrex==0.2.0 --- freqtrade/exchange/bittrex.py | 8 ++++++-- requirements.txt | 2 +- setup.py | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/freqtrade/exchange/bittrex.py b/freqtrade/exchange/bittrex.py index cb85aaf87..8305b2a3b 100644 --- a/freqtrade/exchange/bittrex.py +++ b/freqtrade/exchange/bittrex.py @@ -3,7 +3,7 @@ from typing import List, Optional import arrow import requests -from bittrex.bittrex import Bittrex as _Bittrex +from bittrex.bittrex import Bittrex as _Bittrex, API_V2_0 from freqtrade.exchange.interface import Exchange @@ -34,7 +34,11 @@ class Bittrex(Exchange): global _API, _EXCHANGE_CONF _EXCHANGE_CONF.update(config) - _API = _Bittrex(api_key=_EXCHANGE_CONF['key'], api_secret=_EXCHANGE_CONF['secret']) + _API = _Bittrex( + api_key=_EXCHANGE_CONF['key'], + api_secret=_EXCHANGE_CONF['secret'], + api_version=API_V2_0, + ) def buy(self, pair: str, rate: float, amount: float) -> str: data = _API.buy_limit(pair.replace('_', '-'), amount, rate) diff --git a/requirements.txt b/requirements.txt index be3a292f0..0cd5b1f2b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ --e git+https://github.com/ericsomdahl/python-bittrex.git@d7033d0#egg=python-bittrex +-e git+https://github.com/ericsomdahl/python-bittrex.git@0.2.0#egg=python-bittrex SQLAlchemy==1.1.14 python-telegram-bot==8.0 arrow==0.10.0 diff --git a/setup.py b/setup.py index e89fd2eee..f8c515861 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup(name='freqtrade', setup_requires=['pytest-runner'], tests_require=['pytest', 'pytest-mock', 'pytest-cov'], install_requires=[ - 'python-bittrex==0.1.3', + 'python-bittrex==0.2.0', 'SQLAlchemy==1.1.13', 'python-telegram-bot==8.0', 'arrow==0.10.0', @@ -29,7 +29,7 @@ setup(name='freqtrade', 'TA-Lib==0.4.10', ], dependency_links=[ - "git+https://github.com/ericsomdahl/python-bittrex.git@d7033d0#egg=python-bittrex-0.1.3" + "git+https://github.com/ericsomdahl/python-bittrex.git@0.2.0#egg=python-bittrex-0.2.0" ], include_package_data=True, zip_safe=False,