Skip to content

Instantly share code, notes, and snippets.

View timurbakibayev's full-sized avatar

Timur Bakibayev timurbakibayev

  • Neckarwiese
  • Almaty, Kazakhstan
View GitHub Profile
@exocomet
exocomet / coinbasepro_request.py
Created July 13, 2021 20:20
Coinbase Pro - creating a request, Python 3
import json, hmac, hashlib, time, requests, base64
from requests.auth import AuthBase
# Create custom authentication for Exchange
class CoinbaseExchangeAuth(AuthBase):
def __init__(self, api_key, secret_key, passphrase):
self.api_key = api_key
self.secret_key = secret_key
self.passphrase = passphrase