BuyLimits

Methods
2
Fields
None

Getting one

grandExchange:buyLimits()

Methods

MethodReturnsDescription
remaining(number)number?How many more of an item can be bought before its buy limit.
resetsAt(number)number?When the item's current 4-hour window ends, Unix milliseconds.

Returned by

MethodReturnsDescription
GrandExchange.buyLimitsBuyLimitsThe buy limits the client tracks for this account.

Method details

remaining

remaining: (BuyLimits, number) -> number?

How many more of an item can be bought before its buy limit.

itemId
The item.
Returns
nil when the item's limit is not in the item table, or the count bought in its window is not known.

resetsAt

resetsAt: (BuyLimits, number) -> number?

When the item's current 4-hour window ends, Unix milliseconds.

itemId
The item.
Returns
nil when no window is open.