From 874ed387ff55905ffec5dca4b14638e03441b3b3 Mon Sep 17 00:00:00 2001 From: Bayological <6872903+bayological@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:25:48 -0500 Subject: [PATCH 1/3] chore: increase max body size for API requests to 16MB --- src/exchange_adapters/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exchange_adapters/base.ts b/src/exchange_adapters/base.ts index 3c31d1ae..39b72c4a 100644 --- a/src/exchange_adapters/base.ts +++ b/src/exchange_adapters/base.ts @@ -235,7 +235,7 @@ export abstract class BaseExchangeAdapter { agent: this.httpsAgent, follow: 20, // redirect limit // max body size in bytes - usually < 10 KB, except for Binance exchangeInfo endpoint which is ~1.4MB - size: megabytesToBytes(8), + size: megabytesToBytes(16), timeout: this.config.apiRequestTimeout, // resets on redirect }) } catch (err) { From 1a352715aa91b13e4959292ba99cca6356f89317 Mon Sep 17 00:00:00 2001 From: Bayological <6872903+bayological@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:26:58 -0500 Subject: [PATCH 2/3] chore: update dev config --- .env.dev | 4 +++- devApiKeys.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 devApiKeys.txt diff --git a/.env.dev b/.env.dev index 2fb2085f..301778a2 100644 --- a/.env.dev +++ b/.env.dev @@ -3,4 +3,6 @@ export HTTP_RPC_PROVIDER_URL=https://forno.celo.org export WS_RPC_PROVIDER_URL=wss://forno.celo.org/ws export PRICE_SOURCES=$(cat devPriceSourcesConfig.txt) export OVERRIDE_INDEX=1 -export OVERRIDE_ORACLE_COUNT=3 \ No newline at end of file +export OVERRIDE_ORACLE_COUNT=3 +export API_KEYS=$(cat devApiKeys.txt) +export MID_AGGREGATION_MAX_EXCHANGE_VOLUME_SHARE=1 \ No newline at end of file diff --git a/devApiKeys.txt b/devApiKeys.txt new file mode 100644 index 00000000..f5feae96 --- /dev/null +++ b/devApiKeys.txt @@ -0,0 +1 @@ +ALPHAVANTAGE:1234567 \ No newline at end of file From 17267f23581d2e55b034eb75459d227aa8a32080 Mon Sep 17 00:00:00 2001 From: Bayological <6872903+bayological@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:31:22 -0500 Subject: [PATCH 3/3] chore: update bittrex cert --- src/exchange_adapters/bittrex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exchange_adapters/bittrex.ts b/src/exchange_adapters/bittrex.ts index e93823e1..421d81db 100644 --- a/src/exchange_adapters/bittrex.ts +++ b/src/exchange_adapters/bittrex.ts @@ -7,7 +7,7 @@ export class BittrexAdapter extends BaseExchangeAdapter { readonly _exchangeName = Exchange.BITTREX // Google Trust Services LLC - validity not after: 30/09/2027, 03:00:42 EEST readonly _certFingerprint256 = - '97:D4:20:03:E1:32:55:29:46:09:7F:20:EF:95:5F:5B:1C:D5:70:AA:43:72:D7:80:03:3A:65:EF:BE:69:75:8D' + '16:37:4D:25:0F:40:9A:75:C3:99:05:C3:3E:9F:FF:7D:6D:2C:5E:88:37:79:58:BC:51:7C:97:44:16:96:F4:E0' private static readonly tokenSymbolMap = BittrexAdapter.standardTokenSymbolMap