All Projects → adilkhash → Pycoinbin

adilkhash / Pycoinbin

Licence: mit
Python Wrapper for coinbin.org

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Pycoinbin

Bitcoinml
Bitcoin data-structures library for OCaml
Stars: ✭ 38 (-11.63%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Blockchain Papers
区块链相关的有价值的文献
Stars: ✭ 20 (-53.49%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Lnd
Lightning Network Daemon ⚡️
Stars: ✭ 5,623 (+12976.74%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Asch
Asch is an efficient, flexible, safe and decentralized application platform, which was initially designed to lower the barrier to entry for developers.The services provided by the Asch platform include a public chain and a set of application SDKs.
Stars: ✭ 484 (+1025.58%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Blockchain Reading List
Blockchain Manchester Meetups, Talks and Reading List
Stars: ✭ 17 (-60.47%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Exchangesharp
ExchangeSharp is a powerful, fast and easy to use .NET/C# API for interfacing with many crypto currency exchanges. REST and web sockets are supported.
Stars: ✭ 489 (+1037.21%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Blockchain
A simple Blockchain in Python
Stars: ✭ 6,496 (+15006.98%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Cryptolist
Curated collection of blockchain & cryptocurrency resources.
Stars: ✭ 3,501 (+8041.86%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Ebookcoin
Ebookcoin has been updated to DDN Blockchain,please get it from https://github.com/ddnlink/ddn
Stars: ✭ 789 (+1734.88%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Lbry Sdk
The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
Stars: ✭ 7,169 (+16572.09%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Odyn
A prototype anonymous proof-of-work blockchain
Stars: ✭ 13 (-69.77%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Aeternity
æternity: solving scalability problems by making sense of state-channels
Stars: ✭ 923 (+2046.51%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Lets Build A Blockchain
A mini cryptocurrency in Ruby
Stars: ✭ 416 (+867.44%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Bluewallet
Bitcoin thin client for iOS & Android. Built with React Native
Stars: ✭ 878 (+1941.86%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Ethlist
The Comprehensive Ethereum Reading List
Stars: ✭ 3,576 (+8216.28%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Awesome Blockchain
Curated list of blockchain services and exchanges 🔥🏦🔥🏦🔥🏦🔥
Stars: ✭ 604 (+1304.65%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Elixium core
A privacy-preserving decentralized application network
Stars: ✭ 274 (+537.21%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Xdag
XDAG (Dagger Coin) Official Main Repository. XDAG is a novel DAG based cryptocurrency.
Stars: ✭ 297 (+590.7%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Wallet Core
Cross-platform, cross-blockchain wallet library.
Stars: ✭ 657 (+1427.91%)
Mutual labels:  blockchain, bitcoin, cryptocurrency
Eclair
A scala implementation of the Lightning Network.
Stars: ✭ 892 (+1974.42%)
Mutual labels:  blockchain, bitcoin, cryptocurrency

Build Status

Python wrapper for coinbin.org

Simple wrapper around coinbin.org to retrieve information about cryptocurrencies

Install

pip install pycoinbin

Usage

You have to import Coinbin class from coinbin package and go ahead.

>>> from coinbin import Coinbin
>>> client = Coinbin()
>>>

If you want to know more about particular cryptocurrency use get_currency method:

>>> btc = client.get_currency('btc')
>>> print(btc.name, btc.rank, btc.usd)
Bitcoin 1 4584.94
>>> 

If you want to know how much costs particular amount of cryptocurrency then go ahead with get_currency_price method

>>> btc = client.get_currency_price('btc', 100)
>>> print(btc.usd, btc.exchange_rate)
458494.0 4584.94
>>> 

Exchange rate between two cryptocurrencies can be obtained with get_exchange_rate

>>> rate = client.get_exchange_rate('BTC', 'ETH')
>>> print(rate)
ExchangeRate(exchange_rate=13.24225487)
>>> 

List all available cryptocoins:

>>> coins = client.list_currencies()
>>> print(coins)
{'$$$': Coin(btc=4.9e-07, name='Money', rank=334, ticker='$$$', usd=0.002257), '
>>>

History of particular coin can be retrieved by get_currency_history

>>> btc = client.get_currency_history('btc')
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].