CoreForge Trading

v1.0.1
io.github.ShafiCodes25/coreforge-trading Checked 23 hours ago Published 23 days ago

CoreForge trading analytics: signals, backtests, risk, Greeks, token data.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

trading_signal

Deterministic strategy-state computation for one symbol: the current state of five published rule sets (ma_crossover, rsi_mean_reversion, momentum, leveraged_momentum, macd_crossover) plus an ensemble state over daily bars; BTC/ETH/SOL also carry a Coinversa sentiment block. Computed data, not a recommendation. Paid via x402 ($0.02 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
symbol *stringSymbol, e.g. SPY, AAPL, BTC, ETH, SOL (16 equities/ETFs + BTC/ETH/SOL in the core universe)
strategystringReturn only this one strategy's state

trading_signals_board

Full-universe strategy-state snapshot: all 16 equities/ETFs plus BTC, ETH and SOL, each with the five rule-set states and an ensemble state. Computed data, not a recommendation. Paid via x402 ($0.05 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

trading_regime

Market-regime classification (9 states) computed from universe breadth, trend and volatility, with the per-regime strategy-weight table and a summary. Computed data, not a recommendation. Paid via x402 ($0.05 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

trading_backtest

Historical rule-set evaluation over daily bars: net return, win rate, max drawdown and trade count for the latest window (in-sample) and the window before it (out-of-sample walk-forward); optional Monte Carlo block-resample distribution. Computed data, not a performance promise. Paid via x402 ($0.05 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
strategy *stringRule set to evaluate
monteCarlobooleanAdd the Monte Carlo distribution (500 simulations)
symbolstringOne symbol (or use symbols)
symbolsarrayUp to 10 symbols
windowDaysintegerWindow length in days (default 90)

trading_indicators

Technical-indicator computation (SMA, EMA, RSI, MACD, Bollinger Bands, plus the ensemble state) on bars you supply — no external data fetch. Computed data, not a recommendation. Paid via x402 ($0.01 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
barsarrayOHLCV bars (10–5000); each needs at least a close
closesarrayClose prices only (alternative to bars)
emaPeriodsarrayEMA periods (default 12, 26)
rsiPeriodintegerRSI period (default 14)
seriesbooleanAlso return the full indicator series, not just the latest values
smaPeriodsarraySMA periods (default 20, 50, 200)
symbolstringLabel for the series

portfolio_risk

Portfolio risk computation: per-holding and portfolio volatility, Sharpe, Sortino, max drawdown, VaR/CVaR, correlation and concentration analysis; optional predefined-scenario stress tests and Monte Carlo distribution. Bars are fetched per symbol unless you supply closes/bars per holding. Computed data, not a recommendation. Paid via x402 ($0.05 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
holdings *array2–20 holdings, each with dollarValue or weight
monteCarlobooleanAdd the Monte Carlo distribution
stressbooleanRun the predefined stress scenarios
totalValuenumberTotal portfolio value (used with weights)

options_greeks

Black-Scholes model computation (no live quotes): either a generated option chain for an expiry, or multi-leg payoff analysis (max loss/profit, breakevens, net premium) with per-leg Greeks. Model values from inputs, not a recommendation. Paid via x402 ($0.02 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
underlyingPrice *numberCurrent underlying price
expiryDatestringChain expiry, YYYY-MM-DD (chain mode; or use expiryDays)
expiryDaysintegerDays to expiry (default 30)
ivnumberImplied volatility as a decimal (default 0.25)
legsarrayLegs mode: 1–8 option legs to analyse as one strategy
riskFreeRatenumberRisk-free rate as a decimal (default 0.0525)
strikesarrayChain strikes (default: 9 strikes around the underlying)
symbolstringUnderlying symbol label (chain mode)

catalyst_classify

Classify headlines into market-catalyst categories (earnings, merger/acquisition, buyback, dividend, guidance, restructuring, regulatory, legal, news), shaped as events with any tickers you attach. Classification only — no direction or outcome prediction. Paid via x402 ($0.01 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
headlines *arrayUp to 50 headlines, as strings or {headline, tickers} objects

gov_contracts

Recent US federal contract awards (contract types A–D) from the public USAspending.gov API, deduplicated and largest-first, with recipient names resolved to tickers where a confident match exists. Public data, repackaged. Paid via x402 ($0.02 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
daysintegerLookback window in days (default 30)
limitintegerMax awards (default 25)
minAmountnumberMinimum obligated amount in USD (default 1000000)
tickerstringOnly awards resolved to this ticker

token_analytics

Token market-data bundle from public DEX data: price, FDV/market cap, liquidity, volume windows, 24h transactions, pair list and market age. Raw data — no scores or opinions. Paid via x402 ($0.05 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
address *stringToken address: an EVM 0x… contract address or a Solana mint address

chain_balance

Base chain read: native ETH balance of an address. Paid via x402 ($0.002 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
address *string0x address

chain_token_balance

Base chain read: ERC-20 token balance of an address, with the token's symbol and decimals resolved on-chain. Paid via x402 ($0.003 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

ParameterTypeDescription
address *string0x wallet address
token *string0x ERC-20 contract address

chain_block

Base chain read: latest block number, hash, timestamp and transaction count. Paid via x402 ($0.001 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.

chain_gas

Base chain read: current gas price (wei and gwei). Paid via x402 ($0.001 USDC on Base) when a payer wallet is configured; otherwise returns the payment requirements.