Skip to content

MCP quote API returns code=500000 internal error for all market data requests #1154

Description

@zqiu827-design

Problem

I am testing Longbridge MCP with OAuth authentication.

Environment:

Authentication

OAuth authorization is successful.

Granted scopes:

  • Basic data access
  • Watchlist

OpenAPI market permissions:

  • US LV1 real-time quote
  • HK LV1 real-time quote
  • OPRA US options quote

Issue

MCP tools/list works correctly and returns 147 tools.

However, MCP tool calls related to market data always fail:

Error:

openapi error: code=500000: internal error

Tested APIs

  • quote
  • candlesticks
  • intraday
  • market_status
  • news
  • static_info

Tested symbols

  • NVDA.US
  • 700.HK

Additional information

OAuth authentication appears to work correctly.

For example, account-related API without required scope returns:

403008: Target API's scope is not in authorized scopes

This suggests the OAuth token is recognized and scope validation is functioning.

Expected behavior

The MCP server should return market quote and related market data.

Actual behavior

All market data APIs return:

code=500000 internal error

Could you please check:

  • MCP backend
  • OAuth scope mapping
  • OpenAPI gateway routing
  • Account API binding

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions