The trade button is "macro-able" with the following.

/script AcceptTrade()