Mercury010 / trading-pnl

FIFO Trading Model for PnL Calculation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculating PnL from Trades

FIFO Trading Model for PnL Calculation

  • Program analyzes trades, outputs paired trades and calculates PnL
  • Input size is 1M trades
  • FIFO (generally used for queues) is a requirement in trading platforms where the first open trade must be closed when there are several open trades of the same pair and equal value.

About

FIFO Trading Model for PnL Calculation


Languages

Language:Python 100.0%