Skip to main content
Glama

Clear Tape

Trading cost calculator

calculate_trading_cost
Read-onlyIdempotent

The cost of one round trip (commissions, bid-ask spread, slippage) in USD, in R, as a share of the target move and of the position, and over a year of trades. Computed with the same function as Clear Tape's free trading cost calculator page (linked in the result), not estimated. Returns the inputs, each result with its unit, the formula and the page link. Educational, not investment advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoLanguage of the returned text: "en" (default) or "zh" (Simplified Chinese).en
stopYesStop price per share in USD; not equal to the entry.
entryYesEntry price per share in USD.
sharesYesNumber of shares.
spreadYesBid-ask spread per share in USD (paid once per round trip, half on each side).
targetNoOptional: target price per share in USD, on the other side of the entry from the stop.
tradesNoOptional: round trips per year, for the annual cost.
slippageYesSlippage per share per side in USD.
commissionYesCommission per order (each side) in USD; 0 if none.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources