Skip to main content

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 crypto-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 crypto-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 crypto-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 crypto-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 crypto-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 crypto-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crypy-coins-1.0.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

crypy_coins-1.0.0-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page