Skip to content

Commit 5e18340

Browse files
authored
Add market session docs for pro (#3256)
1 parent 1158132 commit 5e18340

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

apps/developer-hub/content/docs/price-feeds/pro/payload-reference.mdx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ Here's what a typical StreamUpdated response that contains a PriceFeed looks lik
7171
"bestAskPrice": "11224513591935",
7272
"publisherCount": 9,
7373
"exponent": -8,
74-
"confidence": 1373488286
74+
"confidence": 1373488286,
75+
"marketSession": "regular"
7576
},
7677
{
7778
"priceFeedId": 2,
@@ -80,7 +81,8 @@ Here's what a typical StreamUpdated response that contains a PriceFeed looks lik
8081
"bestAskPrice": "448508987987",
8182
"publisherCount": 12,
8283
"exponent": -8,
83-
"confidence": 106965585
84+
"confidence": 106965585,
85+
"marketSession": "regular"
8486
}
8587
]
8688
},
@@ -154,6 +156,15 @@ Confidence interval representing price uncertainty
154156
- **Invariants**: Positive when present
155157
- **Usage**: Risk management and price quality assessment
156158

159+
#### Market Session - `marketSession`
160+
161+
Represents the trading session status during which the price update was produced.
162+
This helps consumers understand whether a price comes from active trading hours or a more illiquid session such as pre-market or overnight trading.
163+
164+
- **Type**: `string`
165+
- **Possible Values**: `regular`, `preMarket`, `postMarket`, `overNight`, `closed`
166+
- **Availability**: Only included if requested in subscription properties
167+
157168
### Market Depth Properties
158169

159170
#### Highest Market Bid - `best_bid_price`
@@ -209,6 +220,7 @@ Based on the [API documentation](https://pyth-lazer.dourolabs.app/docs), you can
209220

210221
- `publisherCount` - Number of contributing data publishers
211222
- `exponent` - Decimal exponent for proper price representation
223+
- `marketSession` - Indicates the market session during which the price update was produced.
212224

213225
### Spot Trading Properties
214226

0 commit comments

Comments
 (0)