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
class STFWriter: | |
def __init__(self): | |
self.b = bytearray() | |
self.row_count = None | |
self.character_count = None | |
self.fname = None | |
def parse_bytes(self, value, num_bytes=None): |
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): |
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 io | |
import numpy as np | |
import json | |
from os import walk, path, chdir | |
from pathlib import Path | |
class STFReader: | |
def __init__(self): | |
self.buffer = None | |
self.value_array = {} |