---
title: "Get SFP trading schedule"
description: "Get the trading hours of stable funding perps (`_SFP` instruments)."
---

| | |
|---|---|
| SDK | `client.get_sfp_trading_schedule(...)` |
| HTTP | `POST https://market-data.<domain>/full/v1/sfp_trading_schedule`, or `/lite/v1/sfp_trading_schedule` for [lite names](../../guides/environments.md#encoding-full-or-lite) (the SDKs' default) |
| WebSocket | method `v1/sfp_trading_schedule` on `wss://market-data.<domain>/ws/full`, or `/ws/lite` for lite names |
| Auth | None (public) |
| Retries | Read: the SDKs retry retryable errors ([rules](../../guides/errors-and-retries.md)) |
| Contract id | `sfp_trading_schedule.get_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).

- `update_time` · lite `ut` · string (int64) · required — Session data update timestamp in milliseconds
- `equity` · lite `e` · object SfpMarketSchedule · optional — Legacy: use `schedules` instead. Schedule for the `EQUITY` asset class
- `equity.sessions` · lite `s` · object TradingSession[] · required — 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 `CLOSE` session
- `equity.sessions[].start_time` · lite `st` · string (int64) · required — Trading session start time timestamp in milliseconds
- `equity.sessions[].end_time` · lite `et` · string (int64) · required — Trading session end time timestamp in milliseconds
- `equity.sessions[].type` · lite `t` · enum TradingSessionType · required — Trading session type
  Values: `REGULAR`, `PRE_MARKET`, `AFTER_MARKET`, `OVERNIGHT`, `CLOSE` ([details](../enums.md#tradingsessiontype)).
- `equity.holidays` · lite `h` · object TradingHolidaySchedule[] · required — 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
- `equity.holidays[].name` · lite `n` · string · required — Holiday name
- `equity.holidays[].close_type` · lite `ct` · enum TradingScheduleCloseType · required — `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 time
  Values: `FULL_DAY`, `EARLY_CLOSE` ([details](../enums.md#tradingscheduleclosetype)).
- `equity.holidays[].start_time` · lite `st` · string (int64) · required — When the closure begins, as a Unix timestamp in milliseconds. For `FULL_DAY` this is when the closed trading day's session would have opened (the evening before for a session that opens before midnight); for `EARLY_CLOSE` it is the moment the market closes early
- `equity.holidays[].end_time` · lite `et` · string (int64) · required — 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
- `equity_nyse` · lite `en` · object SfpMarketSchedule · optional — Legacy: use `schedules` instead. Schedule for the `EQUITY_NYSE` asset class
  Fields: same as `equity` above.
- `equity_nasdaq` · lite `en1` · object SfpMarketSchedule · optional — Legacy: use `schedules` instead. Schedule for the `EQUITY_NASDAQ` asset class
  Fields: same as `equity` above.
- `commodity` · lite `c` · object SfpMarketSchedule · optional — Legacy: use `schedules` instead. Schedule for the `COMMODITY` asset class
  Fields: same as `equity` above.
- `commodity_cme` · lite `cc` · object SfpMarketSchedule · optional — Legacy: use `schedules` instead. Schedule for the `COMMODITY_CME` asset class
  Fields: same as `equity` above.
- `schedules` · lite `s` · object SfpTradingScheduleGroup[] · required — 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.
- `schedules[].name` · lite `n` · string · required — The group name. For stable perps on their asset class hours, the asset class (for example `COMMODITY_CME`)
- `schedules[].asset_class` · lite `ac` · enum AssetClass · required — The instruments' asset class. Its holiday calendar sets the group's holidays
  Values: `CRYPTO`, `EQUITY`, `COMMODITY`, `FX`, `INDEX`, `EQUITY_NASDAQ`, `EQUITY_NYSE`, `EQUITY_KRX`, `COMMODITY_CME`, `PRE_IPO` ([details](../enums.md#assetclass)).
- `schedules[].instruments` · lite `i` · string (instrument name)[] · required — The stable perps trading these hours, sorted. Each stable perp with a schedule is in exactly one group
- `schedules[].sessions` · lite `s` · object TradingSession[] · required — 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 `CLOSE` session
  Fields: same as `equity.sessions[]` above.
- `schedules[].holidays` · lite `h` · object TradingHolidaySchedule[] · required — 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, as code, name (HTTP status) ([all error codes](../errors.md)):

`1002` InternalServer (500) · `1003` InvalidRequest (400) · `1006` RateLimit (429, retryable)

## Example

```python
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](../../guides/environments.md)):

With full field names:

```sh
curl -sS "https://market-data.$GRVT_DOMAIN/full/v1/sfp_trading_schedule" \
  -H "Content-Type: application/json" \
  --data '{}'
```

With lite field names:

```sh
curl -sS "https://market-data.$GRVT_DOMAIN/lite/v1/sfp_trading_schedule" \
  -H "Content-Type: application/json" \
  --data '{}'
```
