Get SFP trading schedule
Get the trading hours of stable funding perps (`_SFP` instruments).
On this page
Agent prompt
Write a small program that calls `sfp_trading_schedule.get_sfp_trading_schedule` on Grvt {environment} {using}.
Target environment: {environment} (chain ID {chainId}). Recorded signing cases keep their original environment.
{executionGuidance}
Read this first: {origin}/bundle/reference/rpc/get_sfp_trading_schedule.md (~53 KB, plain Markdown: this page plus the AGENTS.md rules, Errors and retries, Python SDK, Environments).
Fetch other pages from the index at {origin}/llms.txt only as you need them. {origin}/downloads/contract.json is a machine-readable contract for tools, not for reading.
Rules: follow AGENTS.md; do not send requests without the user asking you to; read credentials from environment variables; never retry writes automatically; show me the code and how to run it. URLs and generated code samples on this page: Testnet (chain ID 326). Other code on this page doesn't change: it stays on testnet until you switch it in your code. Tutorials, signing cases and live tools always use testnet.
| SDK | client. |
|---|---|
| HTTP | POST https:/, or / for lite names (the SDKs' default) |
| WebSocket | method v1/ on wss:/, or /ws/lite for lite names |
| Auth | None (public) |
| Retries | Read: the SDKs retry retryable errors (rules) |
| Contract id | sfp_trading_schedule. (RPCGetSfpTradingSchedule) |
Request
Body type EmptyRequest. Fields the server fills are left out.
No fields.
Response
Body type ApiSfpTradingScheduleResponse (the same object is the JSON-RPC result over WebSocket).
- Session data update timestamp in milliseconds
- Legacy: use
schedulesinstead. Schedule for theEQUITYasset class2 fields of
SfpMarketSchedule- Trading sessions for the current calendar week (Sunday to Saturday in the exchange's local time). The sessions are contiguous with no gaps, and any period when the market is not open, including holidays falling in this week, is returned as a
CLOSEsession3 fields of
TradingSession- Trading session start time timestamp in milliseconds
- Trading session end time timestamp in milliseconds
- Trading session type
5 values
- Market holidays and early closes, past and upcoming, sorted by start time. The market is closed from the start time to the end time of each entry. Empty when there are none
4 fields of
TradingHolidaySchedule- Holiday name
FULL_DAY: the market is closed for the whole day.EARLY_CLOSE: the market trades as normal until the start time, then is closed until the end time2 values
- When the closure begins, as a Unix timestamp in milliseconds. For
FULL_DAYthis is when the closed trading day's session would have opened (the evening before for a session that opens before midnight); forEARLY_CLOSEit is the moment the market closes early - When the closed or shortened trading day's session would have closed, as a Unix timestamp in milliseconds. The closure covers the start time up to, but not including, the end time
- Legacy: use
schedulesinstead. Schedule for theEQUITY_NYSEasset class Fields: same asequityabove. - Legacy: use
schedulesinstead. Schedule for theEQUITY_NASDAQasset class Fields: same asequityabove. - Legacy: use
schedulesinstead. Schedule for theCOMMODITYasset class Fields: same asequityabove. - Legacy: use
schedulesinstead. Schedule for theCOMMODITY_CMEasset class Fields: same asequityabove. - Trading hours, as groups of stable funding perps that share them: one group per asset class, named after it, then one per instrument schedule, named by the exchange. Each stable funding perp with a schedule is in exactly one group.
5 fields of
SfpTradingScheduleGroup- The group name. For stable perps on their asset class hours, the asset class (for example
COMMODITY_CME) - The instruments' asset class. Its holiday calendar sets the group's holidays
10 values
CRYPTO,EQUITY,COMMODITY,FX,INDEX,EQUITY_NASDAQ,EQUITY_NYSE,EQUITY_KRX,COMMODITY_CME,PRE_IPO(details). - The stable perps trading these hours, sorted. Each stable perp with a schedule is in exactly one group
- Trading sessions for the current calendar week (Sunday to Saturday in the exchange's local time). The sessions are contiguous with no gaps, and any period when the market is not open, including holidays falling in this week, is returned as a
CLOSEsession Fields: same asequity.sessions[]above. - Market holidays and early closes, past and upcoming, sorted by start time. The market is closed from the start time to the end time of each entry. Empty when there are none Fields: same as
equity.holidays[]above.
Errors
Errors come back as {"code", "message", "status"} (lite {"c", "m", "s"}) with the HTTP status. Codes this call can return (all error codes):
Example
Example code
from grvt import Grvt
with Grvt(env="testnet") as client:
resp = client.get_sfp_trading_schedule()
print(resp)
Raw HTTP (set GRVT_DOMAIN, see Environments):
With full field names:
curl -sS "https://market-data.testnet.grvt.io/full/v1/sfp_trading_schedule" \
-H "Content-Type: application/json" \
--data '{}'With lite field names:
curl -sS "https://market-data.testnet.grvt.io/lite/v1/sfp_trading_schedule" \
-H "Content-Type: application/json" \
--data '{}'