diff options
author | xianny <xianny@gmail.com> | 2018-12-08 01:53:49 +0800 |
---|---|---|
committer | xianny <xianny@gmail.com> | 2018-12-08 01:53:49 +0800 |
commit | 2bea70a0a61a868bf951b46731ab5dea53c0aaec (patch) | |
tree | cefaaec15de8ef85bebb3a2f06490a38054d2fca /packages | |
parent | 41f90c697b0870ae3c3727c866241b25545f88ba (diff) | |
download | dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar.gz dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar.bz2 dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar.lz dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar.xz dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.tar.zst dexon-sol-tools-2bea70a0a61a868bf951b46731ab5dea53c0aaec.zip |
refresh rate limit every second instead of every minute
Diffstat (limited to 'packages')
-rw-r--r-- | packages/pipeline/src/data_sources/ohlcv_external/crypto_compare.ts | 6 |
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, }); } |