From 895195253e844b384fe8fa06bf1fa9ba4516f1f3 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Thu, 6 Oct 2022 10:53:51 +0200 Subject: [PATCH] Update the price schema --- pyth-sdk-cw/schema/price_feed_response.json | 35 +++++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/pyth-sdk-cw/schema/price_feed_response.json b/pyth-sdk-cw/schema/price_feed_response.json index 730ecdb..f7df932 100644 --- a/pyth-sdk-cw/schema/price_feed_response.json +++ b/pyth-sdk-cw/schema/price_feed_response.json @@ -118,12 +118,35 @@ }, "PriceStatus": { "description": "Represents availability status of a price feed.", - "type": "string", - "enum": [ - "Unknown", - "Trading", - "Halted", - "Auction" + "oneOf": [ + { + "description": "The price feed is not currently updating for an unknown reason.", + "type": "string", + "enum": [ + "Unknown" + ] + }, + { + "description": "The price feed is updating as expected.", + "type": "string", + "enum": [ + "Trading" + ] + }, + { + "description": "The price feed is not currently updating because trading in the product has been halted.", + "type": "string", + "enum": [ + "Halted" + ] + }, + { + "description": "The price feed is not currently updating because an auction is setting the price.", + "type": "string", + "enum": [ + "Auction" + ] + } ] } }