Skip to content

Instantly share code, notes, and snippets.

View Sphazz's full-sized avatar
🐬

Tyler Sphazz

🐬
View GitHub Profile
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):