trade backend