This file contains 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, 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 |
This file contains 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
-- sqlite | |
CREATE TABLE IF NOT EXISTS calendar ( | |
d date UNIQUE NOT NULL, | |
dayofweek INT NOT NULL, | |
weekday TEXT NOT NULL, | |
quarter INT NOT NULL, | |
year INT NOT NULL, | |
month INT NOT NULL, | |
day INT NOT NULL | |
); |