Skip to content

feat(mcp): run candle strategies, a data type on submit_backtest and submit_sweep - #14

Merged
mrmx merged 2 commits into
mainfrom
feat/kline-type
Oct 25, 2026
Merged

mrmx merged 2 commits into
mainfrom
feat/kline-type

Conversation

@mrmx

@mrmx mrmx commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

What

The MCP server could not run a strategy that reads candles. submit_backtest had no data type, so a dataset run was always prepared as ticker data and a kline strategy over a klines dataset ended FAILED ("This strategy reads kline data, but the run was submitted against ticker data").

Change

  • submit_backtest and submit_sweep take type: ticker (the default) or kline. A kline run over a datasetId needs a ready dataset version of type=klines; a ticker run accepts either. Any other value is refused before anything is submitted.
  • get_job_status and get_equity_curve take the same type for a job this session did not submit, as they take exchangeId: the platform addresses a result by exchange, type and job id, and a kline run is not found on the ticker route. A job this session submitted ignores it.
  • A sweep remembers its type, so the curves it retains are read on the right route.
  • Tool descriptions and the README no longer say a kline run cannot be requested.
  • Builds against sdk-java 0.35.0 (published), which carries the type. Two commits: the change, and chore(release): 0.22.0 (version and changelog).

Tests

  • New McpToolsTest cases: a request is a ticker run unless it asks for kline (name not case-sensitive); an unsupported type is refused and nothing is submitted; submit_sweep takes the same type; get_job_status and get_equity_curve pass the type to the service for a run from another session; and refuse one they cannot address.
  • mvn verify passes, including the native reflection-config guard.

Not verified yet

The native image is built only on a tag, so the kline run over a dataset through the native binary is to be checked on that build. The same run through the SDK was checked against the live API when the SDK change was made.

After merging, tag the merge commit 0.22.0: the native builds and the GitHub release run from the tag.

mrmx added 2 commits October 25, 2026 17:12
…submit_sweep

The MCP could not request a kline run: sdk-java prepared every run as ticker data, so a strategy that reads candles over a klines dataset always ended FAILED at preparation.

submit_backtest and submit_sweep take a type (ticker by default, or kline). get_job_status and get_equity_curve take it too for a job this session did not submit, because the platform addresses a result by exchange, type and job id, and a kline run is not found on the ticker route. A sweep remembers its type for its retained curves. Builds against sdk-java 0.35.0, which carries the type.
@mrmx
mrmx marked this pull request as ready for review October 25, 2026 18:00
@mrmx
mrmx merged commit 36fd32d into main Oct 25, 2026
5 checks passed
@mrmx
mrmx deleted the feat/kline-type branch October 25, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant