About this question
Easy · systems · Quant Developer interview question · twap, pandas, time-series, resampling, data-manipulation, python
Low-latency trading systems often disable Nagle's Algorithm (TCP_NODELAY) to minimize the time between order generation and network transmission, avoiding the latency introduced by packet buffering. This problem simulates the behavior of a TCP sender to compare the transmission timestamps of buffered versus immediate packet dispatch strategies based on network constraints. Task Implement a TcpSender class that simulates packet transmission logic based on Nagle's algorithm and TCP_NODELAY settin