read README.md from github
Project description
crypto-coins
A simple python lib for get info about crypto-moneys, using the https://coincap.io/ API.
functions :
get_top_list() :
return the more expensive crypto-moneys, in order
from cryppy_coins import get_top_list
print(get_top_list())
result :
>> ['bitcoin', 'ethereum', 'binance-coin', 'xrp', 'tether', 'cardano', 'dogecoin', 'polkadot', 'uniswap', 'litecoin', 'bitcoin-cash', 'chainlink', 'solana', 'usd-coin', 'theta', 'stellar', 'filecoin', 'wrapped-bitcoin', 'binance-usd', 'monero', 'terra-luna', 'neo', 'iota', 'eos', 'cosmos', 'aave', 'bitcoin-sv', 'crypto-com-coin', 'bittorrent', 'maker', 'tezos', 'multi-collateral-dai', 'algorand', 'huobi-token', 'compound', 'kusama', 'thorchain', 'elrond-egld', 'dash', 'nem', 'decred', 'zcash', 'matic-network', 'chiliz', 'hedera-hashgraph', 'enjin-coin', 'decentraland', 'zilliqa', 'synthetix-network-token', 'digibyte', 'basic-attention-token', 'siacoin', 'theta-fuel', 'yearn-finance', 'uma', 'sushiswap', 'waves', 'blockstack', 'horizen', 'qtum', 'ontology', 'icon', 'celo', 'harmony', '0x', 'bancor', 'swissborg', 'reserve-rights', 'xinfin-network', 'ankr', 'omg', 'kucoin-shares', 'fantom', 'dent', 'iostoken', 'ren', 'verge', 'bitmax-token', 'vethor-token', 'livepeer', 'loopring', 'lisk', 'kyber-network', 'nervos-network', 'origin-protocol', 'storj', 'ocean-protocol', 'nxm', 'maidsafecoin', 'augur', 'golem-network-tokens', 'electroneum', 'iotex', 'wink-tronbet', 'nkn', 'ardor', 'trustswap', 'fetch', 'singularitynet', 'aragon']
the index 0 is the more expensive crypto-money, and the index 1 the second, etc.
get_money_by_rank(rank=1) :
return the money who has the rank number (ex : bitcoin = 1)
from cryppy_coins import get_money_by_rank
print(get_money_by_rank(3))
result :
>> binance-coin
get_rank_by_money(money='bitcoin):
return the rank of a money
from cryppy_coins import get_rank_by_money
print(get_rank_by_money('stellar'))
result :
>> 16
get_money_info(money_name='bitcoin'):
return the info of a money
from cryppy_coins import get_rank_by_money
print(get_money_info(money_name='qtum'))
result :
>> {'data': {'id': 'qtum', 'rank': '61', 'symbol': 'QTUM', 'name': 'Qtum', 'supply': '98315664.7260568000000000', 'maxSupply': '107822406.0000000000000000', 'marketCapUsd': '1310840549.9845289385242708', 'volumeUsd24Hr': '207679800.6994329166665946', 'priceUsd': '13.3329775436804244', 'changePercent24Hr': '8.2445673627018140', 'vwap24Hr': '12.6877319745330286', 'explorer': 'https://qtum.info/'}, 'timestamp': 1619433969660}
get_history(money='bitcoin', interval='d1'):
return the history of the money, with interval (m1, m5, m15, m30 / h1, h2, h6, h12 / d1 ; m = month, h = hour, d = day)
from cryppy_coins import get_history
print(get_history('solana', 'd1'))
result : https://bin.readthedocs.fr/ominal.py (the output is very long)
get_markets(money='bitcoin'):
return last transactions of a money
from cryppy_coins import get_markets
print(get_markets('bitcoin'))
result : too long for bin too, try it your self !
get_rates(money=None):
return rates of a money or off all the moneys (when money is None)
get_exchanges(money=None):
return exchanges of a money or off all the moneys (when money is None)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crypy-coins-1.0.1.tar.gz.
File metadata
- Download URL: crypy-coins-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3bb6fad4cf152804fc1386b213d67a12de42901b9f4577de7476258ee860066
|
|
| MD5 |
c2c5f6f9eb32fa9a085c76882d36090b
|
|
| BLAKE2b-256 |
cc7d586c11559c39715f672ff9d05cffa7d29cec1ed191a2c3dad26e4d8bce42
|
File details
Details for the file crypy_coins-1.0.1-py3-none-any.whl.
File metadata
- Download URL: crypy_coins-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8f0454ed7fc454b45dc2ad50b498aecb043a1f2523d0f4cfc48c21e78b10ad2
|
|
| MD5 |
bd5cf15d2cd77996b6ee110aa1dabef0
|
|
| BLAKE2b-256 |
6d4e9cc0e1ae2c55eb5c8957c82423117c73ce1a59ea131744a0dcd4b91c6761
|