4170 Trading interview question

Solve a personal company made problem about python Object Oriented Programming