warframe_metrics.market.prime.prime_ranking¶
- warframe_metrics.market.prime.prime_ranking(vault_csv, category, prime_data, buy=False, quick=False)¶
Gets the best primes based on a ranking system.
Collects the best primes based on a ranking system. This ranking system esentially generates a metric of 4 normalized metrics. The 4 metrics used are ratio of volume bought to volume sold, the price difference over between now and unvaulting time, the percent price difference over between now and unvaulting time, and the date difference between now and the unvaulting time. These 4 metrics are normalized between 0 and 1, and averaged. This average of the 4 metrics is used to rank the items. When buying items, ascending order is used, otherwise, descending order is used.
- Parameters
vault_csv (
str) – A string (can be a download url) of the location of the csv file for vault dates. This must have columns of “Last Unvaulting”, “Vault Date”, “Item Name”, and “Item Type”. This format essentially follows from the chart on the wiki (https://warframe.fandom.com/wiki/Prime_Vault).category (
str) – The category of items to sort. The categories are from the wiki table located at https://warframe.fandom.com/wiki/Prime_Vault.prime_data (
Optional[ItemStats]) – The ItemStats object for prime data. Only prime data is required, and additional data will not affect the rankings. This is not required if using the quick method.buy (
bool) – A boolean representing whether we are buying or selling warframe parts.quick (
bool) – If quick is True, then a method of ranking is used only ranks based on dates. Therefore, no prime data is required and warframe market’s api does not need to be consulted.
- Return type
List[str]- Returns
A dataframe sorted in the desired order based on the parameter buy.