Appearance
@keymaster/connect / PriceValue
Interface: PriceValue
展示用 BSV 价格:金额 + 单位。
设计缘由:单位随 Keymaster 价格设置里选择的交易对变化(如 USDT / CNY)。
Properties overview
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | 十进制金额字符串,例如 "45.12";未就绪时为 "0"。 |
unit | string | Yes | 计价单位,例如 "USDT";未就绪时仍给出当前配置推导出的单位。 |
updatedAtMs | number | Yes | 行情快照生成的 Unix 毫秒时间;未就绪时为 0。 |
Properties
amount
amount:
string
十进制金额字符串,例如 "45.12";未就绪时为 "0"。
unit
unit:
string
计价单位,例如 "USDT";未就绪时仍给出当前配置推导出的单位。
updatedAtMs
updatedAtMs:
number
行情快照生成的 Unix 毫秒时间;未就绪时为 0。