[FEATURE] Fix comments and unit test for market.py