Grand Exchange
Usage
from rs3_api import GrandExchange
from rs3_api.models import GECategories
grand_exchange = GrandExchange()
get_catalogue(categoryId: int) -> dict
Gets the number of items determined by the first letter in category.
Parameters
Type
categoryId
int
response = grand_exchange.get_catalogue(GECategories.FAMILIARS)
print(response)
# GECategories is an enum with all available categories.
get_runedate() -> dict
Return the runedate of when the grand exchange was last updated
response = grand_exchange.get_runedate()
print(response)
get_items(categoryId: int, searchString: str, page: int = 1) -> dict
Gets twelve items determined by category and first letters of search string
Parameters
Type
categoryId
int
searchString
str
page
int
1
response = grand_exchange.get_items(GECategories.MELEE_ARMOUR_MID_LEVEL, 'Rune')
print(response)
get_item_detail(itemId: int) -> dict
Returns current price and price trends information on tradeable items in the Grand Exchange, the category, item image and examine for the given item
Parameters
Type
itemId
int
response = grand_exchange.get_item_detail(21787) # 21787 Steadfast Boots
print(response)
get_item_graph(itemId: int) -> dict
Graph shows the prices each day of a given item for the previous 180 days. When no price information is available, then a value of zero is returned.
Parameters
Type
itemId
int
response = get_item_graph(21787)
print(response)
Last updated
Was this helpful?