Skip to content

Commit be41e06

Browse files
committed
update tables
1 parent 33d8217 commit be41e06

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

src/content/data-streams/market-hours.mdx

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ Large price jumps between trading sessions due to after-hours news.
8383

8484
A large price jump at market open could cause sudden liquidations, potentially leaving the perpetual DEX with bad debt if a trader’s collateral is insufficient to cover the losses.
8585

86-
| Data Stream behavior | User guidance |
87-
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88-
| <ul><li>`midPrice`: Closing price is repeated until market open.</li><li>`marketStatus`: 1 = Market Closed.</li><li>`lastUpdateTimestamp`: Timestamp of the closing price of the last session.</li></ul> | Keep markets **closed** while `marketStatus = 1` to prevent users trading at unfair prices.<br/>Set leverage in line with the asset’s average volatility to avoid bad debt. |
86+
| Data Stream behavior | User guidance |
87+
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88+
| <ul><li>`midPrice`: Closing price is repeated until market open.</li><li>`marketStatus`: 1 = Market Closed.</li><li>`lastUpdateTimestamp`: Timestamp of the closing price of the last session.</li></ul> | Keep markets closed while `marketStatus = 1` to prevent users trading at unfair prices.<br/><br/> Leverage available should be set in line with the asset average volatility to avoid bad debt if a trader’s collateral is insufficient to cover the losses. |
8989

9090
##### Price formation at open/close
9191

@@ -113,9 +113,9 @@ Stocks can be halted due to extreme volatility (e.g., limit up/down rules) or re
113113

114114
The price will be flat during that period, meaning if a perp DEX lacks a mechanism to handle halts, it may struggle to determine fair prices thus leading to unpredictable liquidations.
115115

116-
| Data Stream behavior | User guidance |
117-
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------- |
118-
| <ul><li>`midPrice`: Last mid-price is repeated until a new price is available.</li><li>`marketStatus`: `2` (Market Open).</li><li>`lastUpdateTimestamp`: Timestamp of the last mid-price.</li></ul> | Pause trading while the price is frozen; reopen only once fresh quotes resume. |
116+
| Data Stream behavior | User guidance |
117+
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------- |
118+
| <ul><li>`midPrice`: Last mid-price is repeated until a new price is available.</li><li>`marketStatus`: `2` (Market Open).</li><li>`lastUpdateTimestamp`: Timestamp of the last mid-price.</li></ul> | Decide whether to allow users to open/close positions when `marketStatus = 2` but `lastUpdateTimestamp` is stale. |
119119

120120
---
121121

@@ -139,9 +139,9 @@ Reduced market depth at trading session transitions can lead to higher volatilit
139139

140140
High volatility can lead to liquidation and potential bad debt accumulation.
141141

142-
| Data Stream behavior | User guidance |
143-
| :-------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------- |
144-
| <ul><li>`midPrice`: Current mid price.</li><li>`marketStatus`: `2` (Market Open).</li><li>`lastUpdateTimestamp`: Current timestamp.</li></ul> | Widen spreads or funding rates, or briefly delay market open to let liquidity build. |
142+
| Data Stream behavior | User guidance |
143+
| :-------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------- |
144+
| <ul><li>`midPrice`: Current mid price.</li><li>`marketStatus`: `2` (Market Open).</li><li>`lastUpdateTimestamp`: Current timestamp.</li></ul> | Monitor liquidation thresholds closely to prevent accumulating bad debt. |
145145

146146
---
147147

@@ -155,56 +155,56 @@ Bankruptcy can lead to delisting or complete loss of equity value.
155155

156156
Delisting will zero out prices for the asset.
157157

158-
| Data Stream behavior | User guidance |
159-
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------- |
160-
| <ul><li>`midPrice`: Closing price is repeated until a new price is available.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Closing timestamp of the last session.</li></ul> | Monitor delisting news during status = 1 and close markets permanently once confirmed. |
158+
| Data Stream behavior | User guidance |
159+
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------- |
160+
| <ul><li>`midPrice`: Closing price is repeated until a new price is available.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Closing timestamp of the last session.</li></ul> | Monitor delisting news during `marketStatus` = `1` and close markets permanently once confirmed. |
161161

162162
##### Spin-offs
163163

164164
When a company spins off a business unit into a separate publicly traded entity, the parent company’s stock may adjust accordingly, while the spun-off company’s shares begin trading independently.
165165

166166
Positions may need to be manually adjusted if the DEX doesn’t support tracking the new entity.
167167

168-
| Data Stream behavior | User guidance |
169-
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------- |
170-
| <ul><li>`midPrice`: Closing price is repeated until the first post-spin trade.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Pause markets if the first post-spin price moves by more than X % from the previous close; adjust positions before reopening. |
168+
| Data Stream behavior | User guidance |
169+
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
170+
| <ul><li>`midPrice`: Closing price is repeated until the first post-spin trade.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Monitor spin-off and split announcements while `marketStatus = 1`.<br/><br/>Auto-pause the market if the first post-event price moves by more than X% from the prior close, update positions, then reopen.<br/><br/>If automatic adjustment isn’t possible, disable leverage during the event window to prevent unfair liquidations. |
171171

172172
##### Stock splits & reverse splits
173173

174174
A stock split increases the number of shares while reducing the price per share (e.g., 2-for-1 split), often making shares more accessible to investors. A reverse split does the opposite, consolidating shares to increase the price per share.
175175

176176
A 2-for-1 split would reduce the price by 50% from the previous trading session, any leveraged user could get liquidated.
177177

178-
| Data Stream behavior | User guidance |
179-
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------- |
180-
| <ul><li>`midPrice`: Closing price is repeated until the split-adjusted price prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Handle like spin-offs—pause & adjust positions, or temporarily disable leverage. |
178+
| Data Stream behavior | User guidance |
179+
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
180+
| <ul><li>`midPrice`: Closing price is repeated until the split-adjusted price prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Monitor spin-off and split announcements while `marketStatus = 1`.<br/><br/>Auto-pause the market if the first post-event price moves by more than X% from the prior close, update positions, then reopen.<br/><br/>If automatic adjustment isn’t possible, disable leverage during the event window to prevent unfair liquidations. |
181181

182182
##### Mergers & acquisitions (M&A)
183183

184184
If a company is being acquired, its stock price may rise to reflect the acquisition premium. The acquiring company’s stock might fluctuate based on investor sentiment regarding the deal’s financial and strategic impact.
185185

186186
Announcements can cause sharp price spikes or sustained moves.
187187

188-
| Data Stream behavior | User guidance |
189-
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------------ |
190-
| <ul><li>`midPrice`: Closing price is repeated until a new price prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Widen spreads and monitor liquidation thresholds closely during announcement periods. |
188+
| Data Stream behavior | User guidance |
189+
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------- |
190+
| <ul><li>`midPrice`: Closing price is repeated until a new price prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Monitor liquidation thresholds closely to prevent accumulating bad debt. |
191191

192192
##### Share buybacks & stock issuance
193193

194194
Reduced share supply from a buyback can drive stock prices higher, while increase in share supply can lead to price dilution.
195195

196196
Announcements can cause sharp price spikes or sustained moves.
197197

198-
| Data Stream behavior | User guidance |
199-
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :---------------------------------------------------------------- |
200-
| <ul><li>`midPrice`: Closing price is repeated until a new price prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Monitor liquidation thresholds; adjust risk parameters as needed. |
198+
| Data Stream behavior | User guidance |
199+
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------- |
200+
| <ul><li>`midPrice`: Closing price is repeated until a new price prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Monitor liquidation thresholds closely to prevent accumulating bad debt. |
201201

202202
##### Dividends
203203

204204
A company's stock price typically adjusts to reflect dividend payments. For example, when a company declares a 10% dividend, its stock price often drops by a similar amount on the ex-dividend date, as new buyers are no longer entitled to that dividend.
205205

206206
Announcements can cause sharp price spikes or sustained moves.
207207

208-
| Data Stream behavior | User guidance |
209-
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :---------------------------------------------------------------------------------------------- |
210-
| <ul><li>`midPrice`: Closing price is repeated until the ex-date trade prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Adjust funding rates and leverage limits around ex-dividend dates to avoid unfair liquidations. |
208+
| Data Stream behavior | User guidance |
209+
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------- |
210+
| <ul><li>`midPrice`: Closing price is repeated until the ex-date trade prints.</li><li>`marketStatus`: `1` (Market Closed).</li><li>`lastUpdateTimestamp`: Last close.</li></ul> | Monitor liquidation thresholds closely to prevent accumulating bad debt. |

0 commit comments

Comments
 (0)