从 github 读取 README.md
项目描述
加密货币
一个简单的 python 库,用于使用https://coincap.io/API 获取有关加密货币的信息。
功能 :
get_top_list():按顺序返回更昂贵的加密货币
from cryppy_coins import get_top_list
print(get_top_list())
结果 :
>> ['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']
是index 0更昂贵的加密货币,index 1第二个等等。
get_money_by_rank(rank=1):返还具有排名号的钱(例如:比特币= 1)
from cryppy_coins import get_money_by_rank
print(get_money_by_rank(3))
结果 :
>> binance-coin
get_rank_by_money(money='bitcoin): 返回钱的等级
from cryppy_coins import get_rank_by_money
print(get_rank_by_money('stellar'))
结果 :
>> 16
get_money_info(money_name='bitcoin'): 返回钱的信息
from cryppy_coins import get_rank_by_money
print(get_money_info(money_name='qtum'))
结果 :
>> {'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'):返回货币的历史,有间隔 (m1, m5, m15, m30 / h1, h2, h6, h12 / d1 ; m = 月, h = 小时, d = 天)
from cryppy_coins import get_history
print(get_history('solana', 'd1'))
结果:https ://bin.readthedocs.fr/ominal.py (输出很长)
get_markets(money='bitcoin'): 返回一笔钱的最后一笔交易
from cryppy_coins import get_markets
print(get_markets('bitcoin'))
结果:bin也太长了,你自己试试吧!
get_rates(money=None):一笔钱或所有钱款的回报率(当钱是None)
get_exchanges(money=None): 退还钱币或所有钱币(当钱币是None)
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
crypy-coins-1.0.1.tar.gz
(3.4 kB
查看哈希)
内置分布
crypy_coins-1.0.1-py3-none-any.whl
(5.0 kB
查看哈希)
关
crypy_coins -1.0.1-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | c8f0454ed7fc454b45dc2ad50b498aecb043a1f2523d0f4cfc48c21e78b10ad2 |
|
| MD5 | bd5cf15d2cd77996b6ee110aa1dabef0 |
|
| 布莱克2-256 | 6d4e9cc0e1ae2c55eb5c8957c82423117c73ce1a59ea131744a0dcd4b91c6761 |