Upgrades and improvements for v2 API

Including support for different trade types, bug fixes, removal of
redundant hashcode functions and bumped versions for included libs.