diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 687b6de2..98b3bb26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.17.1 - name: Setup configs diff --git a/package.json b/package.json index 9d392565..bc495cb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report", - "version": "4.10.1", + "version": "4.10.2", "description": "Reporting tool", "main": "worker.js", "license": "Apache-2.0", diff --git a/workers/loc.api/helpers/get-data-from-api.js b/workers/loc.api/helpers/get-data-from-api.js index 2db98412..86e83b7f 100644 --- a/workers/loc.api/helpers/get-data-from-api.js +++ b/workers/loc.api/helpers/get-data-from-api.js @@ -8,7 +8,8 @@ const { isRateLimitError, isNonceSmallError, isUserIsNotMerchantError, - isENetError + isENetError, + isAuthError } = require('./api-errors-testers') const _delay = (mc = 80000, interrupter) => { @@ -161,7 +162,10 @@ module.exports = ( // Handle unexpected BFX API errors countUnexpectedError += 1 - if (countUnexpectedError > 3) { + if ( + countUnexpectedError > 3 || + isAuthError(err) + ) { throw err } if (_isInterrupted(_interrupter)) { diff --git a/workers/loc.api/helpers/limit-param.helpers.js b/workers/loc.api/helpers/limit-param.helpers.js index 2f1a917e..642cf1bd 100644 --- a/workers/loc.api/helpers/limit-param.helpers.js +++ b/workers/loc.api/helpers/limit-param.helpers.js @@ -9,7 +9,7 @@ const getMethodLimit = (sendLimit, method, methodsLimits = {}) => { trades: { default: 500, max: 1000, innerMax: 2500 }, orderTrades: { default: 500, max: 1000, innerMax: 1000 }, fundingTrades: { default: 500, max: 1000, innerMax: 1000 }, - publicTrades: { default: 500, max: 5000, innerMax: 5000 }, + publicTrades: { default: 500, max: 5000, innerMax: 10000 }, orders: { default: 250, max: 500, innerMax: 2500 }, movements: { default: 25, max: 25, innerMax: 1000 }, fundingOfferHistory: { default: 100, max: 500, innerMax: 500 },