Updated docs, updated symbols

api-breakage
Morty Space 6 years ago
parent 408f990531
commit 2f8db87c75
  1. 2
      docs/source/guide.rst
  2. 32
      docs/source/index.rst
  3. 2
      docs/source/install.rst
  4. 3
      setup.py
  5. 8
      src/cryptocom/exchange/enums.py

@ -1,2 +0,0 @@
User's Guide
============

@ -8,23 +8,31 @@
:caption: Contents: :caption: Contents:
Home <self> Home <self>
install
guide
api api
Welcome to cryptocom-exchange documentation! Welcome to cryptocom-exchange documentation!
============================================ ============================================
Get started with "Installation" and then get an overview with the User's guide with helpful examples. Also you can find tests with examples of trading and exchange data usage. This package provides interfaces to access a https://crypto.com/exchange API.
Full reference you can find in the API section. cryptocom-exchange depends on the aiohttp the documentation for this library can be found at: "link". Supports only **Python 3.7+** versions.
You can find tests with examples of trading and exchange data usage at
`github <https://github.com/goincrypto/cryptocom-exchange/tree/master/tests>`_.
Full reference you can find in the API section.
Quick-start Quick-start
=========== ===========
- python3 -m venv venv (create virutalenv) Create virtual environment, activate, install
- source venv/bin/activate
- pip3 install cryptocom-exchange
- create simple file hello_crypto.py with contents .. code-block:: bash
python3 -m venv venv
source venv/bin/activate
pip3 install cryptocom-exchange
Userful examples
================
- Get historical data
.. testcode:: .. testcode::
@ -41,6 +49,14 @@ Quick-start
asyncio.run(main()) asyncio.run(main())
- Watch latest candles live
- Get orderbook
- Buy or Sell with LIMIT or MARKET orders
- Get trades and orders
Indices and tables Indices and tables
================== ==================

@ -1,2 +0,0 @@
Installation
============

@ -52,7 +52,8 @@ setup(
'sphinx_rtd_theme', 'sphinx_rtd_theme',
'setuptools', 'setuptools',
'wheel', 'wheel',
'twine' 'twine',
'doc8'
] ]
}, },
zip_safe=True zip_safe=True

@ -85,6 +85,7 @@ class Symbol(enum.Enum):
.. data:: LTCBTC .. data:: LTCBTC
.. data:: EOSBTC .. data:: EOSBTC
.. data:: XLMBTC .. data:: XLMBTC
.. data:: ATOMBTC
.. data:: USDCUSDT .. data:: USDCUSDT
.. data:: BTCUSDT .. data:: BTCUSDT
.. data:: CROUSDT .. data:: CROUSDT
@ -94,12 +95,15 @@ class Symbol(enum.Enum):
.. data:: LTCUSDT .. data:: LTCUSDT
.. data:: EOSUSDT .. data:: EOSUSDT
.. data:: XLMUSDT .. data:: XLMUSDT
.. data:: ATOMUSDT
.. data:: MCOCRO .. data:: MCOCRO
.. data:: ETHCRO .. data:: ETHCRO
.. data:: XRPCRO .. data:: XRPCRO
.. data:: LTCCRO .. data:: LTCCRO
.. data:: EOSCRO .. data:: EOSCRO
.. data:: XLMCRO .. data:: XLMCRO
.. data:: ATOMCRO
.. data:: CROUSDC
""" """
CROBTC = 'crobtc' CROBTC = 'crobtc'
@ -109,6 +113,7 @@ class Symbol(enum.Enum):
LTCBTC = 'ltcbtc' LTCBTC = 'ltcbtc'
EOSBTC = 'eosbtc' EOSBTC = 'eosbtc'
XLMBTC = 'xlmbtc' XLMBTC = 'xlmbtc'
ATOMBTC = 'atombtc'
USDCUSDT = 'usdcusdt' USDCUSDT = 'usdcusdt'
BTCUSDT = 'btcusdt' BTCUSDT = 'btcusdt'
CROUSDT = 'crousdt' CROUSDT = 'crousdt'
@ -118,12 +123,15 @@ class Symbol(enum.Enum):
LTCUSDT = 'ltcusdt' LTCUSDT = 'ltcusdt'
EOSUSDT = 'eosusdt' EOSUSDT = 'eosusdt'
XLMUSDT = 'xlmusdt' XLMUSDT = 'xlmusdt'
ATOMUSDT = 'atomusdt'
MCOCRO = 'mcocro' MCOCRO = 'mcocro'
ETHCRO = 'ethcro' ETHCRO = 'ethcro'
XRPCRO = 'xrpcro' XRPCRO = 'xrpcro'
LTCCRO = 'ltccro' LTCCRO = 'ltccro'
EOSCRO = 'eoscro' EOSCRO = 'eoscro'
XLMCRO = 'xlmcro' XLMCRO = 'xlmcro'
ATOMCRO = 'atomcro'
CROUSDC = 'crousdc'
class Depth(enum.Enum): class Depth(enum.Enum):

Loading…
Cancel
Save