Skip to content

Commit a7b583a

Browse files
authored
Data Streams: Best Practices (Market Hours, etc) (#2873)
* link/nav updates * update market-hours with guidance * added notes and marketstatus * nit: date frontmatter * nit * update tables * removed old price info * link fix * added new best practices section, moved market our user recommendations to new section * broken-link-fix * update best practices intro text * remove duplicated content from market-hours -> best practices * update * linkfix * best practices update * clarify * further clarification * feedback * link fix * minor nits review * revert unneeded changes (redirects in place)
1 parent 7f03d3e commit a7b583a

File tree

6 files changed

+368
-12
lines changed

6 files changed

+368
-12
lines changed

src/config/sidebar.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
470470
title: "Architecture",
471471
url: "data-streams/architecture",
472472
},
473+
{
474+
title: "Best Practices",
475+
url: "data-streams/concepts/best-practices",
476+
},
473477
{
474478
title: "Liquidity-Weighted Bid and Ask prices",
475479
url: "data-streams/concepts/liquidity-weighted-prices",

src/content/data-streams/concepts/best-practices.mdx

Lines changed: 292 additions & 0 deletions
Large diffs are not rendered by default.

src/content/data-streams/developer-responsibilities.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Developers are responsible for maintaining the security and user experience of t
3434

3535
In particular, developers implementing Chainlink Data Streams in their code and applications are responsible for their application's market integrity and code risks that may cause unanticipated pricing data behavior. These are described below in more detail:
3636

37+
For guidance on mitigations, see the [Data Streams Best Practices](/data-streams/concepts/best-practices) — developers remain solely responsible for their integrations.
38+
3739
### Market Integrity Risks
3840

3941
Market conditions can impact the pricing behavior of assets in ways beyond the ability of Chainlink node operators to predict or control.
@@ -52,6 +54,17 @@ Under the shared responsibility model, developers must thoroughly understand the
5254

5355
**Data Streams developers are solely responsible for defining and implementing their own risk procedures and systems, including being aware of market open and closing times, and bank holidays, when integrating associated Chainlink Data Streams.**
5456

57+
### Market hours
58+
59+
Some Data Streams reflect assets that trade only during specific market windows or are published with a delay. Developers must not assume 24/7 trading availability for these streams and should implement validations and fallback logic where appropriate:
60+
61+
- Offchain equity and ETF assets are traded only during standard [market hours](/data-streams/market-hours). Do not use these streams outside those windows.
62+
- Forex (foreign exchange) assets trade only during defined market hours for the pair and, for some currencies, primarily during local banking hours. Do not use Forex streams outside the market hours relevant to the currency pair.
63+
- UK ETF price streams may be published with a 15-minute delay from their original source. These assets are traded only during standard market hours — do not use UK ETF streams outside their specified trading windows or assume real-time prices.
64+
- Other assets may have specific market hours defined by their respective exchanges or liquidity providers.
65+
66+
For more information, see the [Market Hours Best Practices](/data-streams/concepts/best-practices#market-hours); developers remain solely responsible for how they use this guidance and for any risks or liabilities resulting from their integrations.
67+
5568
#### DEX-based Assets
5669

5770
Data Streams also provides pricing data related to assets that trade, primarily, on decentralized exchanges (DEXs). Under the Shared Responsibility model, it is essential that developers understand the methodology and risks associated with such DEX-based assets. The risks include, but are not limited to:
Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,73 @@
11
---
22
section: dataStreams
3-
date: Last Modified
3+
date: "Last Modified"
44
title: "Data Streams Market Hours"
55
metadata:
66
title: "Chainlink Data Streams Market Hours | Trading Hours by Asset Class"
7-
description: "Learn about trading hours for different asset classes in Chainlink Data Streams including cryptocurrency, forex, and precious metals market schedules."
8-
keywords: ["Market Hours", "Trading Hours", "Crypto", "Forex", "Precious Metals", "Data Streams"]
7+
description: "Market-open schedules for Chainlink Data Streams, covering crypto, forex, precious metals, US equities, and commodities."
8+
keywords:
9+
[
10+
"Market Hours",
11+
"Trading Hours",
12+
"Crypto",
13+
"Forex",
14+
"Precious Metals",
15+
"US Equities",
16+
"Commodities",
17+
"RWA",
18+
"Data Streams",
19+
]
920
whatsnext:
1021
{
1122
"Find the list of available Crypto streams": "/data-streams/crypto-streams",
1223
"Find the list of available RWA streams": "/data-streams/rwa-streams",
1324
"Find the schema of data to expect from Data Streams reports: Crypto": "/data-streams/reference/report-schema-v3",
1425
"Find the schema of data to expect from Data Streams reports: RWA": "/data-streams/reference/report-schema-v8",
26+
"Learn best practices for managing market hours risks": "/data-streams/concepts/best-practices",
1527
}
1628
---
1729

18-
Markets for several assets are actively traded only during certain hours. Listed streams include an attribute describing their market hours.
30+
import { Aside } from "@components"
1931

20-
## Market hours
32+
Markets for several assets are actively traded only during certain hours.
2133

22-
| Asset class | Hours |
23-
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
24-
| **Crypto** | 24/7/365 - No market close. |
25-
| **Forex** | 18:00 ET Sunday to 17:00 ET Friday. <br/> The feeds also follow the global Forex market Christmas and New Year's Day holiday schedule. Many non-G12 currencies primarily trade during local market hours. It is recommended to use those feeds only during local trading hours. |
26-
| **Precious Metals** | 18:00 ET Sunday to 17:00 ET Friday with a one-hour break Monday through Thursday from 17:00 to 18:00. <br/> The feeds also follow the global Forex market holiday schedule for Christmas and New Year's Day. |
34+
---
35+
36+
## Cryptocurrency
37+
38+
Cryptocurrency markets operate continuously, with no designated market close.
39+
40+
| Asset class | Hours |
41+
| ----------- | --------------------------- |
42+
| **Crypto** | 24/7/365 — No market close. |
43+
44+
---
45+
46+
## Real-World Asset (RWA) market hours <span id="rwa-market-hours"></span>
47+
48+
RWA markets operate during specific hours, with breaks for holidays and sometimes daily pauses.
49+
50+
{/* prettier-ignore */}
51+
<Aside type="note" title="marketStatus values">
52+
In the [RWA report schema (v8)](/data-streams/reference/report-schema-v8), the <code>marketStatus</code> field indicates market status:<br/>
53+
• <code>0</code> → <strong>Unknown</strong><br/>
54+
• <code>1</code> → <strong>Closed</strong><br/>
55+
• <code>2</code> → <strong>Open</strong><br/>
56+
All times are Eastern&nbsp;Time (ET, UTC-05 / UTC-04 DST).
57+
</Aside>
58+
59+
| Asset class | Weekly Open | Weekly Close | Daily Breaks \* | Bank Holidays \*\* |
60+
| --------------------------------------------------------------- | ------------- | ------------- | ------------------- | -------------------------------------------------------------------------------------- |
61+
| **US Equities**<br/>(top-50 by market cap&nbsp;+ selected ETFs) | **09:30 Mon** | **16:00 Fri** || [NYSE holiday calendar](https://www.nyse.com/markets/hours-calendars) |
62+
| **FX Majors**<br/>(G10 + KRW, SGD, HKD, CNH …) | **17:00 Sun** | **17:00 Fri** || Jan 1, Dec 25 |
63+
| **Precious Metals (Spot)**<br/>(XAU, XAG) | **18:00 Sun** | **17:00 Fri** | 17:00–18:00 Mon-Thu | Jan 1, Good Fri, Dec 25 |
64+
| **Commodities** <br/> (WTI Synthetic Spot) | **18:00 Sun** | **17:00 Fri** | 17:00–18:00 Mon-Thu | [NYMEX holiday calendar](https://www.cmegroup.com/tools-information/holiday-calendar/) |
65+
66+
\* Times shown as **HH:MM ET**.
67+
\*\* Half-day trading may apply on the eve of certain U.S. holidays (e.g., Jul 3, Nov 28). Consult the linked exchange calendars for exact cut-off times.
68+
69+
---
2770

28-
## Real World Asset market status
71+
## User Recommendations
2972

30-
Reports for Real World Asset (RWA) streams include the `marketStatus` value, which reflects the DON'S consensus on whether the market is currently open. For additional information, refer to the [RWA report schema](/data-streams/reference/report-schema-v8) page.
73+
For comprehensive guidance on managing risks related to market hours, market gaps, volatility, and corporate actions, see the [Best Practices](/data-streams/concepts/best-practices#market-hours) page.

src/content/data-streams/reference/report-schema-v10.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,4 @@ Chainlink Backed xStock Data Streams adhere to the report schema outlined below.
4242
- `tokenizedPrice` will be available in an upcoming release of Backed xStock Data Streams. Currently, it will always return `0`.
4343
- `currentMultiplier` reflects all past corporate actions and is updated only when a new action is activated.
4444
- `activationDateTime` and `newMultiplier` provide advance notice of upcoming corporate actions, allowing protocols to prepare.
45+
- See more detailed guidance for handling stock splits in the [Best Practices](/data-streams/concepts/best-practices#handling-stock-splits-for-tokenized-assets) documentation.

src/content/data-streams/reference/report-schema-v8.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ RWA streams adhere to the report schema outlined below.
3333

3434
**Notes**:
3535

36+
- `marketStatus`:
37+
- Users are responsible for handling market status changes in their applications.
38+
- For further guidance, refer to the [Market Hours Best Practices](/data-streams/concepts/best-practices#market-hours) documentation.
3639
- Future RWA streams may use different report schemas.

0 commit comments

Comments
 (0)