diff --git a/.changeset/rude-starfishes-sit.md b/.changeset/rude-starfishes-sit.md new file mode 100644 index 0000000000..63586554a2 --- /dev/null +++ b/.changeset/rude-starfishes-sit.md @@ -0,0 +1,5 @@ +--- +'@chainlink/mobula-state-adapter': patch +--- + +Update endpoint diff --git a/.changeset/sixty-pans-speak.md b/.changeset/sixty-pans-speak.md new file mode 100644 index 0000000000..fb70f0a5f2 --- /dev/null +++ b/.changeset/sixty-pans-speak.md @@ -0,0 +1,5 @@ +--- +'@chainlink/nav-consulting-adapter': patch +--- + +Update rate limiter diff --git a/packages/sources/mobula-state/src/config/index.ts b/packages/sources/mobula-state/src/config/index.ts index c7c303a546..43382fc69b 100644 --- a/packages/sources/mobula-state/src/config/index.ts +++ b/packages/sources/mobula-state/src/config/index.ts @@ -4,7 +4,7 @@ export const config = new AdapterConfig({ WS_API_ENDPOINT: { description: 'WS endpoint for Data Provider', type: 'string', - default: 'wss://feed.zobula.xyz', + default: 'wss://production-feed.mobula.io', }, API_KEY: { description: 'An API key for Data Provider', diff --git a/packages/sources/nav-consulting/src/config/index.ts b/packages/sources/nav-consulting/src/config/index.ts index f7e8277b03..f5cb74b902 100644 --- a/packages/sources/nav-consulting/src/config/index.ts +++ b/packages/sources/nav-consulting/src/config/index.ts @@ -1,16 +1,23 @@ import { AdapterConfig } from '@chainlink/external-adapter-framework/config' -export const config = new AdapterConfig({ - API_ENDPOINT: { - description: 'An API endpoint for Data Provider', - type: 'string', - default: 'https://api.navconsulting.net', - }, +export const config = new AdapterConfig( + { + API_ENDPOINT: { + description: 'An API endpoint for Data Provider', + type: 'string', + default: 'https://api.navconsulting.net', + }, - BACKGROUND_EXECUTE_MS: { - description: - 'The amount of time the background execute should sleep before performing the next request', - type: 'number', - default: 10_000, + BACKGROUND_EXECUTE_MS: { + description: + 'The amount of time the background execute should sleep before performing the next request', + type: 'number', + default: 10_000, + }, + }, + { + envDefaultOverrides: { + CACHE_MAX_AGE: 300_000, // Due to API limit of 2 request per minute + }, }, -}) +) diff --git a/packages/sources/nav-consulting/src/index.ts b/packages/sources/nav-consulting/src/index.ts index b650e4b0e5..f25d4a9fe3 100644 --- a/packages/sources/nav-consulting/src/index.ts +++ b/packages/sources/nav-consulting/src/index.ts @@ -11,8 +11,8 @@ export const adapter = new Adapter({ rateLimiting: { tiers: { default: { - rateLimit1m: 20, - note: 'Nothing in docs, setting reasonable rate limit based on 2req/bg execute', + rateLimit1m: 4, + note: '60/min in total shared by 30 EA instance, each EA can do 2 per min per API. Each call hits 2 API', }, }, },