Skip to main content
Glama

MCP Stock Assistant

utils.ts396 B
export function getStockMarket(code: string): [number, string] { if (code.match(/^(000|002|300|301)/)) { return [0, `0.${code}`]; } else if (code.match(/^(600|601|603|605|688)/)) { return [1, `1.${code}`]; } throw new Error(`不支持的股票代码格式:${code}`); } export function formatNumber(num: number, scale: number = 1): string { return (num / scale).toFixed(2); }

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/qqzhangyanhua/mcp-stock'

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