Rewrite of cexapi, simplified trader