Skip to content

@keymaster/connect / PriceValue

Interface: PriceValue ​

展示用 BSV 价格:金额 + 单位。

设计缘由:单位随 Keymaster 价格设置里选择的交易对变化(如 USDT / CNY)。

Properties overview ​

PropertyTypeRequiredDescription
amountstringYes十进制金额字符串,例如 "45.12";未就绪时为 "0"。
unitstringYes计价单位,例如 "USDT";未就绪时仍给出当前配置推导出的单位。
updatedAtMsnumberYes行情快照生成的 Unix 毫秒时间;未就绪时为 0。

Properties ​

amount ​

amount: string

十进制金额字符串,例如 "45.12";未就绪时为 "0"。


unit ​

unit: string

计价单位,例如 "USDT";未就绪时仍给出当前配置推导出的单位。


updatedAtMs ​

updatedAtMs: number

行情快照生成的 Unix 毫秒时间;未就绪时为 0。

使用能力,不托管私钥。