diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-13 07:32:41 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-12-13 07:32:41 +0800 |
commit | 1534505652aa12a385dee46f876c22cc4ce8621a (patch) | |
tree | d6cf228c7a077fa43a440d23034211f305645bdb /packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts | |
parent | a1186f052d7cff755f3076275b1d88735610b77f (diff) | |
download | dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.gz dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.bz2 dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.lz dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.xz dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.tar.zst dexon-sol-tools-1534505652aa12a385dee46f876c22cc4ce8621a.zip |
Fix linter errors
Diffstat (limited to 'packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts')
-rw-r--r-- | packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts b/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts index bae1fbede..34345f355 100644 --- a/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts +++ b/packages/pipeline/src/scripts/pull_paradex_orderbook_snapshots.ts @@ -29,7 +29,7 @@ let connection: Connection; const tokenInfoResponse = await paradexSource.getTokenInfoAsync(); const extendedMarkets = addTokenAddresses(markets, tokenInfoResponse); await Promise.all( - extendedMarkets.map(async (market: ParadexMarket) => getAndSaveMarketOrderbook(paradexSource, market)), + extendedMarkets.map(async (market: ParadexMarket) => getAndSaveMarketOrderbookAsync(paradexSource, market)), ); process.exit(0); })().catch(handleError); @@ -70,7 +70,7 @@ function addTokenAddresses( * @param paradexSource Data source which can query the Paradex API. * @param market Object from the Paradex API with information about the market in question. */ -async function getAndSaveMarketOrderbook(paradexSource: ParadexSource, market: ParadexMarket): Promise<void> { +async function getAndSaveMarketOrderbookAsync(paradexSource: ParadexSource, market: ParadexMarket): Promise<void> { const paradexOrderbookResponse = await paradexSource.getMarketOrderbookAsync(market.symbol); const observedTimestamp = Date.now(); |