Hey, so I am working on a new script, and I needed help with the buyItem method.
grandExchange.buyItem(currentId, i, ?, givenAmount);
so currentId I am grabbing using getId(), i is the search term which I am grabbing from user, givenAmount is the amount I am grabbing from user, but I am wondering how I could get the current market price of an item using either the item ID or the search term.
Thanx