Package: cryptodatapi
Python library for integrating withCrypto APIfunctionality.RequirementsPython 2.7 and later.SetupYou can install this package by using the pip tool and installing:$pipinstallcryptodatapiOr:$easy_installcryptodatapiUsage Exampleimportcryptodatapifromdotenvimportload_dotenvimportos## Loads environment variables from .envload_dotenv('.env')username=os.getenv('_USERNAME')password=os.getenv('_PASSWORD')## Authenticationcryptodatapi.login(username,password)## Retrieve All Cryptocurrency PricescryptoPrices=cryptodatapi.get_crypto_price()print(cryptoPrices)## Retrieve Cryptocurrency Price by IDcryptoPriceByID=cryptodatapi.get_crypto_price(id='<insert unique id>')print(cryptoPriceByID)## Retrieve Bitcoin PricecryptoPrice=cryptodatapi.get_crypto_price(sym='BTC')print(cryptoPrice)## Retrieve All Cryptocurrency Top GainerscryptoGainers=cryptodatapi.get_gainers()print(cryptoGainers)## Retrieve Cryptocurrency Top Gainers by IDcryptoGainersByID=cryptodatapi.get_gainers(id='<insert unique id>')print(cryptoGainersByID)## Retrieve All Cryptocurrency Top LoserscryptoLosers=cryptodatapi.get_losers()print(cryptoLosers)## Retrieve Cryptocurrency Top Losers by IDcryptoLosersByID=cryptodatapi.get_losers(id='<insert unique id>')print(cryptoLosersByID)## Retrieve All Cryptocurrency 2021 Historical PricescryptoHistorical2021=cryptodatapi.get_hist_price_2021()print(cryptoHistorical2021)## Retrieve Cryptocurrency 2021 Historical Prices by IDcryptoHistorical2021ByID=cryptodatapi.get_hist_price_2021(id='<insert unique id>')print(cryptoHistorical2021ByID)## Retrieve All Cryptocurrency 2022 Historical PricescryptoHistorical2022=cryptodatapi.get_hist_price_2022()print(cryptoHistorical2022)## Retrieve Cryptocurrency 2022 Historical Prices by IDcryptoHistorical2022ByID=cryptodatapi.get_hist_price_2022(id='<insert unique id>')print(cryptoHistorical2022ByID)## Retrieve All Cryptocurrency 2023 Historical PricescryptoHistorical2023=cryptodatapi.get_hist_price_2023()print(cryptoHistorical2023)## Retrieve Cryptocurrency 2023 Historical Prices by IDcryptoHistorical2023ByID=cryptodatapi.get_hist_price_2023(id='<insert unique id>')print(cryptoHistorical2023ByID)## Retrieve All Cryptocurrency Derivatives ExchangescryptoDerivatives=cryptodatapi.get_derivatives()print(cryptoDerivatives)## Retrieve Cryptocurrency Derivatives Exchanges by IDcryptoDerivativesByID=cryptodatapi.get_derivatives(id='<insert unique id>')print(cryptoDerivativesByID)## Retrieve All Cryptocurrency Decentralized ExchangescryptoDecentralized=cryptodatapi.get_dex()print(cryptoDecentralized)## Retrieve Cryptocurrency Decentralized Exchanges by IDcryptoDecentralizedByID=cryptodatapi.get_dex(id='<insert unique id>')print(cryptoDecentralizedByID)## Retrieve All Cryptocurrency Lending ExchangescryptoLending=cryptodatapi.get_lending()print(cryptoLending)## Retrieve Cryptocurrency Lending Exchanges by IDcryptoLendingByID=cryptodatapi.get_lending(id='<insert unique id>')print(cryptoLendingByID)## Retrieve All Cryptocurrency Spot ExchangescryptoSpot=cryptodatapi.get_spot()print(cryptoSpot)## Retrieve Cryptocurrency Spot Exchanges by IDcryptoSpotByID=cryptodatapi.get_spot(id='<insert unique id>')print(cryptoSpotByID)## Retrieve All Cryptocurrency NewscryptoNews=cryptodatapi.get_news()print(cryptoNews)## Retrieve Cryptocurrency News by IDcryptoNewsByID=cryptodatapi.get_news(id='<insert unique id>')print(cryptoNewsByID)Setting up an Crypto API AccountSign up for a self-serviceuser account.Using the Crypto APIYou can read theAPI documentationto understand what’s possible with the Crypto API. If you need further assistance, don’t hesitate tocontact us.LicenseThis project is licensed under theMIT License.CopyrightCopyright © 2020 - 2023Hori Systems Limited. All Rights Reserved.