Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: increase api response size limit #266

Merged
merged 3 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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