return json on stock purchase