This commit is contained in:
Vitor Pamplona 2024-12-24 12:17:19 -05:00 committed by GitHub
parent 47b83f3a6d
commit 5d039c1488
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

12
85.md
View File

@ -8,9 +8,9 @@ Asset Prices
This NIP defines event kinds to host asset prices.
## Latest price
## Latest Price
Kind `31892` stores the latest conversion price. The `d` tag contains the commonly used ticket conversion symbol.The `value` tag contains the amount, parseable to a Decimal.`n` tags separate the conversion ticker into the two ticket symbols.The event's `created_at` field MUST be used as the date/time of the conversion value.
Kind `31892` stores the latest conversion price. The `d` tag contains the commonly used ticket conversion symbol for the pair. The `value` tag contains the amount, parseable to a Decimal. `n` tags separate the pair into the two ticket symbols. The event's `created_at` field MUST be used as the date/time of the conversion value.
```js
{
@ -27,9 +27,9 @@ Kind `31892` stores the latest conversion price. The `d` tag contains the common
Since this is a replaceable event, only the latest price will be available.
## Historical data
## Historical Data
Historical prices can be found as `1892` events with the same structure as `31892`. Historical queries can use Nostr's `since` and `until` filter to narrow the search.
Historical prices can be found as `1892` events with the same structure as `31892`. Historical queries can then use Nostr's `since` and `until` filters to narrow the search.
```js
{
@ -48,7 +48,7 @@ Even though these events use the `d` tag, they are not replaceable.
## Declaring Pricing Providers
Kind `10041` lists the user's authorized providers for pricing services.. It contains `s` tags with the `pubkey` of the provider and the relay where those events are stored.
Kind 10041 lists the user's authorized providers for pricing services. It contains `s` tags with the provider's pubkey and the relay where those events are stored.
```js
{
@ -58,4 +58,4 @@ Kind `10041` lists the user's authorized providers for pricing services.. It con
],
//...
}
```
```