We use the Homebrew package manager for this step.
brew install gpg2 gnupg pinentry-mac
If this file does not exist, create it.
import hmac, hashlib, locale, math, time, requests, base64 | |
from requests.auth import AuthBase | |
class CoinbaseExchangeAuth(AuthBase): | |
def __init__(self, api_key, secret_key, passphrase): | |
self.api_key = api_key | |
self.secret_key = secret_key | |
self.passphrase = passphrase |
// vanilla JS window width and height | |
var w=window, | |
d=document, | |
e=d.documentElement, | |
g=d.getElementsByTagName('body')[0], | |
x=w.innerWidth||e.clientWidth||g.clientWidth, | |
y=w.innerHeight||e.clientHeight||g.clientHeight; |