aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline
diff options
context:
space:
mode:
authorxianny <xianny@gmail.com>2018-12-08 01:53:49 +0800
committerxianny <xianny@gmail.com>2018-12-08 01:53:49 +0800
commit2bea70a0a61a868bf951b46731ab5dea53c0aaec (patch)
treecefaaec15de8ef85bebb3a2f06490a38054d2fca /packages/pipeline
parent41f90c697b0870ae3c3727c866241b25545f88ba (diff)
downloaddexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar.gz
dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar.zst
dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.zip
refresh rate limit every second instead of every minute
Diffstat (limited to 'packages/pipeline')
-rw-r--r--packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts b/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts
index 0cfec4ef5..29cef65b0 100644
--- a/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts
+++ b/packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts
@@ -52,9 +52,9 @@ export class CryptoCompareOHLCVSource {
constructor(maxReqsPerSecond: number) {
this._limiter = new Bottleneck({
minTime: ONE_SECOND / maxReqsPerSecond,
- reservoir: 2000,
- reservoirRefreshAmount: 2000,
- reservoirRefreshInterval: ONE_MINUTE,
+ reservoir: 30,
+ reservoirRefreshAmount: 30,
+ reservoirRefreshInterval: ONE_SECOND,
});
}