One problem with this is as the number of Trades records grow that list is going to become huge and probably slow this down considerably. I would probably check if the trade exists in the loop over feed_data in some way.