Paste your positions
Preview the JSON, then save the whole batch. Positions are stored
only in this browser, on this site, and appear in the analyzer’s
Open saved… list.
JavaScript is needed to validate and save positions in this
browser.
JSON format
Start with {"version": 1, "positions": [...]}. Each
position has its own market assumptions and one or more rows. Field
names are case-sensitive. Use JSON numbers, not quoted numbers;
comments, trailing commas, and unknown fields are rejected.
Position fields
name
Required nonblank name, at most 200 characters.
asOf, spot
Required valuation date (YYYY-MM-DD) and nonnegative underlying
price.
ratePercent
Annual continuously compounded interest rate.
4 means 4%. Defaults to 4.
dividendYieldPercent, fees
Annual continuous dividend yield in percent, and total position
fees in dollars. Both default to 0.
rows
A nonempty array of stock, single-option, or spread rows. Every
field below is required unless a default is stated.
Stock and single-option rows
A stock row uses type: "stock",
quantity, and entry. Quantity is signed
shares: positive buys, negative sells. Entry is a nonnegative
price per share.
An option row uses type: "single", signed
whole-contract quantity, nonnegative
entry, kind ("call" or "put"),
style ("american" or "european"),
strike, and expiry (YYYY-MM-DD). An
optional ivPercent sets annual IV:
25 means 25%. Omit it or use null to
keep the field blank and use the usual 25% default;
0 means zero IV.
All option contracts use a multiplier of 100. An option entry of
2.50 therefore means $250 per contract. Quantities cannot be zero.
Every row optionally accepts enabled, which defaults
to true.
Spreads and customized contracts
Set type to "vertical", "calendar", "diagonal",
"straddle", "strangle" (2 legs), "butterfly" (3 legs), or
"iron-condor" (4 legs). Supply positive whole-spread
quantity, signed net entry,
style, and a legs array.
Each leg has kind, a nonzero signed whole-number
ratio, strike, expiry, and
optional ivPercent. Positive ratios buy, negative
ratios sell; quantity multiplies each ratio. All legs in a row
share its exercise style and enabled status. Different rows may
use different styles.
Entry is the whole spread’s net price per underlying share:
positive is a debit, negative is a credit. A quantity of 2 and
entry of 1.50 costs $300 before fees. Do not put entry prices on
spread legs. Custom strikes, dates, option kinds, and ratios are
preserved; the template name only controls row grouping.
Validation and defaults
Strikes must be positive. Option quantities and ratios must be
safe integers (absolute value at most 9,007,199,254,740,991), as
must their multiplied contract counts. All numbers must be finite.
IV and fees cannot be negative. Enabled options cannot expire
before the valuation date. Every position is checked before any
are saved; a failed import leaves existing saves intact.
IDs and default scenario/chart settings are created automatically.
Supply IV when you know it. Entry is your trade cost and is never
used to infer IV. Reference prices and automatic price-to-IV
fitting are not part of this import format.
Complete example · two positions
A customized spread and a position combining stock with American
and European options. The dates are fixed examples; adjust them to
your intended valuation and expirations.