Skip to content

Commit e9fed63

Browse files
mmcallister-cllmxiao-cllapp-token-issuer-data-feeds[bot]
authored
Update/DF-20817 bitgo anchorage cbp rate limits (#3592)
* DF-20817 update sensible rate limits for anchorage, bitgo, and coinbase-prime well under their max API limits * add changeset * Wait in-between soak test * remove soak test update --------- Co-authored-by: Michael Xiao <[email protected]> Co-authored-by: app-token-issuer-data-feeds[bot] <134377064+app-token-issuer-data-feeds[bot]@users.noreply.github.com>
1 parent b7bd1ca commit e9fed63

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

.changeset/witty-bananas-tease.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@chainlink/coinbase-prime-adapter': patch
3+
'@chainlink/anchorage-adapter': patch
4+
'@chainlink/bitgo-adapter': patch
5+
---
6+
7+
Update default rate limit

packages/sources/anchorage/src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ export const adapter = new PoRAdapter({
88
name: 'ANCHORAGE',
99
config,
1010
endpoints: [wallet],
11+
rateLimiting: {
12+
tiers: {
13+
default: {
14+
rateLimit1m: 30,
15+
note: 'Docs: 10 requests per second per Organization, bursts of up to 100 requests per second',
16+
},
17+
},
18+
},
1119
})
1220

1321
export const server = (): Promise<ServerInstance | undefined> => expose(adapter)

packages/sources/bitgo/src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ export const adapter = new PoRAdapter({
88
name: 'BITGO',
99
config,
1010
endpoints: [wallet],
11+
rateLimiting: {
12+
tiers: {
13+
default: {
14+
rateLimit1m: 30,
15+
note: 'Docs: 360 requests per minute per auth',
16+
},
17+
},
18+
},
1119
})
1220

1321
export const server = (): Promise<ServerInstance | undefined> => expose(adapter)

packages/sources/coinbase-prime/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const adapter = new PoRAdapter({
1111
rateLimiting: {
1212
tiers: {
1313
default: {
14-
rateLimit1s: 25,
14+
rateLimit1s: 5,
1515
note: 'Using the most restrictive rate limit. Docs: IP address at 100 requests per second (rps). Portfolio ID at 25 rps with a burst of 50 rps.',
1616
},
1717
},

0 commit comments

Comments
 (0)