Aside from the suggestion out of suggestions, this is actually a really good idea.
Having trades be client-sided makes no sense whatsoever and feels like cutting corners. I don’t know a thing about coding though, so it might be easier to make it server sided. In which case, there’s no reason for it not to be.