(amount: number, cryptoAmount: number, price: number, cryptoSymbol: string, fiatSymbol: string, lastUpdated: Date)
| 594 | `💎 <b>当前汇率:</b> ${codeTag(`1 ${cryptoSymbol} = ${this.formatPrice(price)} ${fiatSymbol}`)}\n` + |
| 595 | `⏰ <b>数据更新:</b> ${lastUpdated.toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' })}`; |
| 596 | } |
| 597 | |
| 598 | private buildCryptoToFiatResponse(amount: number, totalValue: number, price: number, cryptoSymbol: string, fiatSymbol: string, lastUpdated: Date): string { |
| 599 | return `💱 <b>汇率</b>\n\n` + |
| 600 | `${codeTag(`${this.formatAmount(amount)} ${cryptoSymbol} ≈`)}\n` + |
| 601 | `${codeTag(`${this.formatAmount(totalValue)} ${fiatSymbol}`)}\n\n` + |
| 602 | `💎 <b>当前汇率:</b> ${codeTag(`1 ${cryptoSymbol} = ${this.formatPrice(price)} ${fiatSymbol}`)}\n` + |
| 603 | `⏰ <b>数据更新:</b> ${lastUpdated.toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' })}`; |
| 604 | } |
| 605 |
no test coverage detected