Class LivePrices
- java.lang.Object
-
- org.dreambot.api.methods.grandexchange.LivePrices
-
public class LivePrices extends java.lang.Object
This class can be used for getting a current Grand Exchange price of items
It uses the wiki's public API proxied through our servers to reduce strain on their servers
Results may be as outdated as 20 minutes, which shouldn't matter too much for most applications
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
get(int id)
This gets the average current price of an item by idstatic int
get(java.lang.String itemName)
This gets the average current price of an item by name Note: You must have logged into the game as this method uses the cache to find item namesstatic int
get(Item item)
This gets the average current price of an itemstatic int
getHigh(int id)
This gets the current high end price of an item by idstatic int
getHigh(java.lang.String itemName)
This gets the current high end price of an item by name Note: You must have logged into the game as this method uses the cache to find item namesstatic int
getHigh(Item item)
This gets the current high end price of an itemstatic int
getLow(int id)
This gets the current low end price of an item by idstatic int
getLow(java.lang.String itemName)
This gets the current low end price of an item by name Note: You must have logged into the game as this method uses the cache to find item namesstatic int
getLow(Item item)
This gets the current low end price of an item
-
-
-
Method Detail
-
get
public static int get(int id)
This gets the average current price of an item by id- Parameters:
id
- The item's ID- Returns:
- The average current price on the GE if found, otherwise 0
-
get
public static int get(java.lang.String itemName)
This gets the average current price of an item by name Note: You must have logged into the game as this method uses the cache to find item names- Parameters:
itemName
- The item's name- Returns:
- The average current price on the GE if found, otherwise 0
-
get
public static int get(Item item)
This gets the average current price of an item- Parameters:
item
- The item to get the price for- Returns:
- The average current price on the GE if found, otherwise 0
-
getHigh
public static int getHigh(int id)
This gets the current high end price of an item by id- Parameters:
id
- The item's ID- Returns:
- The current high end price on the GE if found, otherwise 0
-
getHigh
public static int getHigh(java.lang.String itemName)
This gets the current high end price of an item by name Note: You must have logged into the game as this method uses the cache to find item names- Parameters:
itemName
- The item's name- Returns:
- The current high end price on the GE if found, otherwise 0
-
getHigh
public static int getHigh(Item item)
This gets the current high end price of an item- Parameters:
item
- The item to get the price for- Returns:
- The current high end price on the GE if found, otherwise 0
-
getLow
public static int getLow(int id)
This gets the current low end price of an item by id- Parameters:
id
- The item's ID- Returns:
- The current low end price on the GE if found, otherwise 0
-
getLow
public static int getLow(java.lang.String itemName)
This gets the current low end price of an item by name Note: You must have logged into the game as this method uses the cache to find item names- Parameters:
itemName
- The item's name- Returns:
- The current low end price on the GE if found, otherwise 0
-
getLow
public static int getLow(Item item)
This gets the current low end price of an item- Parameters:
item
- The item to get the price for- Returns:
- The current low end price on the GE if found, otherwise 0
-
-