Skip to main content
Glama

Twelve Data MCP Server

Official
by twelvedata

GetMarketState

Track the operational state of stock exchanges, including open and close times, and retrieve details by exchange, MIC code, or country for better market monitoring.

Instructions

Check the state of all available exchanges, time to open, and time to close. Returns all available stock exchanges by default.

Input Schema

NameRequiredDescriptionDefault
paramsYes

Input Schema (JSON Schema)

{ "$defs": { "GetMarketStateRequest": { "description": "Check the state of all available exchanges, time to open, and time to close. Returns all available stock exchanges by default.", "properties": { "apikey": { "default": "demo", "description": "API key", "examples": [ "demo" ], "title": "Apikey", "type": "string" }, "code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The Market Identifier Code (MIC) of the exchange where the instrument is traded.", "examples": [ "XNYS" ], "title": "Code" }, "country": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The country where the exchange is located. Takes country name or alpha code.", "examples": [ "United States" ], "title": "Country" }, "exchange": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "The exchange name where the instrument is traded.", "examples": [ "NYSE" ], "title": "Exchange" } }, "title": "GetMarketStateRequest", "type": "object" } }, "properties": { "params": { "$ref": "#/$defs/GetMarketStateRequest" } }, "required": [ "params" ], "title": "GetMarketStateArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/twelvedata/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server