Skip to content

Instantly share code, notes, and snippets.

@tshanky
tshanky / leverj_websocket_util.py
Created April 21, 2021 21:58
Leverj WebSocket Utility Methods
import json
import time
from leverj.util import bytes_to_hexstring, round_with_precision, sign, to_vrs
def credentials(apikey_file):
with open(apikey_file) as json_apikey_file:
config_data = json.load(json_apikey_file)
print(f'config_data: {config_data}')