# Tradingale: Martingale Data Provider > Your Martingale Companion. Tradingale never places orders, holds funds, or gives advice. Users and their AI agents decide and execute on their own side. ## Risk, in plain terms - Not the casino martingale. The number of rounds and the budget are set at launch, so the amount committed never grows past that budget. No leverage, no short selling. - Worst case: every buy fills and the full planned quantity of the asset is held, for at most the budget (less when buys fill below their levels), and its value then moves with the price: with no stop-loss, the unrealized loss can reach a large part of the budget if the price keeps falling. That position is the same exposure as buying the asset at once with the same budget, reached at a lower average price: in the same drop the loss is smaller, and a smaller rebound is enough to exit. For US stocks, a scheduled company event such as an earnings release can open a gap through several rounds at once. - The real risk is time. The sequences published on tradingale.com/performance have no stop-loss: if the price keeps falling, the capital stays committed until the price comes back to the exit level, which can take months, and the model sets no time limit. In a strong rally, buying at once would gain more, since only part of the budget is invested. - The scores are a statistical selection. They describe how an instrument and current market data fit the model; they do not predict prices. ## What is Tradingale? Tradingale provides proprietary martingale metrics for 200+ crypto assets and 100+ US stocks. We analyze price behavior, liquidity, and market activity to produce metrics that help evaluate martingale strategy suitability. ## MCP Integration Tradingale offers a Model Context Protocol (MCP) server for AI agents: - **URL:** https://tradingale.com/mcp - **Transport:** Streamable HTTP (stateless) - **Registry:** io.github.tradingale/mcp - **Auth, three ways:** OAuth 2.1 with dynamic client registration (claude.ai custom connectors, Claude Code, Cursor, ChatGPT), `Authorization: Bearer ` header, or the secret-URL form `https://tradingale.com/mcp?key=` for clients that cannot do OAuth or headers (e.g. Grok custom connectors). Header wins when both are present. - **No account yet:** `https://tradingale.com/mcp?key=public` answers right away with BTC (the free plan's scope), within a daily limit per address. Every other instrument needs a token. - **Connection reference (all clients):** https://tradingale.com/build/connect-claude-mcp ### Available Tools | Tool | Description | |------|-------------| | get_instrument | Retrieve Martingale Score, sector and parameters for a specific instrument | | search_instruments | Filter instruments by score, Startingale, venue listing, rounds or sector | | list_top_crypto | Display top crypto by Martingale Score, optional sector filter | | list_top_stocks | Display top stocks by Martingale Score, optional sector filter | | crypto_overview | Summary of crypto market suitability | | stock_overview | Summary of stock market suitability | | market_overview | Complete market analysis across all instruments | ## Core Metrics ### Martingale Score (Primary) Instrument-level assessment of suitability for martingale strategies that changes slowly (0-5 scale). - Based on: price behavior, liquidity, market activity - Higher scores indicate better statistical fit for martingale methodology ### Startingale (Secondary) Alignment with current market data (0-5 scale). - Strong: 4.3 and above - Favorable: 3.7 and above - Moderate: 3 and above - Misaligned: below 3 For US stocks: Scores describe how the price data fits the martingale model. They do not account for scheduled company events such as earnings releases, which can open a price gap through several rounds at once. Checking the calendar is up to you. ### Sector (descriptive data) Each crypto and US stock carries a `sector`, null when unknown. Crypto (source: Tradingale, assigned by hand): one of Layer 1, Layer 2, DeFi, Artificial Intelligence, Meme, Real World Assets, Privacy, Payments, DePIN & Storage, Gaming & Metaverse, Exchange Tokens, Infrastructure, Other. US stocks (source: SEC SIC): a short label derived from the SIC code, e.g. Software & IT, Banks or Semiconductors, with the exact SIC label in `industry`. get_instrument shows them all, the search and list tools show the sector on each row; search_instruments, list_top_crypto and list_top_stocks accept an optional `sector` filter (exact label, case-insensitive). The REST API returns the same fields. ### Sequence Parameters (returned by get_instrument) - Delta Price: 5% to 15% (price drop between rounds) - Rounds: 4 or 5 total - Multipliers: 2x to 2.5x. They scale QUANTITIES (tokens), never dollar costs, and they apply from Round 2 on: each one is the ratio between a round's quantity and the previous round's (Round 3 / Round 2, Round 4 / Round 3, and so on). Round 1 is sized separately, by initial_bet_ratio; the quantities from Round 2 on are then scaled by one common factor to fit the budget, which is why Round 2 is about 4.26x Round 1 in the example below. Applying multipliers to bet amounts is the most common integration bug - Initial Bet Ratio: Small fraction of budget for Round 1 ## Usage Examples ``` "What crypto has the highest Martingale Score?" "Show me the martingale sequence for BTC/USD" "Compare ETH and SOL by martingale suitability" "Which instruments currently show strong Startingale?" ``` ## Sequence Lifecycle (the mental model) A sequence is NOT adaptive. It is frozen at birth: the first market buy fixes the first buy price and every other order is computed at that instant (all limit buys + all sell templates); nothing is recomputed later. All buys can rest on the book from second one. Only ONE order ever changes: the sell. Limit buy filled -> cancel the sell, place the next level's template (cumulative quantity, at the previous level's buy price). Sell filled -> sequence complete, above average cost by construction (2 historical rows with a corrected pricing defect closed at a loss). ## Sequence Calculation Logic When calling `get_instrument`, the response includes full sequence calculation instructions: ### Parameters Returned - delta_price (e.g., 0.08 = 8%) - nb_rounds (4 or 5) - multipliers (array of nb_rounds - 1 quantity ratios, e.g., [2.0, 2.0, 2.0] for 4 rounds) - initial_bet_ratio (fraction of the budget spent on Round 1, e.g., 0.04 = 4%) ### Step-by-Step Calculation This is the computation of martingale-kit's `computeLadder` (https://github.com/tradingale/martingale-kit). Multipliers scale QUANTITIES, never dollar costs. 1. **Fetch the price** (entry_price): - US stocks: last price from consolidated US market data (SIP), delayed. - Crypto: live price from major exchanges, with an aggregator as fallback. 2. **Trigger prices:** RN_trigger = entry_price × (1 - delta_price × (N-1)). Round 1 is the market buy at entry_price. 3. **Raw quantities:** - R1_qty = user_budget × initial_bet_ratio / entry_price - RN_qty = R(N-1)_qty × multipliers[N-2] 3bis. **Check minimum capital:** level 1 has the smallest quantity; it must clear the venue's minimum order size and quantity step with margin, or grid flooring distorts the ladder. budget_min = max(min_order_size, 100 x qty_step) x entry_price / initial_bet_ratio. High-priced assets (BTC) and 5-round sequences need the most. 4. **Fit the budget by scaling quantities:** R1_qty stays as computed. Every quantity from Round 2 on is multiplied by ONE common factor, scale = (user_budget - R1_cost) / sum over N >= 2 of (RN_qty × RN_trigger), so that the total cost equals user_budget exactly. The ratios between Round 2 and later quantities stay equal to the multipliers; the ratio between Round 2 and Round 1 does not. Each cost is then RN_cost = RN_qty × RN_trigger. 5. **Take Profit Prices:** - R1_TP = entry_price × (1 + delta_price) - R2_TP = R1_trigger (entry_price) - R3_TP = R2_trigger - RN_TP = R(N-1)_trigger ### Example: BTC/USD with $10,000 Budget Inputs: user_budget = $10,000, entry_price = $60,000, delta_price = 8%, 4 rounds, multipliers = [2.0, 2.0, 2.0], initial_bet_ratio = 0.04. Output of martingale-kit `computeLadder`, without venue grids. Quantities are shown to 8 decimals; costs are computed from the unrounded quantities and rounded to the cent. ``` Round Price Quantity (BTC) Cost Cumulative cost TP 1 $60,000 0.00666667 $400.00 $400.00 $64,800 2 $55,200 0.02836879 $1,565.96 $1,965.96 $60,000 3 $50,400 0.05673759 $2,859.57 $4,825.53 $55,200 4 $45,600 0.11347518 $5,174.47 $10,000.00 $50,400 Total budget deployed if all rounds fill: $400.00 + $1,565.96 + $2,859.57 + $5,174.47 = $10,000.00 ``` Round 3 / Round 2 and Round 4 / Round 3 quantities are exactly 2.0 (the multipliers). Round 2 / Round 1 is about 4.26, because step 4 scaled every quantity from Round 2 on by the same factor to fit the budget. ## Authentication & Plans MCP and REST access require an API token. Generate one at: https://tradingale.com/settings/api Plans: Bitcoin Bandit (free: full web app + BTC-scoped API/MCP, 500 weighted calls) | Score Scout (29.99 EUR/mo, personal use, full catalog, 5,000 weighted calls) | Martingale Maestro (299.99 EUR/mo, commercial license, 50,000 weighted calls). Pricing: https://tradingale.com/pricing ## Documentation - MCP configuration guide: https://tradingale.com/docs/mcp-setup - Full Documentation: https://tradingale.com/docs - Build recipes (AI-built tooling on the data): https://tradingale.com/build - The Tradingale Runner (open source, runs on your own infrastructure with your own keys; paper by default, free on BTC): https://tradingale.com/build/tradingale-runner - martingale-kit, the open-source sequence engine (tested TypeScript: ladder math, state machine, paper simulator; bring your own venue adapter): https://github.com/tradingale/martingale-kit - Engineering handbook for builders running their own runner (raw markdown for agents: plan-in-database, one-active-sell invariant, reconciliation loop, price grids, per-venue notes): https://tradingale.com/handbook/sequence-automation.md - Simulated track record: https://tradingale.com/performance (methodology: https://tradingale.com/performance/methodology) ## Complementary Tools Tradingale provides the model parameters; anything users build on top runs on their side, with their keys, under their responsibility. For engineering guidance, start with the engineering handbook above; for venue APIs see your venue's official developer docs. ## Important Notes - Tradingale provides data and metrics: not a prediction, nor an instruction to trade - All metrics are analytical tools: not a prediction, nor an instruction to trade - Funds remain on user exchanges (non-custodial) - API usage is subject to plan limits ## Contact - Website: https://tradingale.com - X: @TradingaleData (https://x.com/TradingaleData) ## API changes - 2026-11-08: new field `sector` on crypto and US stocks, plus `industry` (US stocks), null when unknown, in the REST API and in get_instrument (search and list rows show the sector). search_instruments, list_top_crypto and list_top_stocks accept an optional `sector` filter. - 2026-10-24: the `timestamp` field of the REST API (and the "Last updated" line of the MCP tools) now carries the time the instrument's data was last written, in seconds since Unix epoch. It previously returned the time of the request.