Skip to content

Commit

Permalink
Update/DF-20817 bitgo anchorage cbp rate limits (#3592)
Browse files Browse the repository at this point in the history
* 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 <michael.xiao@smartcontract.com>
Co-authored-by: app-token-issuer-data-feeds[bot] <134377064+app-token-issuer-data-feeds[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 29, 2024
1 parent b7bd1ca commit e9fed63
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/witty-bananas-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@chainlink/coinbase-prime-adapter': patch
'@chainlink/anchorage-adapter': patch
'@chainlink/bitgo-adapter': patch
---

Update default rate limit
8 changes: 8 additions & 0 deletions packages/sources/anchorage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ export const adapter = new PoRAdapter({
name: 'ANCHORAGE',
config,
endpoints: [wallet],
rateLimiting: {
tiers: {
default: {
rateLimit1m: 30,
note: 'Docs: 10 requests per second per Organization, bursts of up to 100 requests per second',
},
},
},
})

export const server = (): Promise<ServerInstance | undefined> => expose(adapter)
Expand Down
8 changes: 8 additions & 0 deletions packages/sources/bitgo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ export const adapter = new PoRAdapter({
name: 'BITGO',
config,
endpoints: [wallet],
rateLimiting: {
tiers: {
default: {
rateLimit1m: 30,
note: 'Docs: 360 requests per minute per auth',
},
},
},
})

export const server = (): Promise<ServerInstance | undefined> => expose(adapter)
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/coinbase-prime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const adapter = new PoRAdapter({
rateLimiting: {
tiers: {
default: {
rateLimit1s: 25,
rateLimit1s: 5,
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.',
},
},
Expand Down

0 comments on commit e9fed63

Please sign in to comment.