Skip to content

Commit

Permalink
Amend Tradinghours forex symbol (#3430)
Browse files Browse the repository at this point in the history
* Amend Tradinghours forex symbol

Closes https://smartcontract-it.atlassian.net/browse/MERC-6295

* Add changeset

* Fix integration tests

---------

Co-authored-by: Martin Liu <martin.liu@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 committed Sep 17, 2024
1 parent ce161ea commit d9f885b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-bears-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/tradinghours-adapter': patch
---

Amend Tradinghours forex symbol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const markets = ['forex', 'metals', 'wti'] as const
export type Market = (typeof markets)[number]

const marketToFinId: Record<Market, string> = {
forex: 'US.CBOE.FX',
forex: 'US.CHNLNK.FX',
metals: 'US.CHNLNK.METAL',
wti: 'US.CHNLNK.WTI',
}
Expand Down
14 changes: 7 additions & 7 deletions packages/sources/tradinghours/test/integration/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ export const mockResponseSuccess = (): nock.Scope =>
})
.persist()
.get('/v3/markets/status')
.query({ fin_id: 'US.CBOE.FX' })
.query({ fin_id: 'US.CHNLNK.FX' })
.reply(
200,
{
data: {
'US.CBOE.FX': {
'US.CHNLNK.FX': {
fin_id: 'US.CBOE.FX',
exchange: 'CHNLNK',
market: 'FX',
products: 'CBOE FX',
products: 'CHNLNK FX',
status: 'Open',
reason: 'Primary Trading Session',
timezone: 'America/New_York',
Expand All @@ -36,16 +36,16 @@ export const mockResponseSuccess = (): nock.Scope =>
)
.persist()
.get('/v3/markets/status')
.query({ fin_id: 'US.CBOE.FX,US.CHNLNK.METAL' })
.query({ fin_id: 'US.CHNLNK.FX,US.CHNLNK.METAL' })
.reply(
200,
{
data: {
'US.CBOE.FX': {
fin_id: 'US.CBOE.FX',
'US.CHNLNK.FX': {
fin_id: 'US.CHNLNK.FX',
exchange: 'CHNLNK',
market: 'FX',
products: 'CBOE FX',
products: 'CHNLNK FX',
status: 'Open',
reason: 'Primary Trading Session',
timezone: 'America/New_York',
Expand Down

0 comments on commit d9f885b

Please sign in to comment.