RFQ Workflow Guide

This guide shows how to use the RFQ calculations and MM pricing modules together to build a complete RFQ workflow.

Table of Contents

Overview

An RFQ (Request for Quote) workflow involves:

  1. Validate strikes - Ensure strikes meet on-chain requirements

  2. Get MM pricing - Fetch indicative prices from market makers

  3. Calculate position size - Determine number of contracts

  4. Calculate reserve price - Set the minimum acceptable premium

  5. Submit RFQ - Send the request to the option factory

Module Responsibilities

Module
Purpose

rfqCalculations

Position sizing (numContracts, collateral)

mmPricing

Price discovery (bid/ask with fees and carrying cost)

optionFactory

RFQ submission and settlement

Workflow Diagram

SELL Order Workflow

When selling options, you provide collateral and receive premium.

Step-by-Step

BUY Order Workflow

When buying options, you pay premium to acquire contracts.

Step-by-Step

Complete Examples

Example 1: Sell PUT

Example 2: Buy CALL_SPREAD

Example 3: Sell IRON_CONDOR with Validation

Summary

Step
SELL Order
BUY Order

Input

Collateral amount

Premium budget

MM Price

Use feeAdjustedBid

Use feeAdjustedAsk

numContracts

tradeAmount / maxLoss

tradeAmount / premium

reservePrice

Minimum to receive

Maximum to pay

Collateral

Calculated from numContracts

Not required (buyer)

Last updated