I hereby claim:
- I am cryptoscopia on github.
- I am cryptoscopia (https://keybase.io/cryptoscopia) on keybase.
- I have a public key ASBGZs2T8s_oxzwUgg_oECOFm8Ypt4WPTKdNlrmRbShKywo
To claim this, I am signing this object:
// SPDX-License-Identifier: AGPL-3.0-or-later | |
// The ABI encoder is necessary, but older Solidity versions should work | |
pragma solidity ^0.7.0; | |
pragma experimental ABIEncoderV2; | |
// These definitions are taken from across multiple dydx contracts, and are | |
// limited to just the bare minimum necessary to make flash loans work. | |
library Types { | |
enum AssetDenomination { Wei, Par } |
from __future__ import print_function | |
import requests | |
data = [] | |
timestamp = 1530367200 # 2018-07-01 00:00 AEST | |
for t in range(1530367200, 1530367200-365*24*60*60, -2001*60*60): | |
data = requests.get( | |
'https://min-api.cryptocompare.com/data/histohour?fsym=BTC&tsym=AUD&toTs=%s&limit=%s' \ | |
% (t, min(365*24-len(data), 2000)) | |
).json()['Data'] + data |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
from __future__ import print_function | |
import argparse | |
from collections import OrderedDict | |
from datetime import datetime, timedelta | |
from decimal import Decimal | |
import json | |
parser = argparse.ArgumentParser() |
#!/usr/bin/env python | |
from __future__ import print_function | |
import argparse | |
from collections import OrderedDict | |
import csv | |
from datetime import datetime, timedelta | |
from decimal import Decimal | |
parser = argparse.ArgumentParser() |