diff --git a/.changeset/nasty-bears-hammer.md b/.changeset/nasty-bears-hammer.md new file mode 100644 index 0000000000..f25d10672e --- /dev/null +++ b/.changeset/nasty-bears-hammer.md @@ -0,0 +1,5 @@ +--- +'@chainlink/tradinghours-adapter': patch +--- + +Amend Tradinghours forex symbol diff --git a/packages/sources/tradinghours/src/transport/market-status.ts b/packages/sources/tradinghours/src/transport/market-status.ts index 2b5dc07136..180672474c 100644 --- a/packages/sources/tradinghours/src/transport/market-status.ts +++ b/packages/sources/tradinghours/src/transport/market-status.ts @@ -9,7 +9,7 @@ export const markets = ['forex', 'metals', 'wti'] as const export type Market = (typeof markets)[number] const marketToFinId: Record = { - forex: 'US.CBOE.FX', + forex: 'US.CHNLNK.FX', metals: 'US.CHNLNK.METAL', wti: 'US.CHNLNK.WTI', } diff --git a/packages/sources/tradinghours/test/integration/fixtures.ts b/packages/sources/tradinghours/test/integration/fixtures.ts index 7ab3e977c6..8e183d6ebd 100644 --- a/packages/sources/tradinghours/test/integration/fixtures.ts +++ b/packages/sources/tradinghours/test/integration/fixtures.ts @@ -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', @@ -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',