#!gmbuy is a command to buy from the global market.
Command: #!gmbuy <Trade ID> <Amount>
If no amount is inputted, you will buy all the items in the Trade ID.
#!gmbuy <Trade ID> <Amount>
Cooldown: 25 seconds
As of 7/23/17 (U.S. Date Documentation), you aren't given gold once your item has been sold. I had done #!inv and had 1710 G, and after i sold a lemon fro 20 G, it stayed the same. Valve plz fix.