Skip to content

Commit

Permalink
feat: increase api response size limit (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
bayological authored Sep 13, 2024
1 parent c21e444 commit a3aa1fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -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
export OVERRIDE_ORACLE_COUNT=3
export API_KEYS=$(cat devApiKeys.txt)
export MID_AGGREGATION_MAX_EXCHANGE_VOLUME_SHARE=1
1 change: 1 addition & 0 deletions devApiKeys.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALPHAVANTAGE:1234567
2 changes: 1 addition & 1 deletion src/exchange_adapters/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/exchange_adapters/bittrex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a3aa1fb

Please sign in to comment.