Jump Trading Interview Question

Write a TWAP in python