Skip to content

FXOptionPricer

stable

FX option pricing summary with Greeks display

import { FXOptionPricer } from "@danagraph/design-system/finance"
Loading demo…

Props

baserequired
Type stringDefault —

Base currency (e.g. EUR)

quoterequired
Type stringDefault —

Quote currency (e.g. USD)

optionTyperequired
Type "call" | "put"Default —

Option type

strikerequired
Type numberDefault —

Strike price

premiumrequired
Type numberDefault —

Option premium

expiryrequired
Type stringDefault —

Expiry date

spot
Type numberDefault —

Current spot rate

greeks
Type OptionGreeksDefault —

Greeks values ({ delta, gamma, theta, vega, rho })

precision
Type numberDefault 4

Rate precision

currency
Type stringDefault —

ISO 4217 currency code for premium display

density
Type "default" | "compact"Default —

Display density

locale
Type stringDefault —

BCP 47 locale override

semantictypeoutcomebordersurfacespace
MobileStacks / Scroll

Pricer input grid collapses to single-column on mobile. Result metrics stack vertically.

Design Rationale

This component was designed to express:

Explore Related

Was this helpful?