Trade API fix

Trade API was not working for me due to the way key value pairs in the "extras" argument were being stored in the params hash. This fixes it and has been live tested to work.