Skip to main content
Glama

Stock Info Service

by tddt
stock.py1.03 kB
from pydantic import BaseModel from typing import List, Optional from datetime import datetime class StockPrice(BaseModel): """股票价格数据模型""" date: str open: float close: float high: float low: float volume: float amount: float class StockBasicInfo(BaseModel): """股票基本信息数据模型""" code: str name: str industry: Optional[str] area: Optional[str] market: Optional[str] class StockNews(BaseModel): """股票新闻数据模型""" title: str content: str date: datetime source: Optional[str] class FinanceNews(BaseModel): """财经新闻数据模型""" title: str content: str date: datetime source: Optional[str] class PaginationInfo(BaseModel): """分页信息模型""" total: int page: int page_size: int total_pages: int class PaginatedResponse(BaseModel): """分页响应模型""" data: List pagination: PaginationInfo

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/tddt/stock_info_mcp'

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