
Originally Posted by
maxhunter2011
Ya thats why you have to take the data and throw away the outliers (those trolly offers) and than average it out after that. Ill send you a Pm, add me on ******* so we can talk about it more!
SWIM already did this. Fetches all buying/selling offers and used stdev and other statistical means to deliver accurate buy sell prices
Output:
Code:
[INFO] Retrieving Offers For Potion of Attack
[INFO] Potion of Attack B>: 0.5, S>: 1.0 B/S: 0.75
[INFO] Retrieving Offers For Potion of Speed
[INFO] Potion of Speed B>: 0.1875, S>: 0.4475490196078431 B/S: 0.31752450980392155
[INFO] Retrieving Offers For Potion of Dexterity
[INFO] Potion of Dexterity B>: 0.3333333333333333, S>: 0.4166666666666667 B/S: 0.375
[INFO] Retrieving Offers For Potion of Wisdom
[INFO] Potion of Wisdom B>: NaN, S>: 0.3074285714285714 B/S: NaN
[INFO] Retrieving Offers For Potion of Vitality
[INFO] Potion of Vitality B>: 0.519298245614035, S>: 0.5 B/S: 0.5096491228070175
[INFO] Retrieving Offers For Potion of Mana
[INFO] Potion of Mana B>: 2.8666666666666663, S>: 4.0 B/S: 3.433333333333333
[INFO] Retrieving Offers For Potion of Life
[INFO] Potion of Life B>: 6.962962962962963, S>: 8.0 B/S: 7.481481481481481
[INFO] Retrieving Offers For Wine Cellar Incantation
[INFO] Wine Cellar Incantation B>: 1.688834422657952, S>: 3.274183006535948 B/S: 2.48150871459695
[INFO] Retrieving Offers For Puppet Master's Encore Key
[INFO] Puppet Master's Encore Key B>: 3.433333333333333, S>: 7.481481481481481 B/S: 5.457407407407407
[INFO] Retrieving Offers For Toxic Sewers Key
[INFO] Toxic Sewers Key B>: 3.433333333333333, S>: 7.481481481481481 B/S: 5.457407407407407
theres some code you can use from SWIM's project
Specifically this class has methods for retrieving all sorts of metrics about items on realmeye and builiding statistical data from them
here
Prices are calculated in terms of def
Explained:
1) get prices of all potions (def: 1.0) then look at just potion prices to determine the rest
2) Parse a list of all items currently for sale(you need the ID of the item to look it up programatically on realmeye)
3) Find offers for the item you want for POTIONS ONLY first. Calculate a rough average from that.
4) Go back and find ALL offers for the item that are also sold for other items and cross reference the prices of both to calculate more data
5) remove any offers 1stdev from average
6) Whatever you want to use the result for...
aside, i put mine in a DB and track it overtime so i can see the price fluctuations on a graph overtime. Collector runs continuously and then sleeps 10-15 seconds random, updates the prices table then continues. Prices can be accessed in time series data through a simple API i built to retrieve the average prices of items