is_market_open
Determine if the market is open for a specific stock symbol using the Paper MCP Server. Ideal for traders and AI assistants to verify market status and make informed decisions.
Instructions
Check if market is open for a symbol
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock symbol |
Implementation Reference
- src/index.ts:510-512 (handler)Handler implementation for the 'is_market_open' tool. It extracts the symbol from arguments and calls the backend API endpoint `/market-data/is-market-open/${symbol}` to get the market open status.case 'is_market_open': response = await api.get(`/market-data/is-market-open/${args.symbol}`); break;
- src/index.ts:334-340 (schema)Input schema for the 'is_market_open' tool, specifying that a 'symbol' string parameter is required.inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Stock symbol' } }, required: ['symbol'] }
- src/index.ts:331-341 (registration)Tool registration entry in the tools array, defining the name, description, and input schema for listing via ListToolsRequest.{ name: 'is_market_open', description: 'Check if market is open for a symbol', inputSchema: { type: 'object', properties: { symbol: { type: 'string', description: 'Stock symbol' } }, required: ['symbol'] } },