Skip to content

Instantly share code, notes, and snippets.

@KolevDarko
Created July 26, 2021 13:12
Show Gist options
  • Save KolevDarko/63819e0c31ffef3e61a9a6adf7428d90 to your computer and use it in GitHub Desktop.
Save KolevDarko/63819e0c31ffef3e61a9a6adf7428d90 to your computer and use it in GitHub Desktop.
Get Dogecoin price
import requests
BA_API_KEY = 'your api key here'
def get_dogecoin_price():
price_url = 'https://apiv2.bitcoinaverage.com/indices/crypto/ticker/DOGEUSD'
response = requests.get(price_url, headers={'x-ba-key': BA_API_KEY})
return response.json()
result = get_dogecoin_price()
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment