(bug) Fixed closure variable possible issue in history factory
Merge pull request #71 from iAL-Ahmed/feat/market

(bug) Fixed closure variable possible issue in history factory