Added functions to buy/sell.
Use time.time() for the nonce.