pin to python-bittrex==0.2.0
This commit is contained in:
parent
eff361a104
commit
c53f2e6b88
@ -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)
|
||||
|
@ -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
|
||||
|
4
setup.py
4
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,
|
||||
|
Loading…
Reference in New Issue
Block a user