{"data":{"name":"io.github.SKalinin909/tradingcalc","title":"TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures","description":"Deterministic options, forex, risk, on-chain & futures math. 77 tools. Not AI estimates.","version":"2.15.0","websiteUrl":null,"repositoryUrl":"https://github.com/SKalinin909/tradingcalc-mcp","remotes":[{"url":"https://tradingcalc.io/api/mcp","type":"streamable-http"}],"packages":[],"status":"active","isLatest":true,"publishedAt":"2026-10-22T19:26:30.124Z","updatedAt":"2026-10-22T19:26:30.124Z","source":"official-registry","verification":"official","confidence":100,"stars":null,"sources":[{"stars":null,"title":"TradingCalc MCP: Options, Forex, Risk Stats, Prediction Markets, On-Chain & Crypto Futures","source":"official-registry","sourceId":"io.github.SKalinin909/tradingcalc","updatedAt":"2026-10-22T19:26:30.124Z","confidence":100,"websiteUrl":null,"description":"Deterministic options, forex, risk, on-chain & futures math. 77 tools. Not AI estimates.","verification":"official","repositoryUrl":"https://github.com/SKalinin909/tradingcalc-mcp"}],"toolIndex":{"tools":[{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"primitive.average_entry","title":"Average Entry Price","description":"Calculate the weighted average entry price from multiple buy/sell fills (DCA): the bare number only, no breakeven or per-fill breakdown. Edge cases: symbol non-empty; at least one fill, each price and quantity above zero (size is accepted as quantity); leverage above zero is optional. The average is weighted by quantity. Not covered: fees, sells or partial closes (give only the fills still open), and funding. Use when user asks only \"what's my average entry?\" and wants just that figure. Each fill is { price, quantity } here (workflow.run_dca_entry calls the same field size). For breakeven and a per-level summary too, use workflow.run_dca_entry instead. Returns: averagePrice, totalSize, totalCost.","inputSchema":{"type":"object","properties":{"symbol":{"type":"string","description":"Trading pair symbol, e.g. BTCUSDT"},"exchangeCode":{"type":"string","description":"Exchange identifier (optional)"},"input":{"type":"object","description":"Object with a \"fills\" array, e.g. { \"fills\": [{ \"price\": 60000, \"quantity\": 0.5 }, { \"price\": 58000, \"quantity\": 1 }] }","properties":{"fills":{"type":"array","description":"Buy/sell fills to average, each with a price and a quantity (at least 1)","items":{"type":"object","properties":{"price":{"type":"number","description":"Fill price"},"quantity":{"type":"number","description":"Fill quantity, required unless \"size\" is given (the same field)"},"size":{"type":"number","description":"Same field as quantity"}},"required":["price"]},"minItems":1}},"required":["fills"]},"contractType":{"type":"string","enum":["linear","inverse"],"description":"linear = USDT-margined, average is the arithmetic mean (default). inverse = coin-margined, average is the harmonic mean (fill quantity is USD notional)."}},"required":["symbol","input"]},"annotations":{"title":"Average Entry Price","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"48ddabbbc29d6d10216129bba2e91ab74332f10868e9cebb4efe5db13af03aa0","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"primitive.hedge_ratio","title":"Hedge Ratio","description":"Calculate the short perpetual futures position size needed to hedge a spot holding. Default USDT-linear: sizes and costs in USD. With contractType \"inverse\" (coin-margined, needs entryPrice) the short is the same USD contracts and margin and funding come back in the base coin. Edge cases: spotSize above zero (USD value); hedgeRatio 0 to 200 percent (default 100); leverage 1 or more (default 1); fundingRatePct in percent per interval (0.01 is 0.01%, default 0.01); intervalHours 0.25 to 24 (default 8); an inverse contract needs entryPrice. Not covered: basis risk between spot and the perp, rebalancing as prices move, margin calls, and a funding rate that changes. Use when user asks \"how much should I short to hedge my BTC?\" or \"what margin do I need for a 100% hedge?\". Returns: perpNotional, requiredMargin, dailyFundingCost, annualFundingCost, hedgeCoverage, contractType and costUnit (\"USD\", or \"base_coin\" for inverse: read it before showing margin or funding as dollars). Inverse converts at the one entryPrice you give, so the coin figures assume the price stays there.","inputSchema":{"type":"object","properties":{"spotSize":{"type":"number","description":"Spot position value in USDT"},"hedgeRatio":{"type":"number","description":"Percentage of spot to hedge, e.g. 100 for full hedge, 50 for half. Default 100."},"leverage":{"type":"number","description":"Leverage on the perp short. Default 1."},"fundingRatePct":{"type":"number","description":"Current funding rate per funding interval in PERCENT: 0.01 means 0.01%, so a quoted 0.0125% is 0.0125 (per 8h unless intervalHours says otherwise). Used for cost estimate."},"intervalHours":{"type":"number","minimum":0.25,"maximum":24,"description":"Hours between funding payments, the period fundingRatePct covers. Default 8 (3 payments a day); 1 on Hyperliquid, dYdX, Kraken and Backpack (per-hour rates); 4 or 2 on some symbols of Binance, Bybit, OKX, Gate, KuCoin, MEXC, Aster and Phemex."},"contractType":{"type":"string","enum":["linear","inverse"],"description":"linear = USDT-margined (default). inverse = coin-margined: spotSize stays the USD value of the holding, requiredMargin and the funding costs are returned in the base coin."},"entryPrice":{"type":"number","description":"Coin price in USD. Required for contractType inverse (converts the USD margin and funding to coin); ignored for linear."}},"required":["spotSize"]},"annotations":{"title":"Hedge Ratio","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"c3d7aafb17b4e0c57726b1c48d3a144d7d0a7374757a7cb762ab27375cd13553","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_american_option","title":"American Option","description":"Price of an AMERICAN put or call (exercisable on any day up to expiry) on a Cox-Ross-Rubinstein binomial tree with early exercise checked at every node, with a continuous dividend yield. Use it for stock and ETF style options; crypto options on Deribit and Binance are European (`workflow.run_black_scholes`). Output: americanPrice, delta, gamma, thetaPerDay (calendar day, read from the tree, typically 0 when exercising now is optimal), intrinsicValue, earlyExerciseNow (a tree reading: exercising now beats holding), europeanPrice (Black-Scholes, same inputs), earlyExercisePremium, europeanTreePrice and treeError (what the chosen step count costs: the same tree without early exercise minus the exact European price). More steps are closer to the exact value, not smoothly. Rates 0 to 100 percent, dividend yield is a continuous yield, not dated dividends; steps are a whole number from 50 to 2000 (default 500). Prices are USD per unit of underlying. Edge cases: spot, strike, daysToExpiry (at most 3650) and volatilityPct (at most 300) above zero; steps a whole number from 50 to 2000; when the rate and the dividend yield are too far apart for the volatility and expiry the tree is invalid and the call is an error that says so; numbers that overflow are an error. The price is a tree value, close to the exact one but not equal to it (see treeError). Not covered: discrete dividends, a volatility smile, negative rates, taxes, margin, transaction costs, and exercise limited to certain dates (Bermudan).","inputSchema":{"type":"object","properties":{"optionType":{"type":"string","enum":["call","put"],"description":"American call or put"},"spot":{"type":"number","description":"Current price of the underlying"},"strike":{"type":"number","description":"Strike price, same units as spot"},"daysToExpiry":{"type":"number","description":"Calendar days to expiry (up to 3650)"},"volatilityPct":{"type":"number","description":"Annualized volatility in percentage points (e.g. 30 for 30%), at most 300"},"riskFreeRatePct":{"type":"number","description":"Annual risk-free rate in percent, 0 to 100. Default 0."},"dividendYieldPct":{"type":"number","description":"Continuous dividend yield in percent per year, 0 to 100. Default 0."},"steps":{"type":"integer","description":"Binomial tree steps, whole number from 50 to 2000. Default 500."}},"required":["optionType","spot","strike","daysToExpiry","volatilityPct"]},"annotations":{"title":"American Option","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"0e515d3a3b2bc1beb77e27f990b30ceec3a874934d046f12d9ad5ada297fd4e3","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_apy_apr_converter","title":"Apy Apr Converter","description":"Convert an APR (nominal yearly rate) to an APY (effective yearly rate) or back, for a compounding you choose. APY = (1 + APR / m)^m - 1 for m periods a year, e^APR - 1 when continuous. The same APY is a different APR at every compounding frequency, so the frequency is required: give periodsPerYear (365 daily, 12 monthly) or continuous true, not both. Rates are fractions (0.12 = 12%). It converts rate arithmetic only: it does not include fees, token price moves or the risk that a pool rate changes. Edge cases: rate a fraction from -periodsPerYear (APR) or above -1 (APY) up to 1000; give periodsPerYear (1 to 365) or continuous true, never both and never neither; the rate per period must stay above -100%; a continuous APR above 709 (70,900%) is an error. Not covered: fees, token price moves, a pool rate that changes, taxes, and compounding that is not regular. Use when user asks \"what APR is an 8% APY compounded daily?\" or \"what is 12% APR monthly as an APY?\". Returns: apr, apy, periodsPerYear, continuous, ratePerPeriod, apyMinusApr, byCompounding (the same APY as an APR at annual, semiannual, quarterly, monthly, weekly, daily and continuous compounding).","inputSchema":{"type":"object","properties":{"direction":{"type":"string","enum":["apr_to_apy","apy_to_apr"],"description":"apr_to_apy converts the given APR into an APY; apy_to_apr the reverse"},"rate":{"type":"number","description":"The rate you have, as a fraction per year (0.12 = 12%), up to 1000. An APY must be above -1; an APR must satisfy APR / periodsPerYear above -1"},"periodsPerYear":{"type":"integer","description":"Compounding periods a year, 1 to 365 (12 monthly, 365 daily). Omit when continuous is true"},"continuous":{"type":"boolean","description":"True for continuous compounding; then omit periodsPerYear"}},"required":["direction","rate"]},"annotations":{"title":"Apy Apr Converter","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"589f58dda4a421618af67dde260efd862b80b1434e773e930fb99f28332033fd","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_average_buy_price","title":"Average Buy Price","description":"Real entry price of a spot coin bought and sold in several trades: moving average cost, trades in the order they happened, each with its own fee (no leverage, no funding). The buy fee is part of the cost basis; a sale removes coins at the current average and never changes the average of what is left, only a later buy does; selling everything resets it. Selling more than is held at that point is an error naming the trade. Each fee is a fraction of that trade's value (0.001 = 0.1%, at most 0.05). Edge cases: 1 to 1000 trades; price and quantity above zero; a sale before any buy, or above the holding, is an error; a sale within 1e-12 of the largest holding since the position was last flat counts as selling everything (float noise) and leaves exactly zero, never a residual; when nothing is held the average, before-fee average and break-even are null and costBasis is 0; realizedProfit can be negative. Not covered: taxes, FIFO/LIFO lots (moving average cost only), slippage, withdrawal or network fees, currency conversion, leverage and funding. Prices may be in any currency; results are in the same one. sellFeePct is the fee expected when the remaining coins are sold, used for the break-even sell price. For equal cash buys at a list of prices use workflow.run_spot_dca; for the average entry of a perpetual futures position use primitive.average_entry. Use when user asks \"I bought and sold this coin several times, what is my average buy price and break-even now?\". Returns: remainingQuantity, averageBuyPrice (fees in) and averageBuyPriceBeforeFees (null when nothing is held), costBasis, totalBought, totalSold, totalInvested, totalSellProceeds, realizedProfit, totalFees, breakevenSellPrice (null when nothing is held).","inputSchema":{"type":"object","properties":{"trades":{"type":"array","description":"Trades in the order they happened (1 to 1000)","items":{"type":"object","properties":{"side":{"type":"string","enum":["buy","sell"],"description":"buy or sell"},"price":{"type":"number","description":"Price per coin"},"quantity":{"type":"number","description":"Coins bought or sold"},"feePct":{"type":"number","description":"Fee of this trade as a fraction of its value, 0 to 0.05. Default 0"}},"required":["side","price","quantity"]}},"sellFeePct":{"type":"number","description":"Fee expected when the remaining coins are sold, 0 to 0.05, for the break-even sell price. Default 0"}},"required":["trades"]},"annotations":{"title":"Average Buy Price","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"c02bc0e5f156b98ca1bfc073aac629f2c6418fc30045e2180ac34342fff45c04","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_average_down","title":"Average Down","description":"Should-I-average-down check: for an already-open position, compares adding more at a worse price against the always-available alternative of buying the same final total size fresh at today's price. Returns the new blended average entry, liquidation price and breakeven (before vs. after), margin_added (the actual cash/margin required for the add at this leverage, not the full notional), and three risk figures at your stop-loss: existing_risk (what you already risk, before adding), pyramid_risk (what you'd risk after adding), and clean_entry_risk (what a fresh entry at add_price for the same total size would risk). risk_penalty_pct is how much MORE than that fresh-entry alternative you're risking - for any genuine average-down (add_price worse than existing_entry_price) pyramid_risk is provably always greater than clean_entry_risk. liquidation_before_stop is true when the new liquidation price sits at or beyond your own stop-loss, meaning the exchange would force-close the position before the stop-loss ever triggers. Edge cases: all prices, sizes, stop_loss and leverage above zero; fee_open_pct and fee_close_pct are fractions from 0 to 0.05 (defaults 0.0002 and 0.0005); mmr 0 to 0.2; for a long the stop must be below the add price and for a short above it, otherwise an error (a stop that price already reached means the position should be closed). The risk comparison is meaningful only when the add is at a worse price than the existing entry. Not covered: funding, slippage, a stop that gaps through, and whether the market will recover. Use when user asks \"should I add to this losing position?\" or \"what does averaging down actually cost me here?\". liquidation_price and the liquidation distance are null when the position cannot be liquidated (an inverse short at 1x or less): check for null before using them.","inputSchema":{"type":"object","properties":{"side":{"type":"string","enum":["long","short"],"description":"Trade direction: \"long\" or \"short\""},"existing_entry_price":{"type":"number","description":"Entry price of the position already held"},"existing_size":{"type":"number","description":"Size already held: base-asset quantity for linear, USD notional (contracts) for inverse"},"add_price":{"type":"number","description":"Proposed price to add at - also treated as today's current price for the fresh-entry comparison"},"add_size":{"type":"number","description":"Additional size being considered, same unit convention as existing_size"},"stop_loss":{"type":"number","description":"Stop-loss price (must be below add_price for a long, above it for a short - the position should already be closed otherwise)"},"leverage":{"type":"number","description":"Leverage multiplier"},"fee_open_pct":{"type":"number","description":"Open fee rate (default 0.0002)"},"fee_close_pct":{"type":"number","description":"Close fee rate (default 0.0005)"},"mmr":{"type":"number","minimum":0,"maximum":0.2,"description":"Maintenance margin rate as a fraction, 0 to 0.2 (default 0.005 = 0.5%); not a percent: 0.5% is 0.005, not 0.5"},"mmBase":{"type":"string","enum":["liquidation","entry"],"description":"Value the maintenance margin is taken on: \"liquidation\" = position value at the liquidation price (default), \"entry\" = entry value."},"liqFeeRate":{"type":"number","description":"Liquidation fee as a fraction of position value, default 0, max 0.05; added to mmr."},"contractType":{"type":"string","enum":["linear","inverse"],"description":"linear = USDT-margined (default), inverse = coin-margined. Risk figures come back denominated in the base coin for inverse."}},"required":["side","existing_entry_price","existing_size","add_price","add_size","stop_loss","leverage"]},"annotations":{"title":"Average Down","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"930501890396ae69de42fa1aa99e6c6d7241d24d3cbc24ed020e9a37f7f66104","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_barrier_touch","title":"Barrier Touch","description":"Probability that the price touches a barrier (a target or a stop level) at ANY time within N days, under geometric Brownian motion (reflection principle with drift). This is not the probability of finishing beyond the level at expiry: at zero log-drift a touch is exactly twice as likely as a finish, and `finishBeyondProbabilityPct` is returned next to it for comparison (the end-of-window question itself is `workflow.run_window_fair_value`). Barrier above spot gives an up-touch, below spot a down-touch. Monitoring is continuous (every instant, not daily closes or candle highs, which touch less often); year is 365 days; `driftPct` is the annualized expected price drift, default 0. Output: touchProbabilityPct, finishBeyondProbabilityPct, direction, barrierDistancePct. Edge cases: spot, barrier and daysToExpiry (at most 3650) above zero; volatilityPct 0.01 to 1000; driftPct -1000 to 1000; barrier and spot must be within a factor of about 5e8 of each other. Not covered: a discrete-monitored barrier, knock-in or knock-out option prices, jumps, volatility that changes over time, trading costs; the probability is under a constant volatility and drift.","inputSchema":{"type":"object","properties":{"spot":{"type":"number","description":"Current price, USD (any quote currency)"},"barrier":{"type":"number","description":"The level to touch, same units as spot. Above spot: up-touch; below spot: down-touch"},"daysToExpiry":{"type":"number","description":"Calendar days in the window (can be fractional, up to 3650)"},"volatilityPct":{"type":"number","description":"Annualized volatility in percentage points (e.g. 60 for 60%), at least 0.01"},"driftPct":{"type":"number","description":"Annualized expected price drift in percentage points. Default 0."}},"required":["spot","barrier","daysToExpiry","volatilityPct"]},"annotations":{"title":"Barrier Touch","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"861a89029f5bc394c8f9af6bb0e6e4e10e881855f6c2e04cdcc69b0bb4d4fe2e","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_black_scholes","title":"Black-Scholes Option Price and Greeks","description":"Theoretical European option price and Greeks (delta, gamma, theta, vega, rho) from Black-Scholes, given manual spot/strike/days-to-expiry/volatility/risk-free-rate inputs plus an optional continuous dividend yield for stocks and ETFs (the implied-volatility and option-chain tools do not take one): no live data fetch. The live variant is workflow.run_black_scholes_live, which applies when checking a real Deribit, Binance or Bybit instrument, since that variant also reports how far the instrument's actual quoted price sits from what this formula implies. Prices are USD-denominated (the universal convention); callPriceCoin/putPriceCoin additionally divide by spot to match Deribit's own coin-settled quoting convention. Assumptions: European exercise only, one flat volatility for the whole life (no smile or skew), constant rate and dividend yield, a year of 365 calendar days, theta per calendar day. Edge cases: spot, strike, daysToExpiry and volatilityPct must be above zero; riskFreeRatePct and dividendYieldPct must be between 0 and 100, so a negative rate is refused; a deep out-of-the-money option returns a price and Greeks of exactly 0, and a very low volatility or very short expiry gives a very large gamma and theta, not an error. Not covered: early exercise (use workflow.run_american_option), discrete dividends, negative rates, transaction costs, taxes, margin, and Greeks adjusted for coin-settled (inverse) options: Greeks are standard USD Black-Scholes Greeks. Use when user asks \"what should this option be worth at X% IV?\" or wants raw Greeks for a hypothetical. Returns: callPriceUsd/putPriceUsd, callPriceCoin/putPriceCoin, deltaCall/deltaPut, gamma, vegaPerPct (per 1 vol point), thetaCallPerDay/thetaPutPerDay, rhoCallPerPct/rhoPutPerPct (per 1 rate point).","inputSchema":{"type":"object","properties":{"spot":{"type":"number","description":"Underlying spot price, USD"},"strike":{"type":"number","description":"Strike price, USD"},"daysToExpiry":{"type":"number","description":"Calendar days until expiry (can be fractional)"},"volatilityPct":{"type":"number","description":"Annualized implied volatility in percentage points, e.g. 60 for 60%"},"riskFreeRatePct":{"type":"number","description":"Risk-free rate in percentage points. Default 0: standard crypto-options convention."},"dividendYieldPct":{"type":"number","description":"Continuous dividend yield in percent per year (1.2 means 1.2%), for stock and ETF options. Default 0: crypto has none. Range 0 to 100."}},"required":["spot","strike","daysToExpiry","volatilityPct"]},"annotations":{"title":"Black-Scholes Option Price and Greeks","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"3ba6501dd54d099f15af17bebb7b65b16a540d567bee4f8cc03bc4362a96736d","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_bond_price","title":"Bond Price","description":"Price of a plain fixed-rate bond on a coupon date, with Macaulay duration, modified duration, convexity and DV01. Price = sum of the coupons and the face value discounted at the yield per period (yield / frequency), clean price, no accrued interest, so years x frequency must be a whole number of coupon periods. The yield is the nominal yearly yield to maturity compounded frequency times a year (the bond-market convention). Durations are in years, convexity in years squared. DV01 is the price fall for one basis point of yield, a positive number, the slope at the current yield and not a repricing. It does not include credit risk, call features, taxes or the day-count of a real settlement date. Edge cases: faceValue above zero and at most 1e12 (default 1000); couponRate 0 to 1 as a fraction; yieldRate -1 to 100 with the rate per period above -100%; years above zero and at most 100; frequency a whole number 1 to 12 (default 2); years times frequency must be a whole number of coupon periods. Not covered: accrued interest and a settlement date between coupons, credit risk, call and put features, floating coupons, taxes, and the day-count convention. Use when user asks \"what is a 5-year 5% coupon bond worth at a 6% yield?\" or \"what is the duration and DV01 of this bond?\". Returns: price, pricePctOfFace, status (premium, par, discount), pvOfCoupons, pvOfFace, couponPerPeriod, periods, yieldPerPeriod, currentYield, macaulayDuration, modifiedDuration, convexity, dv01.","inputSchema":{"type":"object","properties":{"faceValue":{"type":"number","description":"Face (par) value repaid at maturity, above 0 (default 1000)"},"couponRate":{"type":"number","description":"Annual coupon rate as a fraction of face value (0.05 = 5%), 0 to 1; 0 is a zero-coupon bond"},"yieldRate":{"type":"number","description":"Nominal yearly yield to maturity as a fraction (0.06 = 6%), compounded frequency times a year; yield / frequency must be above -1"},"years":{"type":"number","description":"Years to maturity, above 0 and at most 100; years x frequency must be a whole number (5 years semiannual is 10 coupons)"},"frequency":{"type":"integer","description":"Coupon payments a year, 1 to 12 (default 2: semiannual; 1 annual, 4 quarterly, 12 monthly)"}},"required":["couponRate","yieldRate","years"]},"annotations":{"title":"Bond Price","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"6c10bb9292810f9c54f28882d21f46a2161e3f40ad549f3c39a7fa8a55e236e3","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_bonding_curve","title":"Bonding Curve","description":"Pump.fun-style bonding curve calculator: exact tokens received for a buy, price impact, and graduation progress. Pure constant-product math (Uniswap V2 style) using pump.fun's official virtual-reserve constants: no live lookup needed, works for any token still on the curve (not yet graduated to a real AMM pool). Edge cases: solRaisedSoFar from 0 up to the graduation amount (a graduated token is out of range); solToSpend above zero. Pure constant-product math with pump.fun virtual-reserve constants, no live lookup. Not covered: the pump.fun trading fee unless stated in the result, slippage from other buyers landing first, tokens that already graduated to a real pool, and other launchpads with a different curve. Use when user asks \"how many tokens do I get buying X SOL on this curve?\" or \"will this buy graduate the token?\". Returns: tokensOut, priceImpactPct, progressPctBefore/After, willGraduate, partialFill (true if the buy exceeds remaining curve capacity).","inputSchema":{"type":"object","properties":{"solRaisedSoFar":{"type":"number","description":"SOL already raised on the curve so far (0 for a brand-new token)"},"solToSpend":{"type":"number","description":"SOL amount for this buy"}},"required":["solRaisedSoFar","solToSpend"]},"annotations":{"title":"Bonding Curve","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"030b929d569b6616f5ca280f5699ca2cac38591d7d53066843ad93c1462c0532","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_breakeven_planning","title":"Breakeven Planning","description":"Calculate the break-even exit price that covers all trading fees: this alone, nothing else. Edge cases: entryPrice and sizeBase above zero; feeOpenPct and feeClosePct fractions from 0 to 0.05 (defaults 0.0002 and 0.0005). Fees only. Not covered: funding (use workflow.run_funding_breakeven), slippage and spread. Use when user asks only \"what price do I need to just break even?\" and nothing more. If the user also gave a stop/target or wants a full trade-safety check, use workflow.run_risk_reward or workflow.run_pre_trade_check instead; both already include this breakeven figure plus more. Returns: breakevenPrice, totalFees.","inputSchema":{"type":"object","properties":{"side":{"type":"string","enum":["long","short"],"description":"Trade direction: \"long\" or \"short\""},"entryPrice":{"type":"number","description":"Entry price (positive)"},"sizeBase":{"type":"number","description":"Position size: base asset qty for linear, USD contracts for inverse"},"feeOpenPct":{"type":"number","description":"Opening fee fraction, default 0.0002"},"feeClosePct":{"type":"number","description":"Closing fee fraction, default 0.0005"},"contractType":{"type":"string","enum":["linear","inverse"],"description":"linear = USDT-margined (default), inverse = coin-margined. For inverse, totalFees is returned in the base coin."}},"required":["side","entryPrice","sizeBase"]},"annotations":{"title":"Breakeven Planning","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"6a9ed1080eecafb183efcf104bad7a55a677a80926d8ad4187df3354939b63d7","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_cagr","title":"Cagr","description":"Compound annual growth rate between a beginning and an ending value over a number of years: the constant yearly rate that turns one into the other, (ending / beginning)^(1 / years) - 1. A smoothed average: it hides the path and the volatility in between, and it says nothing about future growth. Both values must be positive. Edge cases: beginningValue and endingValue above zero (a start or end of zero or below has no growth rate); years above zero and at most 1000, a fraction of a year is fine. Not covered: contributions or withdrawals in between (that is not CAGR), the path and volatility between the two dates, and any forecast; CAGR smooths a bumpy path into one rate. Use when user asks \"what is the CAGR of my portfolio?\" or \"what yearly growth takes $10,000 to $25,000 in 8 years?\". Returns: cagr, totalReturn, growthMultiple, logGrowthRate (all fractions; logGrowthRate is the continuously compounded rate).","inputSchema":{"type":"object","properties":{"beginningValue":{"type":"number","description":"Value at the start (positive)"},"endingValue":{"type":"number","description":"Value at the end (positive), same currency"},"years":{"type":"number","description":"Years between them, above 0 and at most 1000 (fractions allowed, e.g. 2.5)"}},"required":["beginningValue","endingValue","years"]},"annotations":{"title":"Cagr","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"c4ddd8fb82903e49d8de10c0bc5820fd83fb3773df82faf3f5f41af40486c069","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_carry_trade","title":"Carry Trade","description":"Delta-neutral carry trade (funding arbitrage) analysis, with a profitable/marginal/loss verdict on top of the same math primitive.funding_arb uses. Compared with primitive.funding_arb, this one adds output for the case where a plain-English verdict is wanted, not just the raw numbers. Edge cases: notional and hold_days above zero; funding_rate_long and funding_rate_short are in PERCENT per interval (0.01 means 0.01%), either sign; transfer_fee_pct 0 or more, one way (default 0.1); interval_hours 0.25 to 24 (default 8), one interval for both legs. Not covered: price divergence between the two venues, liquidation of either leg, margin needed on both venues, rates that change during the hold, and withdrawal limits; the result assumes the rates stay as given. Use when user asks \"is this carry trade worth it?\": long on exchange A, short on exchange B, collect the funding rate spread. Returns: netYieldPct, grossProfit, netProfit, breakevenDays, verdict (profitable/marginal/loss).","inputSchema":{"type":"object","properties":{"notional":{"type":"number","description":"Position notional in USDT"},"funding_rate_long":{"type":"number","description":"Funding rate on the long exchange per interval, in percent (0.01 means 0.01%, not 0.0001)"},"funding_rate_short":{"type":"number","description":"Funding rate on the short exchange per interval, in percent (0.01 means 0.01%, not 0.0001)"},"transfer_fee_pct":{"type":"number","description":"One-way transfer fee % (default 0.1)"},"hold_days":{"type":"number","description":"Hold duration in days"},"interval_hours":{"type":"number","minimum":0.25,"maximum":24,"description":"Hours between funding payments, one interval for both legs (default 8; 1 for hourly venues; 4 or 2 on some symbols). A leg paid on another interval is entered as its rate times (this interval / its own interval)."}},"required":["notional","funding_rate_long","funding_rate_short","hold_days"]},"annotations":{"title":"Carry Trade","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"81b8c430cb57198b74563fbbf0b55b7ed80e3c995d5731d90e8aedbb5fac247f","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_cash_secured_put","title":"Cash Secured Put","description":"Cash-secured put on a US stock or ETF, in US dollars with the standard 100-share contract (NOT Deribit and not coin-settled): you sell puts and hold the cash to buy the shares if they are assigned. Returns the premium income, the cash held as collateral (strike x 100 x contracts), the return for the period (premium / collateral) and the simple annualized return by days to expiry (365-day year, not compounded), the effective buy price if assigned (strike minus premium, which is also the breakeven), the net cost of the shares if assigned, the maximum profit (the premium), the maximum loss (shares to zero) and the dollars lost per $1 the price falls below the breakeven. Optional spotPrice adds the discount to buying the shares now and the strike distance from the spot; optional scenarioPrice adds the P&L at expiry at that price, whether the put is assigned, and the same price move compared with buying the shares now at spotPrice. A scenario price exactly at the strike counts as not assigned (the P&L is the same either way). A premium at or above the strike is refused. The premium is the one you type (per share, as quoted); commissions, early assignment, taxes, dividends and interest on the cash are not modelled. Edge cases: strike above zero; premium 0 or more and below the strike; contracts a whole number from 1 to 1,000,000; daysToExpiry 1 to 3650; spotPrice above zero and scenarioPrice 0 or more when given. Not covered: a fractional contract, and (already stated) commissions, early assignment, taxes, dividends and interest on the cash. Use when the user asks what selling a cash-secured put pays, what price they would effectively buy at, or whether it beats buying the stock now. Prices are computed, nothing is fetched.","inputSchema":{"type":"object","properties":{"strike":{"type":"number","exclusiveMinimum":0,"description":"Strike price of the put, USD per share, above 0"},"premium":{"type":"number","minimum":0,"description":"Premium received per share as quoted, USD, 0 or more and below the strike. A contract covers 100 shares, so 2.50 pays 250 dollars per contract."},"contracts":{"type":"integer","minimum":1,"maximum":1000000,"description":"Number of contracts sold, a whole number from 1 to 1,000,000"},"daysToExpiry":{"type":"number","minimum":1,"maximum":3650,"description":"Calendar days to expiry, 1 to 3650"},"spotPrice":{"type":"number","exclusiveMinimum":0,"description":"Optional: the share price today, USD, above 0, for the comparison with buying now"},"scenarioPrice":{"type":"number","minimum":0,"description":"Optional: a share price at expiry, USD, 0 or more, to report the P&L at"}},"required":["strike","premium","contracts","daysToExpiry"]},"annotations":{"title":"Cash Secured Put","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"9c633dc962e85a85639c749a7cefdd62e6b3eabc349c38ecfa887ce62711cf81","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_compound_funding","title":"Compound Funding","description":"Project capital growth from reinvesting perpetual futures funding income (compounding carry). Edge cases: initialCapital above zero; fundingRatePct in percent per interval (0.01 is 0.01%), either sign; intervalHours a whole number that divides 24 (1, 2, 3, 4, 6, 8, 12 or 24, default 8); durationDays above zero and at most 3650; reinvestPct 0 to 100 (default 100); a result too large to represent is an error. Assumes the rate stays constant. Not covered: a changing rate, fees, taxes, and the capital limits a venue may set. Use when user asks \"how much will I make compounding 0.01% funding for 90 days?\" or \"what's my APY on this carry position?\". Funding received is split by reinvestPct (the rest is withdrawn and still counts as earned); funding paid comes out of capital in full, and the capital never goes below 0. Returns: finalCapital, totalWithdrawn, endValue, totalEarned, totalEarnedPct, annualizedAPY, dailyEarnings, snapshots.","inputSchema":{"type":"object","properties":{"initialCapital":{"type":"number","exclusiveMinimum":0,"description":"Starting capital in USDT"},"fundingRatePct":{"type":"number","description":"Funding rate per interval in PERCENT: 0.01 means 0.01%, so a quoted 0.0125% is 0.0125, never 0.000125"},"intervalHours":{"type":"number","enum":[1,2,3,4,6,8,12,24],"description":"Hours between funding payments, the period fundingRatePct covers, a whole number of hours that divides 24. Default 8; 1 on Hyperliquid, dYdX, Kraken and Backpack (per-hour rates); 4 or 2 on some symbols."},"durationDays":{"type":"number","maximum":3650,"exclusiveMinimum":0,"description":"Number of days to project, up to 3650"},"reinvestPct":{"type":"number","minimum":0,"maximum":100,"description":"Percentage of funding received that is reinvested each interval, 0-100 (the rest is withdrawn and counts as earned; funding paid always comes out of capital). 100 = full compounding. Default 100."}},"required":["initialCapital","fundingRatePct","durationDays"]},"annotations":{"title":"Compound Funding","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"19e34feb55b19c27e754546f3a17897f5e779a2d66fb51b29fa5bff201659980","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_covered_call_protective_put","title":"Covered Call and Protective Put","description":"Covered call (long the coin + short a call against it, for yield) or protective put (long the coin + long a put, for downside insurance) on a Deribit BTC/ETH position. Returns the standard annualized-yield metric (premium ÷ 1 coin, annualized by 365/daysToExpiry) up front: that number doesn't depend on any price scenario. Also returns the USD value of the combined position at a given scenario price: covered call caps upside at strike + premium×scenarioPrice (the premium's own coin-denominated value still scales with price, unlike a textbook USD-settled cap); protective put floors value at strike×(1−premium), which is the true minimum across every possible settlement price, not just an approximation. Edge cases: spotEntry, strike, daysToExpiry, quantity and scenarioPrice above zero; premiumCoin above zero and at most 0.999 (Deribit form). The annualized yield is simple, 365 / daysToExpiry, not compounded. Not covered: early assignment, margin, fees, taxes, dividends, rolling, and the P&L before expiry. Use when user asks \"what annualized yield do I get selling covered calls on my BTC?\" or \"how much does insuring my BTC with a put cost me?\". Returns: staticYieldPct, annualizedYieldPct, valueAtScenarioUsd, breakevenPrice (covered_call only), floorValueUsd (protective_put only), vsHoldingUsd (vs. just holding the coin). With exchange \"binance\" (USDT-settled, premiumUsdt) the yield is premium divided by spotEntry (one unit is not a fraction of a coin), annualized by 365/daysToExpiry, and it returns: staticYieldPct, annualizedYieldPct, valueAtScenarioUsdt (covered call = min(S, K) + premium per unit), breakevenPrice (covered_call: spotEntry - premium, null when the cap sits below the cost), capValuePerUnitUsdt (covered_call: strike + premium), floorValuePerUnitUsdt (protective_put: strike - premium), vsHoldingUsdt; USDT is not converted to USD.","inputSchema":{"type":"object","properties":{"exchange":{"type":"string","enum":["deribit","binance"],"description":"Venue whose settlement rules apply. \"deribit\" (default): BTC/ETH, coin-settled, premium in the base coin. \"binance\": BTC/ETH/XAU/XAG, USDT-settled, flat payoff max(0, S-K) per unit, premium in USDT (use the *Usdt premium fields); the result carries exchange and settlement fields."},"strategy":{"type":"string","enum":["covered_call","protective_put"],"description":"\"covered_call\" (hold the coin, sell a call against it) or \"protective_put\" (hold the coin, buy a put as insurance)"},"currency":{"type":"string","enum":["BTC","ETH","XAU","XAG"],"description":"Underlying. Default BTC. XAU and XAG (gold, silver) only with exchange binance."},"spotEntry":{"type":"number","description":"Price you acquired/value the underlying coin at, USD; used for the covered-call breakeven vs. cost basis"},"strike":{"type":"number","description":"Option strike, USD"},"premiumCoin":{"type":"number","description":"Deribit only. Premium received (covered_call) or paid (protective_put) per contract, in the base coin"},"premiumUsdt":{"type":"number","description":"Binance only. Premium received (covered_call) or paid (protective_put) per unit, in USDT; must be < spotEntry for a covered call and < strike for a protective put"},"daysToExpiry":{"type":"number","description":"Calendar days until expiry; used to annualize the yield/cost"},"quantity":{"type":"number","description":"Coin units held / contracts (1:1 covered)"},"scenarioPrice":{"type":"number","description":"Underlying price in USD to evaluate the combined position's value at"}},"required":["strategy","spotEntry","strike","daysToExpiry","quantity","scenarioPrice"]},"annotations":{"title":"Covered Call and Protective Put","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"8e02b4896f464ad057c7ecfa6d30e6696c2c14e7c2791b85d43104a7ced3b86a","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_crypto_profit","title":"Crypto Profit","description":"Profit or loss on a spot crypto trade (coins bought and sold outright, no leverage, no funding) after both fees. Give exactly one of investment (total cash spent, buy fee included) or quantity (coins bought). Each fee is a fraction of that fill's trade value (0.001 = 0.1%): the buy fee is paid on top of the coins' cost, the sell fee comes out of the sale value. For a leveraged perpetual futures position see workflow.run_pnl_planning. Edge cases: buyPrice and sellPrice above zero; give exactly one of investment (above zero, buy fee included) or quantity (above zero); buyFeePct and sellFeePct are fractions from 0 to 0.05 (default 0); holdingDays optional, annualized return only from 30 days. Spot only. Not covered: taxes, withdrawal and network fees, slippage, price moves in the quote currency, and leveraged positions (use workflow.run_pnl_planning). Use when user asks \"I bought BTC at $X, what is my profit if I sell at $Y?\" or \"what price do I need to sell at to break even after fees?\". Returns: quantity, totalCost, proceeds, totalFees, profit, roiPct and priceChangePct (fractions), priceMultiple, breakevenSellPrice, annualizedReturnPct (a fraction, only when holdingDays is given and is at least 30, null otherwise: annualizing a shorter hold gives meaningless figures).","inputSchema":{"type":"object","properties":{"buyPrice":{"type":"number","description":"Price paid per coin, in the quote currency (e.g. 60000 for BTC in USD)"},"sellPrice":{"type":"number","description":"Price per coin at the sale, or the price to test, same currency"},"investment":{"type":"number","description":"Total cash spent on the buy, buy fee included (e.g. 1000). Give this or quantity, not both"},"quantity":{"type":"number","description":"Number of coins bought (e.g. 0.5). Give this or investment, not both"},"buyFeePct":{"type":"number","description":"Buy fee as a fraction of the trade value, 0 to 0.05 (0.001 = 0.1%). Default 0"},"sellFeePct":{"type":"number","description":"Sell fee as a fraction of the trade value, 0 to 0.05 (0.001 = 0.1%). Default 0"},"holdingDays":{"type":"number","description":"Optional: days the coins were held; 30 or more also returns the annualized return"}},"required":["buyPrice","sellPrice"]},"annotations":{"title":"Crypto Profit","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"381dad5c336f1fe2191082fcfe6f898b6ddc8d2701cce9fcfa703ca52329424c","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_dca_entry","title":"DCA Entry","description":"DCA entry planner: weighted average entry price, breakeven, and per-level contribution from multiple fill prices and sizes. Each fill is { price, size } here (primitive.average_entry calls the same field quantity). Compared with primitive.average_entry, this one adds output for the case where breakeven or the per-level breakdown is also wanted, not just the bare average. Edge cases: 2 to 20 fills (size also accepted as quantity), each price and size above zero; fee_open_pct and fee_close_pct are fractions from 0 to 0.05 (defaults 0.0002 and 0.0005); every fill is on the same side and the same contract type. Not covered: fills at different times with different fees, partial closes, funding paid while the position was open, and liquidation (use workflow.run_liquidation_safety). Use when user bought at several prices and asks \"what's my average entry?\" or \"where is my DCA breakeven?\". Returns: averageEntry, breakeven, per-level summary.","inputSchema":{"type":"object","properties":{"side":{"type":"string","enum":["long","short"],"description":"Trade direction: \"long\" or \"short\""},"entries":{"type":"array","description":"Fills to average (2 to 20). Each: { price, size }, e.g. [{ \"price\": 60000, \"size\": 0.5 }, { \"price\": 58000, \"size\": 1 }]. Size is base-asset quantity for linear, USD notional (contracts) for inverse.","items":{"type":"object","properties":{"price":{"type":"number","description":"Fill price"},"size":{"type":"number","description":"Fill size, required unless \"quantity\" is given (the same field)"},"quantity":{"type":"number","description":"Same field as size"}},"required":["price"]},"minItems":2,"maxItems":20},"fee_open_pct":{"type":"number","description":"Open fee rate (default 0.0002)"},"fee_close_pct":{"type":"number","description":"Close fee rate (default 0.0005)"},"contractType":{"type":"string","enum":["linear","inverse"],"description":"linear = USDT-margined (default), inverse = coin-margined. Each fill's size is USD notional (contracts) for inverse; averageEntry is then the harmonic mean of fill prices, not the arithmetic mean."}},"required":["side","entries"]},"annotations":{"title":"DCA Entry","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"7ca3d783e4bfcf8ad6c302743adbf1c503e662e5828b73e94921f05a29ed4edd","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_exit_target","title":"Exit Target","description":"Calculate the exact exit price needed to hit a target PnL or ROE percentage. Edge cases: entryPrice, leverage and sizeBase above zero; targetMode pnl or roe, targetValue any number; fees 0 to 0.05 (defaults 0.0002 and 0.0005); a target that cannot be reached from this position is an error. Not covered: funding, slippage, liquidation before the target, and the chance that price gets there. Use when user asks \"at what price do I take profit to make $500?\" or \"where should I set TP for 20% ROE?\". Returns: targetExitPrice.","inputSchema":{"type":"object","properties":{"side":{"type":"string","enum":["long","short"],"description":"Trade direction: \"long\" or \"short\""},"entryPrice":{"type":"number","description":"Entry price"},"leverage":{"type":"number","description":"Leverage multiplier"},"sizeBase":{"type":"number","description":"Position size in base asset"},"targetMode":{"type":"string","enum":["pnl","roe"],"description":"\"pnl\" = target in USDT, \"roe\" = target in %"},"targetValue":{"type":"number","description":"Target value (USDT/coin for pnl mode, or %)"},"feeOpenPct":{"type":"number","description":"Opening fee fraction, default 0.0002"},"feeClosePct":{"type":"number","description":"Closing fee fraction, default 0.0005"},"contractType":{"type":"string","enum":["linear","inverse"],"description":"linear = USDT-margined (default), inverse = coin-margined. For inverse, pnl-mode targetValue and outputs are in the base coin."}},"required":["side","entryPrice","leverage","sizeBase","targetMode","targetValue"]},"annotations":{"title":"Exit Target","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"212df419bcb7e3804776fdbd05b4b1e557f2cb8802a39bf54ea75e72b760004d","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_forex_breakeven","title":"Forex Breakeven","description":"Breakeven price for a forex position accounting for spread and round-trip commission, in pips and in price. Commission is quoted per standard lot (100,000 units) and expressed in the pair's own quote currency; because both commission and pip value scale with lot size, the commission-in-pips figure is independent of position size by construction. Precious-metal pairs (XAU, XAG, XPT, XPD) are refused with an error, because their pip and lot size differ by broker. Edge cases: entryPrice above zero; spreadPips and commissionPerLotRoundTrip zero or more (commission default 0, in the quote currency per 100,000 units round trip); The pair is BASE/QUOTE with two different ISO 4217 currency codes, in any letter case; crypto tickers and precious metals (XAU, XAG, XPT, XPD) are refused. A pip is 0.01 for a pair quoted in JPY and 0.0001 for every other pair, and a standard lot is 100,000 units. Not covered: swap, slippage, requotes, account-currency conversion, and a commission quoted per side or per million. Use when user asks \"where's my true breakeven after spread and commission?\". Returns: pipSize, commissionPips, totalCostPips, breakevenPrice.","inputSchema":{"type":"object","properties":{"pair":{"type":"string","description":"Currency pair in BASE/QUOTE format, e.g. \"EUR/USD\""},"side":{"type":"string","enum":["long","short"],"description":"Trade direction: \"long\" or \"short\""},"entryPrice":{"type":"number","description":"Entry price in the pair's own quote terms, e.g. 1.0850 for EUR/USD"},"spreadPips":{"type":"number","description":"Spread at entry, in pips"},"commissionPerLotRoundTrip":{"type":"number","description":"Round-trip commission per standard lot, in the pair's own quote currency. Default 0 (pure-spread broker model)."}},"required":["pair","side","entryPrice","spreadPips"]},"annotations":{"title":"Forex Breakeven","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"4734a8e3715db807e703f3b99e4d6adda98999e36d76783234345ca605af20ac","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_forex_margin_level","title":"Forex Margin Level","description":"Free margin and margin level % from account equity and used margin: equity/usedMargin*100, the same stop-out proximity metric every forex platform shows. Returns null (not Infinity) when usedMargin is 0, meaning no open position. Edge cases: equity above zero, usedMargin zero or more; usedMargin of 0 returns marginLevelPct null (no open position), not a large number; equity below used margin gives a level under 100. Not covered: a broker margin-call or stop-out threshold (they differ by broker), pending orders, hedged-position margin offsets, and swap or commission not yet charged. Use when user asks \"how close am I to a margin call?\" or \"what's my free margin?\". Returns: freeMargin, marginLevelPct.","inputSchema":{"type":"object","properties":{"equity":{"type":"number","description":"Account equity (balance + floating P&L)"},"usedMargin":{"type":"number","description":"Margin currently locked by open positions. 0 if none."}},"required":["equity","usedMargin"]},"annotations":{"title":"Forex Margin Level","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"7a9d41252e76bff1abd92073ded5b3f923cd3a07fab1b7d99f782912804d600f","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_forex_pip_value","title":"Forex Pip Value","description":"Value of 1 pip for a given forex pair and position size, in that pair's own quote currency (e.g. EUR/USD's pip value comes back in USD, USD/JPY's in JPY): no live FX rate needed, since a pair's pip value is naturally denominated in its own quote currency. Pip size is 0.0001 for non-JPY pairs, 0.01 for JPY-quoted pairs, a universal market convention verified against real broker documentation, not broker-specific. The live variant is workflow.run_forex_pip_value_live, which applies when the account currency differs from the pair's quote currency. Precious-metal pairs (XAU, XAG, XPT, XPD) are refused with an error, because their pip and lot size differ by broker. Edge cases: units above zero; The pair is BASE/QUOTE with two different ISO 4217 currency codes, in any letter case; crypto tickers and precious metals (XAU, XAG, XPT, XPD) are refused. A pip is 0.01 for a pair quoted in JPY and 0.0001 for every other pair, and a standard lot is 100,000 units. The value comes back in the pair quote currency. Not covered: brokers that use a fractional pip (pipette), non-standard lot sizes, metals and indices, and the account-currency conversion (use workflow.run_forex_pip_value_live). Use when user asks \"what's 1 pip worth on X lots of EUR/USD?\". Returns: pipSize, pipValueQuote, base, quote.","inputSchema":{"type":"object","properties":{"pair":{"type":"string","description":"Currency pair in BASE/QUOTE format, e.g. \"EUR/USD\""},"units":{"type":"number","description":"Position size in base-currency units (1 standard lot = 100,000, mini = 10,000, micro = 1,000, nano = 100)"}},"required":["pair","units"]},"annotations":{"title":"Forex Pip Value","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"e90eb9796dda80fa51612f2621d11ad14ee1d44be8e720952eae6ecf2c7542e9","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_forex_pnl","title":"Forex PnL","description":"Profit or loss for a closed or hypothetical forex trade, in pips and in the pair's own quote currency, long or short. Precious-metal pairs (XAU, XAG, XPT, XPD) are refused with an error, because their pip and lot size differ by broker. Edge cases: entryPrice, exitPrice and units above zero; The pair is BASE/QUOTE with two different ISO 4217 currency codes, in any letter case; crypto tickers and precious metals (XAU, XAG, XPT, XPD) are refused. A pip is 0.01 for a pair quoted in JPY and 0.0001 for every other pair, and a standard lot is 100,000 units. The result is in the quote currency; a short position gains when the price falls. Not covered: spread, commission, swap, slippage and account-currency conversion. Use when user asks \"what did I make/lose on this trade?\" or \"what would X pips be worth on Y lots?\". Returns: pips (signed, positive favors the position taken), pnlQuote.","inputSchema":{"type":"object","properties":{"pair":{"type":"string","description":"Currency pair in BASE/QUOTE format, e.g. \"EUR/USD\""},"side":{"type":"string","enum":["long","short"],"description":"Trade direction: \"long\" or \"short\""},"entryPrice":{"type":"number","description":"Entry price in the pair's own quote terms, e.g. 1.0850 for EUR/USD"},"exitPrice":{"type":"number","description":"Exit price, same quote convention as the entry price"},"units":{"type":"number","description":"Position size in base-currency units"}},"required":["pair","side","entryPrice","exitPrice","units"]},"annotations":{"title":"Forex PnL","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"c55f09ade8d44bf6b7ad84feaa935fa0827b7fb81f650f14e9894d21c03f15c3","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_funding_arbitrage","title":"Funding Arbitrage","description":"Calculate funding rate arbitrage profit: annualized yield, net profit, and breakeven days for a long/short basis trade across two exchanges: the bare numbers only, no plain-English verdict. For the same math plus a profitable/marginal/loss verdict, use workflow.run_carry_trade instead. Edge cases: positionSize and durationDays above zero; longFundingRate and shortFundingRate in percent per interval (0.01 is 0.01%), either sign; transferFeePct 0 or more (default 0.1); intervalHours 0.25 to 24 (default 8). Not covered: price divergence between the venues, liquidation of either leg, margin on both venues, a rate that changes during the hold, and trading fees. Use when user asks \"is this funding arb worth it?\" or \"how many days to break even on transfer fees?\". Returns: netProfitUsdt, annualizedYieldPct, breakevenDays.","inputSchema":{"type":"object","properties":{"positionSize":{"type":"number","description":"Position size in USDT"},"longFundingRate":{"type":"number","description":"Funding rate on long side (% per interval, positive = you pay)"},"shortFundingRate":{"type":"number","description":"Funding rate on short side (% per interval, positive = you receive)"},"transferFeePct":{"type":"number","description":"One-time transfer/setup fee as percentage, e.g. 0.1 for 0.1%"},"durationDays":{"type":"number","description":"Holding period in days"},"intervalHours":{"type":"number","minimum":0.25,"maximum":24,"description":"Hours between funding payments, one interval for both legs. Default 8; 1 on Hyperliquid, dYdX, Kraken and Backpack (per-hour rates); 4 or 2 on some symbols. A leg paid on another interval is entered as its rate times (this interval / its own interval)."}},"required":["positionSize","longFundingRate","shortFundingRate","durationDays"]},"annotations":{"title":"Funding Arbitrage","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"de2ea08462eea2003a734bfb74a37c9af19b1aa818984617f09f45b117af4ac2","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"},{"serverName":"io.github.SKalinin909/tradingcalc","endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","name":"workflow.run_funding_breakeven","title":"Funding Breakeven","description":"Price move needed to cover funding cost + fees over a holding period. Edge cases: entry_price, size and hold_hours above zero; funding_rate is a decimal per funding interval (0.0001 is 0.01%), either sign; funding_interval_hours 0.25 to 24 (default 8); fees are fractions from 0 to 0.05. If carry cost exceeds what any price move can offset, the call is an error. Not covered: a funding rate that changes during the hold, mark versus last price, and slippage. Use when user asks \"how much does BTC need to move for me to profit after funding?\" or \"is funding killing my edge on this trade?\". Returns: breakevenWithFunding, breakevenWithoutFunding, requiredMovePct.","inputSchema":{"type":"object","properties":{"side":{"type":"string","enum":["long","short"],"description":"Trade direction: \"long\" or \"short\""},"entry_price":{"type":"number","description":"Entry price"},"size":{"type":"number","description":"Position size in base currency"},"funding_rate":{"type":"number","description":"Funding rate per funding interval as a DECIMAL FRACTION, not a percent: 0.0001 means 0.01%, so a quoted 0.0125% is 0.000125"},"funding_interval_hours":{"type":"number","minimum":0.25,"maximum":24,"description":"Hours per funding payment, the period funding_rate covers: 8 (default), 1 on Hyperliquid, dYdX, Kraken and Backpack (per-hour rates), 4 or 2 on some symbols of Binance, Bybit, OKX, Gate, KuCoin, MEXC, Aster and Phemex"},"hold_hours":{"type":"number","description":"Hold duration in hours"},"fee_open_pct":{"type":"number","description":"Open fee rate (default 0.0002)"},"fee_close_pct":{"type":"number","description":"Close fee rate (default 0.0005)"},"contractType":{"type":"string","enum":["linear","inverse"],"description":"linear = USDT-margined (default), inverse = coin-margined. size is USD notional (contracts) for inverse; notional/funding_cost/fee_total/total_carry_cost come back denominated in the base coin."}},"required":["side","entry_price","size","funding_rate","hold_hours"]},"annotations":{"title":"Funding Breakeven","readOnlyHint":true,"destructiveHint":false,"openWorldHint":false},"definitionHash":"819f86f6c2031121f1cce6e968a5a023c63548095fc7f5ed22e0770836e5b5c9","schemaStatus":"valid","origin":"official-registry","observedAt":"2026-11-20T01:46:14.334Z","metadataTrust":"untrusted"}],"endpoints":[{"endpointFingerprint":"c155270e9aac4eb663f72c61b88478777b3c9b889abb3cac6333ff5588bdab97","protocol":"streamable-http","status":"indexed","toolCount":50,"observedAt":"2026-11-20T01:46:14.334Z"}],"authentication":"unknown"},"connectionConfigurations":{"status":"ready","authentication":"not embedded","clients":{"Claude Desktop":{"mcpServers":{"io.github.SKalinin909/tradingcalc":{"url":"https://tradingcalc.io/api/mcp"}}},"Cursor":{"mcpServers":{"io.github.SKalinin909/tradingcalc":{"url":"https://tradingcalc.io/api/mcp"}}},"VS Code":{"servers":{"io.github.SKalinin909/tradingcalc":{"type":"http","url":"https://tradingcalc.io/api/mcp"}}}}},"resourceType":"mcp-server","callable":true,"runtime":{"callable":true,"protocols":["mcp"]},"interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://tradingcalc.io/api/mcp"}],"profile":{"apiVersion":"1","schemaVersion":"1","id":"mcp-server:io.github.SKalinin909%2Ftradingcalc","resourceType":"mcp-server","canonicalUrl":"https://www.agentsjunction.com/api/v1/servers/io.github.SKalinin909%2Ftradingcalc","name":"io.github.SKalinin909/tradingcalc","description":"Deterministic options, forex, risk, on-chain & futures math. 77 tools. Not AI estimates.","interfaces":[{"protocol":"mcp","transport":"streamable-http","url":"https://tradingcalc.io/api/mcp"}],"capabilities":[],"identity":{"source":"official-registry","websiteUrl":null,"repositoryUrl":"https://github.com/SKalinin909/tradingcalc-mcp","version":"2.15.0"},"verification":{"state":"official","confidence":100},"operations":{"resourceType":"mcp-server","name":"io.github.SKalinin909/tradingcalc","status":"online","lastCheckedAt":"2026-11-20T04:18:06.476Z","lastSuccessfulCheck":"2026-11-20T04:18:06.476Z","latencyMs":331,"consecutiveFailures":0,"isStale":false,"checks":{"endpointReachable":true,"protocolValid":true,"agentCardValid":null,"mcpHandshakeValid":true},"lastSeen":null,"lastSuccessfulInteraction":null,"lastHealthCheck":"2026-11-20T04:18:06.476Z","source":{"type":"health-check","url":null},"observedAt":"2026-11-20T04:18:06.476Z"},"security":null,"timestamps":{"createdAt":"2026-10-22T19:26:30.124Z","updatedAt":"2026-10-22T19:26:30.124Z","observedAt":"2026-11-20T04:18:06.476Z"},"compatibility":{"serverVersion":"2.15.0","protocolVersions":[{"protocol":"mcp","version":null}]}}}}