Deutsche BankData Engineer · OnsiteCodemia practiceDaily Trader PnL From Fills and End-of-Day Marks
Using a fills table (trader, instrument, side, quantity, price, timestamp) and an end-of-day marks table (instrument, date, close price), write SQL that returns each trader's daily mark-to-market PnL, split into carry PnL on positions held overnight and PnL on new trades.
Medium
Data Manipulation (SQL/Python)