Skip to main content
Glama
paperinvest

Paper MCP Server

by paperinvest

get_batch_quotes

Fetch real-time stock quotes for multiple symbols in a single request through the Paper MCP Server, enabling efficient market data retrieval for AI-driven trading and analysis.

Instructions

Get real-time quotes for multiple symbols

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolsYesArray of stock symbols

Implementation Reference

  • Handler implementation for get_batch_quotes tool. Makes a POST request to the Paper Invest API /market-data/quotes/batch endpoint with the array of symbols to retrieve real-time quotes for multiple symbols.
    case 'get_batch_quotes':
      response = await api.post('/market-data/quotes/batch', {
        symbols: args.symbols
      });
      break;
  • Schema definition for the get_batch_quotes tool, including name, description, and input schema requiring an array of stock symbols.
    {
      name: 'get_batch_quotes',
      description: 'Get real-time quotes for multiple symbols',
      inputSchema: {
        type: 'object',
        properties: {
          symbols: { 
            type: 'array',
            items: { type: 'string' },
            description: 'Array of stock symbols'
          }
        },
        required: ['symbols']
      }
    },

Latest Blog Posts

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/paperinvest/mcp-server'

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