We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0d3284 commit f4ebe61Copy full SHA for f4ebe61
src/services/stock.ts
@@ -161,7 +161,7 @@ export async function getStockData(symbol: string): Promise<string> {
161
162
let text = `${quote?.name}: ${quote.current} (${isGrowing ? '📈' : '📉'}${quote.percent.toFixed(2)}%)`
163
// 盘前数据
164
- if (quote.current_ext && quote.current !== quote.current_ext && market.status_id !== 5) {
+ if (quote.current_ext && quote.percent_ext && quote.current !== quote.current_ext && market.status_id !== 5) {
165
const isGrowing = quote.percent_ext > 0
166
let extText = `盘前交易:${quote.current_ext} (${isGrowing ? '📈' : '📉'}${quote.percent_ext.toFixed(2)}%)`
167
text = `${text}\n${extText}`
0 commit comments