Retrieve the current market status for a specific product or products. This endpoint returns real-time indicators, such as open, pause, close, for futures products, along with the corresponding exchange and product codes and an evaluation timestamp. This information enables users to monitor operational conditions and adjust their trading strategies accordingly.
Use Cases: Real-time monitoring, algorithm scheduling, UI updates, operational planning.
The product code of the futures contracts for which you want statuses.
limit
integer
Limit the maximum number of results returned. Defaults to '10' if not specified. The maximum allowed limit is '100'.
fields
string
A comma-separated list of fields to return for each result (e.g. `market_event,name,product_code`). If omitted, all fields are returned. When set, each result contains only the fields you list; every other field is dropped, even fields a full response always includes. Nested fields can be specified using dot notation (for example, `parent.child`).
from massive import RESTClient
client = RESTClient("YOUR_API_KEY")
market_statuses = []
for ms in client.list_futures_market_statuses(
limit="10"
):
market_statuses.append(ms)
print(market_statuses)