These are chat archives for arenanet/api-cdi

9th
Apr 2018
Archomeda
@Archomeda
Apr 09 2018 12:56
to be fair, the API did show the same thing as one of the last forum messages for me when i checked
incrementing the parameter by 1 gave me a completely different result
Archomeda
@Archomeda
Apr 09 2018 13:04
i'm just gonna see if i can set up some monitoring myself
Archomeda
@Archomeda
Apr 09 2018 15:02
alright, i've started monitoring on various parameters
so far, https://api.guildwars2.com/v2/commerce/exchange/coins?quantity=2500000 seems to be stuck at a higher coins_per_gem value than, let's say 2500001
"coins_per_gem": 2958 vs "coins_per_gem": 2853
i'm currently monitoring:
exchange/coins with 500,000, 1,000,000, 2,500,000 and a random quantity between 1,000,000 and 2,500,000 every 5 minutes
exchange/gems with 400, 800, 1000, 1200, 2000 and a random quantity between 400 and 2000 every 5 minutes
Archomeda
@Archomeda
Apr 09 2018 15:14
Screenshot-2018-4-9 GW2 Gems Exchange Charts.png
so far i got this
need to monitor for a while longer before it's conclusive
Silveress
@Silveress
Apr 09 2018 15:15
hmmm are all the requests at the exact same time?
Archomeda
@Archomeda
Apr 09 2018 15:15
yes, every 5 minutes i do those requests
the time is in the x-axis in UTC
Silveress
@Silveress
Apr 09 2018 15:16
what I am wondering is if the rate id done per request
Archomeda
@Archomeda
Apr 09 2018 15:17
i have no clue; i'm expecting the property coins_per_gem to eventually be similar on every quantity parameter though
so far, coins with 2500000 seems to be having issues
Silveress
@Silveress
Apr 09 2018 15:18
like what I am thinking is if you use the custom exchange it could freexe the price for a few min for you and temp remove that quantity from teh pool, which would impoact the pool for other folks
or it could be just fuzzy logic
Archomeda
@Archomeda
Apr 09 2018 15:19
dunno
Silveress
@Silveress
Apr 09 2018 15:19
becaue the pool would technically be infinite
Archomeda
@Archomeda
Apr 09 2018 15:19
i don't think it would have that impact by just using this api endpoint
Silveress
@Silveress
Apr 09 2018 15:19
but if you go beyond the normal pool it could cause iisues
probaly not
Archomeda
@Archomeda
Apr 09 2018 15:20
but i don't know if by just using the ingame exchange to type various amounts has any influence on the endpoint
at the same time, the exchange api is reversed compared to what the game does still
pretty sure there's an issue somewhere
#130
so with that in mind, i doubt that by using the custom exchange ingame will freeze it for the api also
anyhow, i'll host these charts somewhere (probably github) tomorrow, when i have a full day's worth of data
Archomeda
@Archomeda
Apr 09 2018 15:29
in the mean time, i still have the suspicion that the results you get are cached separately by the quantity parameter, and that at the same time, this cache is broken somehow and might give some outdated data
this means that there's a side effect to what i'm doing right now: because i'm also requesting it by using random quantities, eventually it will run out of non-used quantities, which in turn can result into some funny lines
depending on how much the exchange rate changes, the line that represents the random quantity might fluctuate more than what the actual rate is (because of repeated, possibly outdated, data i'm requesting)
while the other lines will barely fluctuate (and less than the actual rate)
that's just my theory though
Archomeda
@Archomeda
Apr 09 2018 15:37
also, i found the source of gw2spidy where it crawls the exchange rate
and from the results that i get from the api directly, it actually matches what is shown on spidy's page here: http://www.gw2spidy.com/gem
at least right now
so, i actually don't think gw2spidy is broken if these results keep on going
i should actually monitor these values too, hmm
Archomeda
@Archomeda
Apr 09 2018 15:45
okay...
there's definitely something weird going on
either spidy is still broken and i somehow ended up getting the exact same response from the api on accident
or spidy isn't broken and me visiting that endpoint directly in my browser caused it to update 5 minutes later
if the latter is true, gw2spidy might have different results in its next crawl
Archomeda
@Archomeda
Apr 09 2018 15:55
and... i'm not wrong with my second theory of gw2spidy
image.png
that screenshot is the last update of gw2spidy
Werdes
@werdes
Apr 09 2018 18:10
this definetly looks like some shady caching issue. wouldn't be odd considering the last few months of shady caching issues
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Apr 09 2018 18:10
¯\_(ツ)_/¯
Archomeda
@Archomeda
Apr 09 2018 21:43
alright, not a full day yet of course, but i'm gonna leave this here for now
Screenshot-2018-4-9 GW2 Gems Exchange Charts.png
as it stands right now, it doesn't make sense for this endpoint at all to give these different results, even with different quantity parameters
sure, the caching can result into differences, but any other quantity parameter should catch up to it eventually (within the cache expiry timer, aka 5 minutes)