add note for spot volume

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2021-11-12 16:25:53 +01:00
parent e3093f670d
commit b3e7e078b3
1 changed files with 4 additions and 2 deletions

View File

@ -219,7 +219,8 @@ class MarketsController implements Controller {
name: patchInternalMarketName(marketConfig.name),
baseCurrency: marketConfig.baseSymbol,
quoteCurrency: "USDC",
quoteVolume24h: volume,
// note: event-history-api doesn't index volume for spot
quoteVolume24h: volume !== 0 ? volume : undefined,
change1h,
change24h,
changeBod,
@ -236,7 +237,8 @@ class MarketsController implements Controller {
priceIncrement: tickSize,
sizeIncrement: minOrderSize,
restricted: undefined,
volumeUsd24h: volume,
// note: event-history-api doesn't index volume for spot
volumeUsd24h: volume !== 0 ? volume : undefined,
} as MarketDto;
}