Sample API authentication for BitcoinAverage's APIv2 in Python BitcoinAverage began requiring API keys for all requests but could not find example python implementation in documentation This script gives you a working python template for making authenticated API requests from BitcoinAverage's APIv2 Replace pub_key and secret_key with the api keys generated from your bitcoinaverage.com account Adjust currency ticker with rate_url = 'https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD' Make specific JSON requests with requests.get(url=rate_url, headers=rate_header).json()['last'] To run: virtualenv venv --no-site-packages source venv/bin/activate pip install requests python btcavg-apiv2auth.py Alternatively without virtualenv: apt-get install python-requests python btcavg-apiv2auth.py Keywords: BitcoinAverage, API, APIv2, python, authentication, bitcoinaverage.com
Sample API authentication for BitcoinAverage's APIv2 in Python
License
grAIvy/btcavg-apiv2auth
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sample API authentication for BitcoinAverage's APIv2 in Python
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published