From eda77df1a815b1d640cd85923d3ded2e28d9799e Mon Sep 17 00:00:00 2001 From: Igor Kroitor Date: Thu, 28 Sep 2017 14:32:01 +0300 Subject: [PATCH] updated examples/py/basic-chart.py --- ccxt/__init__.py | 20 ++++++++++---------- examples/py/basic-chart.py | 10 ++++------ setup.cfg | 2 +- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/ccxt/__init__.py b/ccxt/__init__.py index 879b263690e0..f81a1b451240 100644 --- a/ccxt/__init__.py +++ b/ccxt/__init__.py @@ -26,7 +26,7 @@ # ----------------------------------------------------------------------------- -from ccxt.version import __version__ +# from ccxt.version import __version__ # ----------------------------------------------------------------------------- @@ -35,15 +35,15 @@ # ----------------------------------------------------------------------------- -from ccxt.errors import CCXTError -from ccxt.errors import ExchangeError -from ccxt.errors import NotSupported -from ccxt.errors import AuthenticationError -from ccxt.errors import InsufficientFunds -from ccxt.errors import NetworkError -from ccxt.errors import DDoSProtection -from ccxt.errors import RequestTimeout -from ccxt.errors import ExchangeNotAvailable +# from ccxt.errors import CCXTError +# from ccxt.errors import ExchangeError +# from ccxt.errors import NotSupported +# from ccxt.errors import AuthenticationError +# from ccxt.errors import InsufficientFunds +# from ccxt.errors import NetworkError +# from ccxt.errors import DDoSProtection +# from ccxt.errors import RequestTimeout +# from ccxt.errors import ExchangeNotAvailable # ----------------------------------------------------------------------------- diff --git a/examples/py/basic-chart.py b/examples/py/basic-chart.py index 4d5aa62a0773..79247ee74805 100644 --- a/examples/py/basic-chart.py +++ b/examples/py/basic-chart.py @@ -18,7 +18,7 @@ # ----------------------------------------------------------------------------- kraken = ccxt.kraken() -yunbi = ccxt.yunbi() +gdax = ccxt.gdax() symbol = 'BTC/USD' @@ -43,10 +43,8 @@ def print_chart(exchange, symbol, timeframe): return last -print_chart(kraken, 'BTC/USD', '1m') - -last = print_chart(kraken, 'BTC/USD', '5m') +last = print_chart(kraken, 'BTC/USD', '1h') print("\n" + kraken.name + " ₿ = $" + str(last) + "\n") # print last closing price -last = print_chart(yunbi, 'BTC/CNY', '1h') -print("\n" + yunbi.name + " ₿ = CN¥ " + str(last) + "\n") # print last closing price +last = print_chart(gdax, 'BTC/USD', '1h') +print("\n" + gdax.name + " ₿ = $" + str(last) + "\n") # print last closing price diff --git a/setup.cfg b/setup.cfg index 5569d5c14283..2e6dc62d63b9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ universal=1 [flake8] -ignore = E501, F401, F405 +ignore = E501, F405 exclude = .ropeproject, .tox,