[UPDATE] new market apis, some code cleanup
Merge pull request #1 from iAmShorty/new-market-apis

[UPDATE] new market apis, some code cleanup