Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit a3aa1fb

Browse files
authored
feat: increase api response size limit (#266)
1 parent c21e444 commit a3aa1fb

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.env.dev

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ export HTTP_RPC_PROVIDER_URL=https://forno.celo.org
33
export WS_RPC_PROVIDER_URL=wss://forno.celo.org/ws
44
export PRICE_SOURCES=$(cat devPriceSourcesConfig.txt)
55
export OVERRIDE_INDEX=1
6-
export OVERRIDE_ORACLE_COUNT=3
6+
export OVERRIDE_ORACLE_COUNT=3
7+
export API_KEYS=$(cat devApiKeys.txt)
8+
export MID_AGGREGATION_MAX_EXCHANGE_VOLUME_SHARE=1

devApiKeys.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALPHAVANTAGE:1234567

src/exchange_adapters/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export abstract class BaseExchangeAdapter {
235235
agent: this.httpsAgent,
236236
follow: 20, // redirect limit
237237
// max body size in bytes - usually < 10 KB, except for Binance exchangeInfo endpoint which is ~1.4MB
238-
size: megabytesToBytes(8),
238+
size: megabytesToBytes(16),
239239
timeout: this.config.apiRequestTimeout, // resets on redirect
240240
})
241241
} catch (err) {

src/exchange_adapters/bittrex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class BittrexAdapter extends BaseExchangeAdapter {
77
readonly _exchangeName = Exchange.BITTREX
88
// Google Trust Services LLC - validity not after: 30/09/2027, 03:00:42 EEST
99
readonly _certFingerprint256 =
10-
'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'
10+
'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'
1111

1212
private static readonly tokenSymbolMap = BittrexAdapter.standardTokenSymbolMap
1313

0 commit comments

Comments
 (0)