Skip to content

OptionChain

Stable

Calls on the left, puts on the right, strike in the middle, as a real table.

Also known as options chain, options table

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Pick a price

Expiry 30 OctSpot 24,342.00

NIFTY option chain. Calls on the left, puts on the right, strike in the middle. Expiry 30 Oct.
CallsStrikePuts
OIIVPricePriceIVOI
1.20 L13.2%In the money. 24,20015.1%98.00 L
5.30 L13.5%In the money. 24,25014.9%92.00 L
9.40 L13.8%In the money. 24,30014.7%86.00 L
13.50 L14.1%24,350 At the moneyIn the money. 14.5%80.00 L
17.60 L14.4%24,400In the money. 14.3%74.00 L
21.70 L14.7%24,450In the money. 14.1%68.00 L
25.80 L15.0%—24,500In the money. 13.9%62.00 L

Tap a price to choose it.

With onPick the price cells are buttons. The chosen one is marked and written out under the table.

When to use it

Lets a person scan strikes and tap one price to start an order.

Made of: Expiry and spot line · Calls and Puts group headers · Column headers · Strike column · Value cells · Price buttons

Use it for

  • Choosing a strike and a side for an order.
  • Comparing open interest and implied volatility across strikes.
  • A small chain in a narrow phone screen.

Not for

  • A general table of records: use DataTable.
  • A single price with a change: use Money.

Do and avoid

Expiry 30 OctSpot 24,342.00

NIFTY option chain. Calls on the left, puts on the right, strike in the middle. Expiry 30 Oct.
CallsStrikePuts
PricePrice
In the money. 24,300
24,350 At the moneyIn the money.
24,400In the money.
Do. Only the columns that fit, so every price is easy to tap.

Expiry 30 OctSpot 24,342.00

NIFTY option chain. Calls on the left, puts on the right, strike in the middle. Expiry 30 Oct.
CallsStrikePuts
OIOI changeIVDeltaPricePriceDeltaIVOI changeOI
5.20 L-52,00013.2%0.60In the money. 24,300-0.4015.1%+31,00088.00 L
9.30 L013.5%0.4824,350 At the moneyIn the money. -0.5214.9%082.00 L
13.40 L+52,00013.8%0.3624,400In the money. -0.6414.7%-31,00076.00 L
Avoid. Too many columns for a phone push the prices out of sight.

Do

  • Keep Price in the columns when you pass onPick.
  • Show the expiry and the spot price.
  • Use a maxHeight for long chains.
  • Pass null for a missing value and let the dash show.

Avoid

  • Do not use gain and loss colours to mark in the money.
  • Do not hide the scroll region on a phone. It is the way to reach the far columns.
  • Do not place an order from onPick. Open an order ticket instead.
  • Do not pass more columns than the width can hold without scrolling in mind.

On a phone

  • The chain scrolls both ways inside its own box, because the table is as wide as its columns. The strike column stays pinned and the header rows stay at the top.
  • Price buttons grow to 44px by 44px on touch screens, so rows get taller there.
  • Show few columns on a phone, since each extra column adds to the sideways scroll.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started