Skip to content

Commit 37604d2

Browse files
authored
Update the price schema (#76)
1 parent 6f4a4c0 commit 37604d2

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

pyth-sdk-cw/schema/price_feed_response.json

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,35 @@
118118
},
119119
"PriceStatus": {
120120
"description": "Represents availability status of a price feed.",
121-
"type": "string",
122-
"enum": [
123-
"Unknown",
124-
"Trading",
125-
"Halted",
126-
"Auction"
121+
"oneOf": [
122+
{
123+
"description": "The price feed is not currently updating for an unknown reason.",
124+
"type": "string",
125+
"enum": [
126+
"Unknown"
127+
]
128+
},
129+
{
130+
"description": "The price feed is updating as expected.",
131+
"type": "string",
132+
"enum": [
133+
"Trading"
134+
]
135+
},
136+
{
137+
"description": "The price feed is not currently updating because trading in the product has been halted.",
138+
"type": "string",
139+
"enum": [
140+
"Halted"
141+
]
142+
},
143+
{
144+
"description": "The price feed is not currently updating because an auction is setting the price.",
145+
"type": "string",
146+
"enum": [
147+
"Auction"
148+
]
149+
}
127150
]
128151
}
129152
}

0 commit comments

Comments
 (0)