filter trade api with exists()
uncomment mstore lines