added payments and trades to api