Beginning of the API (Markets call)