Skip to main content

gRPC API Overview

gRPC server: $DERIVFABRIC_GRPC_ADDR — the address of your deployment's gRPC listener, alongside the REST base URL.

DerivFabric exposes 9 gRPC services. The .proto definitions are the contract; request them from your DerivFabric contact, who will supply the bundle matching your deployment's API version. They are not currently published for download.

If you would rather not generate a gRPC client, every service below is also reachable over REST — see the REST API Overview. The OpenAPI specification is published and generates a client in any language without a proto bundle.

Services

ServiceRPCs
PricingServicePrice, ComputeGreeks, ComputeImpliedVol, BatchPrice, BatchGreeks
StreamingServiceBidirectional streaming for real-time pricing
CalibrationServiceCalibrateSabr, CalibrateHeston, BootstrapCurve
PortfolioServicePricePortfolio, ComputeVaR, StressTest
HedgingServiceOptimizeHedge
XvaServiceCalculateXva
ContractServicePriceContract, DescribeContract, ContractGreeks
AmericanServicePriceAmerican
ConvertibleServicePriceConvertible

Common types

Defined in common.proto:

  • OptionType - CALL, PUT
  • ExerciseStyle - EUROPEAN, AMERICAN, BERMUDAN
  • BarrierType - UP_AND_IN, UP_AND_OUT, DOWN_AND_IN, DOWN_AND_OUT
  • ModelType - BLACK_SCHOLES, HESTON, SABR, MERTON, BATES, etc.
  • PricerType - ANALYTICAL, MONTE_CARLO, FINITE_DIFFERENCE, BINOMIAL_TREE, FFT, LSM, BAW
  • Currency, Frequency, DayCount

Instrument hierarchy

Instruments are organized by asset class in instruments/*.proto:

  • equity.proto - VanillaOption, BarrierOption, AsianOption, LookbackOption, etc.
  • rates.proto - Bond, Swap, Swaption, Cap, Floor, CMS
  • credit.proto - CDS, IndexCDS, CreditSpreadOption
  • inflation.proto - InflationCap, InflationFloor, InflationSwap, ZCIS, YoY

Using with Buf

See Proto Reference for Buf configuration and code generation.