File tree Expand file tree Collapse file tree 5 files changed +26
-1
lines changed Expand file tree Collapse file tree 5 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,23 @@ export const getPrice = readApi<"id">({
5
5
name : "getPrice" ,
6
6
summary : "Get the **latest** price object for the requested price feed ID." ,
7
7
description : `
8
+ This method returns the latest price object for the requested price feed ID.
9
+
10
+ The \`Price\` object contains the following fields:
11
+ 1. \`price\`: The price of the asset.
12
+ 2. \`conf\`: The confidence level of the price.
13
+ 3. \`expo\`: The exponent of the price.
14
+ 4. \`publishTime\`: The timestamp of the price update.
15
+
16
+ Sample \`Price\` object:
17
+ \`\`\`json
18
+ {
19
+ "price": "1234",
20
+ "conf": "1000",
21
+ "expo": "-2",
22
+ "publishTime": 1626892800
23
+ }
24
+ \`\`\`
8
25
Get the latest price and confidence interval for the requested price feed id.
9
26
The price feed id is a 32-byte id written as a hexadecimal string; see the
10
27
[price feed ids](https://pyth.network/developers/price-feed-ids) page to look up
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ export const InlineCode = ({
13
13
{ ...props }
14
14
/>
15
15
) ;
16
+
Original file line number Diff line number Diff line change
1
+ import { Styled } from "../Styled" ;
2
+
3
+ export const NumberedList = Styled ( "ol" , "list-decimal list-inside mb-6 last:mb-0" ) ;
4
+ export const BulletList = Styled ( "ul" , "list-disc list-inside mb-6 last:mb-0" ) ;
Original file line number Diff line number Diff line change 1
1
import { Styled } from "../Styled" ;
2
2
3
- export const Paragraph = Styled ( "p" , "mb-6 last:mb-0" ) ;
3
+ export const Paragraph = Styled ( "p" , "mb-6 last:mb-0" ) ;
Original file line number Diff line number Diff line change @@ -2,11 +2,14 @@ import { InlineCode } from "./components/InlineCode";
2
2
import { InlineLink } from "./components/InlineLink" ;
3
3
import { Paragraph } from "./components/Paragraph" ;
4
4
import { Styled } from "./components/Styled" ;
5
+ import { NumberedList , BulletList } from "./components/List" ;
5
6
6
7
export const MARKDOWN_COMPONENTS = {
7
8
h1 : Styled ( "h1" , "mb-8 text-4xl font-medium" ) ,
8
9
p : Paragraph ,
9
10
a : InlineLink ,
10
11
code : InlineCode ,
11
12
strong : Styled ( "strong" , "font-semibold" ) ,
13
+ ul : BulletList ,
14
+ ol : NumberedList ,
12
15
} ;
You can’t perform that action at this time.
0 commit comments