fixed examples and added yesterday api

Summary:
The examples were broken from the last API update, so I fixed them.
Also added the market yesterday api to make the example work

Reviewers: mike, ben

Reviewed By: ben

Subscribers: ben

Differential Revision: http://phabricator.bitgo.com/D248