[Free Open-Source Release: Quant Bot Built on the Toss Securities API] Using the Toss Securities Open API, I built a program that applies an LLM momentum quant strategy to generate buy, sell, and hold signals for South Korean equities. Retail traders in South Korea often lean heavily into margin and speculative swings; pairing quantitative rules with an LLM helps curb impulsive trades by grounding overbought alerts and exit calls in objective metrics.

Writing code late at night while US AI infrastructure stocks tumble is a strange feeling. Ironically, backtesting right in the middle of the AI boom shows simple buy-and-hold delivering the strongest overall returns - yet on panic-stricken nights when the VIX spikes, steady quantitative rules act like a lighthouse. The GitHub release includes Toss API integration notes, trading strategy docs, momentum signal-bot source code, and 3 years of paper-trading backtest logs using the Adaptive Momentum Quant Strategy (AMQS). *Note: Live real-time feed wiring awaits final API key issuance, and a dedicated paper-trading sandbox API would be a welcome addition.

Coding through a steep late-night US tech sell-off while the VIX surges highlights why discretionary traders panic at the worst moments. Combining a fintech brokerage Open API with an LLM provides a clean, rule-driven way to strip emotion out of equity decisions.

Momentum Signals Anchored Against Market Panic

Feeding quantitative indicators into an LLM establishes an objective baseline when volatility spikes. Built around the Toss Securities Open API, this bot outputs buy, sell, and hold signals for South Korean stocks using AMQS (Adaptive Momentum Quant Strategy), backed by 3 years of backtest logs.

Even though 3-year backtests show patient buy-and-hold beating most active timing during an AI bull run, explicit rules stop panic selling during sharp drawdowns. AMQS scales equity exposure dynamically with trend strength - leaning into confirmed uptrends and raising cash buffers during downturns to control drawdowns more tightly than simple moving-average crossovers.

Working Around Sandbox Gaps in Real-Time Integration

Connecting live market streams requires formal API key approval, and the brokerage currently lacks a dedicated paper-trading API sandbox. While the clean REST design makes initial bot scaffolding straightforward, testing requires historical replay until live credentials arrive.

To bridge that gap, the project replays 3 years of historical market data capturing real volatility regimes. Exponential backoff handles API rate limits during ingestion, while a local signal engine refreshes a local database on a schedule with strict network-timeout and retry guards to prevent missing candles.

Constraining Impulsive Decisions Through System Prompts

Rather than generating loose market commentary, the LLM evaluates overbought thresholds and exit triggers strictly against quantitative rule tables, with full source code published on GitHub. Explicit system instructions forbid emotional speculation and force every buy, hold, or sell rationale to cite numeric indicators directly - keeping decisions calm even on nights when screens flash red.

Summary

  • Pairs the Toss Securities Open API with an LLM to generate rule-bound momentum signals for South Korean equities.
  • Uses 3-year AMQS backtest logs to adjust cash and equity weights dynamically and curb panic trades during VIX spikes.
  • Bridges the lack of a brokerage paper-trading sandbox with historical simulation, rate-limit backoff, and local DB sync guards.