aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/utils/index.ts
diff options
context:
space:
mode:
authorXianny <8582774+xianny@users.noreply.github.com>2018-12-05 05:36:18 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:06:34 +0800
commit6f5787b2c43957c1c5db5a6123399e8baeb0ed78 (patch)
tree811b4c2269f716262d1263bf53d0e51d5a8a82a7 /packages/pipeline/src/utils/index.ts
parentf96711bac373ac7caaca647defd68d91ba43a181 (diff)
downloaddexon-0x-contracts-6f5787b2c43957c1c5db5a6123399e8baeb0ed78.tar.gz
dexon-0x-contracts-6f5787b2c43957c1c5db5a6123399e8baeb0ed78.tar.zst
dexon-0x-contracts-6f5787b2c43957c1c5db5a6123399e8baeb0ed78.zip
pull OHLCV records from Crypto Compare (#1349)
* [WIP] pull OHLCV records from Crypto Compare * lint * refactor to pull logic out of script and into modules * add entity test for ohlcv_external entity * implement rate limit and chronological backfill for ohlcv * add unit tests; cleanup variable names * Fetch OHLCV pairs params from events table * better method names * fix outdated test * lint * Clean up after review * oops * fix failing test * better filtering of most recent records * fix bug when generating pairs * fix default earliest backfill date * fix bug with retrieving backfill time * prettier
Diffstat (limited to 'packages/pipeline/src/utils/index.ts')
-rw-r--r--packages/pipeline/src/utils/index.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/packages/pipeline/src/utils/index.ts b/packages/pipeline/src/utils/index.ts
index 918cfc695..718ea6133 100644
--- a/packages/pipeline/src/utils/index.ts
+++ b/packages/pipeline/src/utils/index.ts
@@ -35,12 +35,3 @@ export function handleError(e: any): void {
}
process.exit(1);
}
-
-/**
- * Returns the unix timestamp of the current hour
- */
-export function getHourInUnixTime(): number {
- const currentTime: number = Date.now();
- // tslint:disable-next-line
- return currentTime - currentTime % (3600 * 1000);
-}