Skip to content

Commit

Permalink
Merge pull request #38 from EtWnn/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
EtWnn authored Apr 6, 2022
2 parents 65c8540 + 7fae0c6 commit 5e2ff63
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 113 deletions.
4 changes: 2 additions & 2 deletions CryptoPrice/__about__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.1.3"
__author__ = "EtWnn"
__version__ = "0.2.0"
__author__ = "EtWnn"
7 changes: 3 additions & 4 deletions CryptoPrice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@

from CryptoPrice.retrievers.BinanceRetriever import BinanceRetriever
from CryptoPrice.retrievers.KucoinRetriever import KucoinRetriever
from CryptoPrice.retrievers.CoinbaseRetriever import CoinbaseRetriever
from CryptoPrice.retrievers.MetaRetriever import MetaRetriever


def get_default_retriever() -> MetaRetriever:
"""
Provides a hands on price retriever made from the default BinanceRetriever, the default KucoinRetriever
and the default CoinbaseRetriever
Provides a hands on price retriever made from the default BinanceRetriever and the default KucoinRetriever
:return: the meta retriever constructed
:rtype: MetaRetriever
"""
return MetaRetriever([BinanceRetriever(), KucoinRetriever(), CoinbaseRetriever()])
return MetaRetriever([BinanceRetriever(), KucoinRetriever()])
87 changes: 0 additions & 87 deletions CryptoPrice/retrievers/CoinbaseRetriever.py

This file was deleted.

7 changes: 2 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
===============================
Welcome to CryptoPrice 0.1.3
Welcome to CryptoPrice 0.2.0
===============================


Expand All @@ -26,7 +26,6 @@ amount of different tokens or to compare the price difference between exchanges.
It currently includes:
- Binance API
- Kucoin API
- Coinbase API
- Cross-API logic

Quick Tour
Expand All @@ -38,10 +37,8 @@ Quick Tour

.. code:: bash
pip install --no-deps python-CryptoPrice
pip install python-CryptoPrice
*Note*: `--no-deps` is needed as one of the dependencies is not hosted one PYPI, simply on git.
You can also install the latest developments (not stable):

Expand Down Expand Up @@ -95,7 +92,7 @@ than the one above as several API calls (or database requests) may be needed.
.. code-block:: bash
>>LTC = 420.76841 XRP, source: {'binance', 'kucoin', 'coinbase'}
>>LTC = 420.76841 XRP, source: {'binance', 'kucoin'}
Donation
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# The full version, including alpha/beta/rc tags
this_directory = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(this_directory, f'../../{project}/__init__.py'), encoding='utf-8') as f:
with open(os.path.join(this_directory, f'../../{project}/__about__.py'), encoding='utf-8') as f:
exec(f.read(), about)
release = about['__version__']

Expand Down
7 changes: 2 additions & 5 deletions docs/source/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ Installation

.. code:: bash
pip install --no-deps python-CryptoPrice
pip install python-CryptoPrice
*Note*: `--no-deps` is needed as one of the dependencies is not hosted one PYPI, simply on git.

You can also install the latest developments (not stable):

.. code:: bash
Expand All @@ -29,7 +26,7 @@ Get a retriever
---------------

To fetch some prices, you will need to use a retriever, there are several kinds and instances of retrievers in this
library so we made a default one for you:
library so a default one is ready for you:

.. code:: python
Expand Down Expand Up @@ -85,4 +82,4 @@ than the one above as several API calls (or database requests) have to be made.
.. code-block:: bash
>>LTC = 420.76841 XRP, source: {'binance', 'kucoin', 'coinbase'}
>>LTC = 420.76841 XRP, source: {'binance', 'kucoin'}
5 changes: 0 additions & 5 deletions docs/source/retrievers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ Implemented Retrievers

Below are the retrievers implemented in this library.

.. automodule:: CryptoPrice.retrievers.CoinbaseRetriever
:special-members: __init__
:members:
:undoc-members:

.. automodule:: CryptoPrice.retrievers.BinanceRetriever
:special-members: __init__
:members:
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ appdirs
sphinx
sphinx_rtd_theme
python-binance
kucoin-python
git+https://github.com/teleprint-me/[email protected]#egg=cbpro
kucoin-python
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
install_requires=['requests',
'appdirs',
'python-binance',
'kucoin-python',
'cbpro@git+https://github.com/teleprint-me/[email protected]'],
'kucoin-python'],
keywords='eth bsc price ohlc candle history API Binance Kucoin',
classifiers=[
'Intended Audience :: Developers',
Expand Down

0 comments on commit 5e2ff63

Please sign in to comment.