Effective vs. Quoted Spread - Quant Researcher Interview Question
Difficulty: Medium
Category: market microstructure
Asked at: Jane Street, Virtu, Goldman Sachs, SIG, Two Sigma, Citadel Securities, HRT
Topics: microstructure, liquidity, pandas, numpy
Problem Description
The quoted spread represents the displayed cost of trading based on the best bid and ask prices, while the effective spread captures the actual cost paid by traders relative to the mid-price, accounting for price improvement and impact. These metrics are fundamental for transaction cost analysis (TCA) and algorithmic trading strategy evaluation.
Task
Implement a function solution(trade_prices, bids, asks) that calculates the average Quoted Spread and average Effective Spread for a sequence of t
Practice this medium researcher interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.