From f13a5fc7b8a6be35124c23141b5c1c672a24c722 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Mon, 6 Nov 2017 10:26:06 -0300 Subject: [PATCH 1/2] Update coverage from 4.4.1 to 4.4.2 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 623ef4b..571347d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -coverage==4.4.1 +coverage==4.4.2 pytest==3.2.3 python-decouple==3.1 requests==2.18.4 From a53af972eccba2e96e54774c49b6c56aa2972612 Mon Sep 17 00:00:00 2001 From: delta575 Date: Sat, 11 Nov 2017 21:09:57 -0300 Subject: [PATCH 2/2] adds Bitcoin Cash --- trading_api_wrappers/bitfinex/constants_v1.py | 6 ++++++ trading_api_wrappers/bitfinex/constants_v2.py | 6 +++++- trading_api_wrappers/kraken/constants.py | 1 + trading_api_wrappers/surbtc/constants.py | 5 +++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/trading_api_wrappers/bitfinex/constants_v1.py b/trading_api_wrappers/bitfinex/constants_v1.py index 08cfeb8..6c3e7cd 100644 --- a/trading_api_wrappers/bitfinex/constants_v1.py +++ b/trading_api_wrappers/bitfinex/constants_v1.py @@ -59,6 +59,9 @@ class Symbol(_Enum): ZECBTC = 'zecbtc' XMRUSD = 'xmrusd' XMRBTC = 'xmrbtc' + BCHUSD = 'bchusd' + BCHBTC = 'bchbtc' + BCHETH = 'bcheth' # Bitfinex supported currencies @@ -66,11 +69,14 @@ class Currency(_Enum): USD = 'usd' BTC = 'btc' ETH = 'eth' + BCH = 'bch' # Bitfinex supported symbols class SymbolV2(_Enum): BTCUSD = 'tBTCUSD' + BCHUSD = 'tBCHUSD' + BCHBTC = 'tBCHBTC' LTCUSD = 'tLTCUSD' ETHUSD = 'tETHUSD' ETHBTC = 'tETHBTC' diff --git a/trading_api_wrappers/bitfinex/constants_v2.py b/trading_api_wrappers/bitfinex/constants_v2.py index dc8eaaa..8d1852c 100644 --- a/trading_api_wrappers/bitfinex/constants_v2.py +++ b/trading_api_wrappers/bitfinex/constants_v2.py @@ -14,6 +14,8 @@ class Path(object): # Bitfinex supported symbols class Symbol(_Enum): + BCHUSD = 'tBCHUSD' + BCHBTC = 'tBCHBTC' BTCUSD = 'tBTCUSD' LTCUSD = 'tLTCUSD' ETHUSD = 'tETHUSD' @@ -32,8 +34,10 @@ class Symbol(_Enum): # Bitfinex supported currencies class Currency(_Enum): - USD = 'usd' + BCH = 'bch' BTC = 'btc' + ETH = 'eth' + USD = 'usd' # Bitfinex supported precisions diff --git a/trading_api_wrappers/kraken/constants.py b/trading_api_wrappers/kraken/constants.py index 26055d1..7dde142 100644 --- a/trading_api_wrappers/kraken/constants.py +++ b/trading_api_wrappers/kraken/constants.py @@ -39,6 +39,7 @@ class Path(object): # Kraken supported symbols class Symbol(_Enum): + BCHUSD = 'BCHUSD' DASHEUR = 'DASHEUR' DASHUSD = 'DASHUSD' DASHXBT = 'DASHXBT' diff --git a/trading_api_wrappers/surbtc/constants.py b/trading_api_wrappers/surbtc/constants.py index 3c77dfa..56bfcaa 100644 --- a/trading_api_wrappers/surbtc/constants.py +++ b/trading_api_wrappers/surbtc/constants.py @@ -23,6 +23,7 @@ class Path(object): class Currency(_Enum): + BCH = 'BCH' BTC = 'BTC' CLP = 'CLP' COP = 'COP' @@ -31,6 +32,10 @@ class Currency(_Enum): class Market(_Enum): + BCH_BTC = 'BCH-BTC' + BCH_CLP = 'BCH-CLP' + BCH_COP = 'BCH-COP' + BCH_PEN = 'BCH-PEN' BTC_CLP = 'BTC-CLP' BTC_COP = 'BTC-COP' BTC_PEN = 'BTC-PEN'