parent
7c8a54b35a
commit
d823daeea4
@ -55,6 +55,9 @@ describe('market info is displayed', { tags: '@smoke' }, () => {
|
||||
'Trading Mode',
|
||||
MarketTradingModeMapping.TRADING_MODE_CONTINUOUS
|
||||
);
|
||||
validateMarketDataRow(3, 'Market Decimal Places', '5');
|
||||
validateMarketDataRow(4, 'Position Decimal Places', '0');
|
||||
validateMarketDataRow(5, 'Settlement Asset Decimal Places', '5');
|
||||
});
|
||||
|
||||
it('instrument displayed', () => {
|
||||
|
@ -197,6 +197,11 @@ export const Info = ({ market, onSelect }: InfoProps) => {
|
||||
tradingMode:
|
||||
keyDetails.tradingMode &&
|
||||
MarketTradingModeMapping[keyDetails.tradingMode],
|
||||
marketDecimalPlaces: market.decimalPlaces,
|
||||
positionDecimalPlaces: market.positionDecimalPlaces,
|
||||
settlementAssetDecimalPlaces:
|
||||
market.tradableInstrument.instrument.product.settlementAsset
|
||||
.decimals,
|
||||
}}
|
||||
/>
|
||||
),
|
||||
|
@ -34,7 +34,7 @@ export const tooltipMapping: Record<string, ReactNode> = {
|
||||
bestStaticOfferVolume: t(
|
||||
'The aggregated volume being offered at the best static offer price on the market.'
|
||||
),
|
||||
|
||||
marketDecimalPlaces: t('The smallest price increment on the book.'),
|
||||
decimalPlaces: t('The smallest price increment on the book.'),
|
||||
positionDecimalPlaces: t(
|
||||
'How big the smallest order / position on the market can be.'
|
||||
|
Loading…
Reference in New Issue
Block a user