Optimize GetActiveTradeOffers()

This is a very important optimization, as Steam might randomly fuck up and not apply default cutoff of last request (as stated in documentation). We have no interest of changes anyway, so we can skip all trades but active ones.
This commit is contained in:
JustArchi
2017-04-22 00:46:19 +02:00
parent e506930672
commit a6c448340d

View File

@@ -236,10 +236,11 @@ namespace ArchiSteamFarm {
try {
response = iEconService.GetTradeOffers(
get_received_offers: 1,
active_only: 1,
get_descriptions: 1,
secure: true
get_received_offers: 1,
secure: true,
time_historical_cutoff: uint.MaxValue
);
} catch (Exception e) {
Bot.ArchiLogger.LogGenericWarningException(e);