diff --git a/apps/trading-e2e/src/integration/market-info.cy.ts b/apps/trading-e2e/src/integration/market-info.cy.ts index 5a38d2ea9..70267a74b 100644 --- a/apps/trading-e2e/src/integration/market-info.cy.ts +++ b/apps/trading-e2e/src/integration/market-info.cy.ts @@ -87,13 +87,6 @@ describe('market info is displayed', { tags: '@smoke' }, () => { validateMarketDataRow(4, 'Sector', 'crypto'); }); - it('risk factors displayed', () => { - cy.getByTestId(marketTitle).contains('Risk factors').click(); - - validateMarketDataRow(0, 'Short', '0.008571790367285281'); - validateMarketDataRow(1, 'Long', '0.008508132993273576'); - }); - it('risk model displayed', () => { cy.getByTestId(marketTitle).contains('Risk model').click(); @@ -102,6 +95,21 @@ describe('market info is displayed', { tags: '@smoke' }, () => { validateMarketDataRow(2, 'Risk Aversion Parameter', '0.01'); }); + it('risk parameters displayed', () => { + cy.getByTestId(marketTitle).contains('Risk parameters').click(); + + validateMarketDataRow(0, 'Typename', 'LogNormalModelParams'); + validateMarketDataRow(1, 'R', '0.016'); + validateMarketDataRow(2, 'Sigma', '0.3'); + }); + + it('risk factors displayed', () => { + cy.getByTestId(marketTitle).contains('Risk factors').click(); + + validateMarketDataRow(0, 'Short', '0.008571790367285281'); + validateMarketDataRow(1, 'Long', '0.008508132993273576'); + }); + it('price monitoring trigger displayed', () => { cy.getByTestId(marketTitle).contains('Price monitoring trigger 1').click(); diff --git a/libs/market-info/src/components/market-info/info-market.tsx b/libs/market-info/src/components/market-info/info-market.tsx index 97f632858..a7434e516 100644 --- a/libs/market-info/src/components/market-info/info-market.tsx +++ b/libs/market-info/src/components/market-info/info-market.tsx @@ -230,16 +230,6 @@ export const Info = ({ market, onSelect }: InfoProps) => { /> ), }, - { - title: t('Risk factors'), - content: ( - - ), - }, { title: t('Risk model'), content: ( @@ -250,6 +240,26 @@ export const Info = ({ market, onSelect }: InfoProps) => { /> ), }, + { + title: t('Risk parameters'), + content: ( + + ), + }, + { + title: t('Risk factors'), + content: ( + + ), + }, ...(market.priceMonitoringSettings?.parameters?.triggers || []).map( (trigger, i) => ({ title: t(`Price monitoring trigger ${i + 1}`),