This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json, hmac, hashlib, time, requests | |
| from requests.auth import AuthBase | |
| # Before implementation, set environmental variables with the names API_KEY and API_SECRET | |
| API_KEY = '' | |
| API_SECRET = '' | |
| # Create custom authentication for Coinbase API | |
| class CoinbaseWalletAuth(AuthBase): | |
| def __init__(self, api_key, secret_key): |