Skip to main content

Auto Fin Plugin

中文

Auto Fin fetches a rolling window of CLS telegraph news (24 hours by default), selects items related to configured topics, searches ReMe for useful historical context, and writes one Chinese Markdown report with validated wikilinks. Current news and topic selection stay in runtime memory; only the final report becomes durable memory. This directory is an independent Python distribution. Its single reme.plugins entry point exposes a plugin.yaml containing the three Step backends and their Job configuration under application_defaults. Enable the installed plugin explicitly through plugins=["auto-fin"].

Auto Fin has no reliable market-price feed. It does not calculate returns, targets, or entry points and is not investment advice.

Quick start

1. Install ReMe and Auto Fin

python -m pip install "reme-ai[core]>=0.4.1.8"
reme plugins install reme-auto-fin

2. Configure the model environment

Configure the LLM environment variables as described in the ReMe model-configuration guide. Other compatible models and providers can also be used.

3. Start ReMe with the plugin

reme start plugins='["auto-fin"]'

With no explicit config, ReMe loads default.yaml and adds the plugin to that service.

From another terminal, call the running HTTP service through ReMe's CLI client:

reme auto_fin topics="黄金,AI,存储芯片"

Or call its HTTP endpoint directly:

curl -s http://127.0.0.1:2333/auto_fin \
  -H 'Content-Type: application/json' \
  -d '{"topics":"黄金,AI,存储芯片"}'

The HTTP service also exposes the same Job as the auto_fin MCP tool at /mcp. The default topics are 黄金,机器人,半导体; an empty value also uses these defaults.

To host the application with both JSON and MCP access:

reme start plugins='["auto-fin"]' \
  service.backend=http

To add Auto Fin to another application instead, select that config explicitly, for example:

reme start config=daily_cookbook plugins='["auto-fin"]'

Pipeline

CLS public telegraph endpoint (rolling 24 hours)
        ↓
normalize and deduplicate in RuntimeContext
        ↓
topic Agent selects real news IDs in bounded batches
        ↓
research Agent uses memory_search + read on historical memory
        ↓
validate historical wikilinks in code
        ↓
daily/YYYY-MM-DD/auto_fin.md

auto_fin_data_step signs and paginates the same endpoint used by the CLS website. It starts at the decision time and stops only after covering the exact preceding 24 hours. Requests are rate-limited and retried; malformed records and records outside the window are discarded.

auto_fin_topic_step receives batches of current news and returns only related news_id values. Code ignores unknown IDs and deduplicates repeated IDs, then preserves the source-news order. If nothing is relevant, the job succeeds as a skip without writing or sending a report.

auto_fin_merge_step receives only selected current news. It exposes memory_search and read, instructs the Agent to search no later than yesterday, and keeps current CLS IDs, times, and titles as plain evidence. The prompt limits wikilinks to historical Markdown actually used by the Agent; the code-level boundary independently keeps only existing, workspace-relative Markdown targets. Missing, absolute, escaping, backslash, and self-referential targets are degraded to their readable aliases.

Same-day reruns use the existing report as context and replace it with the revised result. The final write is atomic and refreshes the daily index. No JSONL, intermediate Markdown, or structured Agent output is written.

Parameters

Parameter Default Purpose
date "" Empty uses today in Shanghai; an explicit value must equal today
now "" Optional ISO 8601 decision time for testing or replay
topics "黄金,机器人,半导体" Comma-separated topics; empty also uses these defaults
window_hours 24 Rolling number of hours of CLS telegraph news to fetch; must be positive
request_interval 10 Minimum delay in seconds after every CLS request attempt; may be zero
max_retries 3 Maximum attempts for each CLS page request; must be at least one

The three plugin cron Jobs start with the application and run daily at 09:30, 11:30, and 18:00 in Asia/Shanghai.

Output

.reme/daily/YYYY-MM-DD/auto_fin.md

The report includes a title, description, current CLS evidence, historical analysis, contextual wikilinks, and a fixed non-investment disclaimer. Network errors and invalid Agent output fail explicitly; no relevant current news is a successful skip.

Validation

python -m pytest plugins/auto-fin -v

Unit tests mock the CLS and Agent boundaries and do not contact external services.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reme_auto_fin-0.1.1.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reme_auto_fin-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file reme_auto_fin-0.1.1.tar.gz.

File metadata

  • Download URL: reme_auto_fin-0.1.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for reme_auto_fin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 83172a36dd79041042b5f6afe41b43641bf2786912a97c6618257e692b05da8c
MD5 a156388734f73da4770cb54a558aa88b
BLAKE2b-256 816df07f0587de8ca8e53339784d88312da14c6b95f94d9960797b5fb6a21f5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for reme_auto_fin-0.1.1.tar.gz:

Publisher: release-auto-fin.yml on agentscope-ai/ReMe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reme_auto_fin-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: reme_auto_fin-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for reme_auto_fin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 86b04ff244eafa43f908ea82b0753c86fa32690abbb8486600b7f975ce604368
MD5 65e32f1846348a3c1cdd2a1770d2d07c
BLAKE2b-256 fce36b36554cbfa187d1d7af69ab0f325c50a4587c27fc3fd8db8baf3c90f06d

See more details on using hashes here.

Provenance

The following attestation bundles were made for reme_auto_fin-0.1.1-py3-none-any.whl:

Publisher: release-auto-fin.yml on agentscope-ai/ReMe

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.2

2 files

This release

0.1.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page