Skip to content

Commit

Permalink
Update user agent (#3602)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxiao-cll authored Dec 4, 2024
1 parent f9a4dc2 commit e4586c1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-fishes-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/bx-digital-adapter': patch
---

Update user agent
6 changes: 6 additions & 0 deletions packages/sources/bx-digital/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ export const config = new AdapterConfig({
type: 'string',
default: 'https://dev-cdf-stage-k8s.bxdigital.ch/securities',
},
API_USER_AGENT: {
description: 'User agent used to query API',
type: 'string',
default:
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36',
},
})
1 change: 1 addition & 0 deletions packages/sources/bx-digital/src/transport/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const httpTransport = new HttpTransport<HttpTransportTypes>({
baseURL: config.API_ENDPOINT,
headers: {
'API-key': config.API_KEY,
'User-Agent': config.API_USER_AGENT,
},
},
}
Expand Down

0 comments on commit e4586c1

Please sign in to comment.