futapi / fut

fut is a simple library for managing Fifa 19 Ultimate Team.
GNU General Public License v3.0
317 stars 138 forks source link

Why bid does not always work #34

Closed Noxdzine closed 10 years ago

Noxdzine commented 10 years ago

Hi, why bid does not always work on my searchAuction result.

items = fut.searchAuctions('player', max_buy=13750, assetId='******')
    for item in items:
        print 'found player for %s' % item['buyNowPrice']
        test = fut.bid(item['tradeId'], item['buyNowPrice'])
        print test

return to my terminal:

found player for 13500
False
oczkers commented 10 years ago

for example someone made bid before you (after search)

Noxdzine commented 10 years ago

thanks, we can nothing to be faster?

oczkers commented 10 years ago

Not much we can do, it's milliseconds

Innursery commented 10 years ago

I have the same issue but it's not du to faster bid, because after a second pass it's always the same price. I didn't find any solution for the moment

engdahl commented 10 years ago

If the bid does not get through, some other autobuyer snapped it up before your could. Simple as that. If you get the same price on the next pass it's probably another card with the same price.

oczkers commented 10 years ago

@Innursery if you're sure that's the same card we need debug info (response after bid request)

Innursery commented 10 years ago

here a log files 2 times bid without getting the card

2014-01-26 13:24:12,625 [DEBUG] [requests.packages.urllib3.connectionpool] _make_request: "POST /ut/game/fifa14/trade?tradeIds=5665008656 HTTP/1.1" 200 659 (line 344) 2014-01-26 13:24:12,625 [DEBUG] [root] request: b'{"credits":281839,"bidTokens":{},"duplicateItemIdList":null,"currencies":[{"name":"COINS","funds":281839,"finalFunds":281839},{"name":"TOKEN","funds":0,"finalFunds":0},{"name":"POINTS","funds":0,"finalFunds":0}],"auctionInfo":[{"tradeId":5665008656,"buyNowPrice":0,"tradeState":"active","itemData":{"id":7623961287,"timestamp":1388160959,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":6100,"owners":6,"morale":50,"formation":"f5221","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":149,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":168,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":99,"assists":0,"contract":21,"rareflag":1,"playStyle":271,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":1400,"bidState":"outbid","watched":true,"currentBid":4900,"expires":151,"sellerName":"Avellaneda FC","sellerEstablished":1387982027,"sellerId":0}],"errorState":null}' (line 224) 2014-01-26 13:24:13,841 [DEBUG] [requests.packages.urllib3.connectionpool] _make_request: "POST /ut/game/fifa14/transfermarket?num=4&maskedDefId=1179&macr=4800&type=player&start=0 HTTP/1.1" 200 947 (line 344) 2014-01-26 13:24:13,841 [DEBUG] [root] request: b'{"credits":281839,"bidTokens":{"count":0,"updateTime":0},"duplicateItemIdList":null,"currencies":[{"name":"COINS","funds":281839,"finalFunds":281839},{"name":"TOKEN","funds":0,"finalFunds":0},{"name":"POINTS","funds":0,"finalFunds":0}],"auctionInfo":[{"tradeId":5665008656,"buyNowPrice":0,"tradeState":"active","itemData":{"id":7623961287,"timestamp":1388160959,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":6100,"owners":6,"morale":50,"formation":"f5221","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":149,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":168,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":99,"assists":0,"contract":21,"rareflag":1,"playStyle":271,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":1400,"bidState":"none","watched":true,"currentBid":4600,"expires":150,"sellerName":"Avellaneda FC","sellerEstablished":1387982027,"sellerId":0},{"tradeId":5665028189,"buyNowPrice":0,"tradeState":"active","itemData":{"id":8957547600,"timestamp":1390756777,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":0,"owners":1,"morale":50,"formation":"f3412","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":0,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":0,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":99,"assists":0,"contract":7,"rareflag":1,"playStyle":273,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":2000,"bidState":"none","watched":true,"currentBid":4500,"expires":218,"sellerName":"SNIPER SAM FC","sellerEstablished":1336244577,"sellerId":0},{"tradeId":5665121613,"buyNowPrice":6600,"tradeState":"active","itemData":{"id":8921057659,"timestamp":1390646930,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":6300,"owners":3,"morale":50,"formation":"f442","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":10,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":10,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":92,"assists":0,"contract":25,"rareflag":1,"playStyle":273,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":150,"bidState":"none","watched":null,"currentBid":950,"expires":535,"sellerName":"Casey FC","sellerEstablished":1358613853,"sellerId":0},{"tradeId":5665119495,"buyNowPrice":0,"tradeState":"active","itemData":{"id":8593165952,"timestamp":1389809243,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":4900,"owners":3,"morale":50,"formation":"f3412","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":0,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":3,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":97,"assists":0,"contract":4,"rareflag":1,"playStyle":273,"lifetimeAssists":0,"loyaltyBonus":0},"offers":0,"startingBid":4200,"bidState":"none","watched":null,"currentBid":0,"expires":575,"sellerName":"ashbod","sellerEstablished":1269072849,"sellerId":0}],"errorState":null}' (line 224) 2014-01-26 13:24:14,536 [DEBUG] [requests.packages.urllib3.connectionpool] _make_request: "POST /ut/game/fifa14/trade?tradeIds=5665008656 HTTP/1.1" 200 659 (line 344) 2014-01-26 13:24:14,536 [DEBUG] [root] request: b'{"credits":281839,"bidTokens":{},"duplicateItemIdList":null,"currencies":[{"name":"COINS","funds":281839,"finalFunds":281839},{"name":"TOKEN","funds":0,"finalFunds":0},{"name":"POINTS","funds":0,"finalFunds":0}],"auctionInfo":[{"tradeId":5665008656,"buyNowPrice":0,"tradeState":"active","itemData":{"id":7623961287,"timestamp":1388160959,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":6100,"owners":6,"morale":50,"formation":"f5221","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":149,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":168,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":99,"assists":0,"contract":21,"rareflag":1,"playStyle":271,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":1400,"bidState":"outbid","watched":true,"currentBid":4900,"expires":150,"sellerName":"Avellaneda FC","sellerEstablished":1387982027,"sellerId":0}],"errorState":null}' (line 224) 2014-01-26 13:24:19,140 [DEBUG] [requests.packages.urllib3.connectionpool] _make_request: "POST /ut/game/fifa14/transfermarket?num=4&maskedDefId=1179&macr=4800&type=player&start=0 HTTP/1.1" 200 946 (line 344) 2014-01-26 13:24:19,141 [DEBUG] [root] request: b'{"credits":281839,"bidTokens":{"count":0,"updateTime":0},"duplicateItemIdList":null,"currencies":[{"name":"COINS","funds":281839,"finalFunds":281839},{"name":"TOKEN","funds":0,"finalFunds":0},{"name":"POINTS","funds":0,"finalFunds":0}],"auctionInfo":[{"tradeId":5665008656,"buyNowPrice":0,"tradeState":"active","itemData":{"id":7623961287,"timestamp":1388160959,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":6100,"owners":6,"morale":50,"formation":"f5221","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":149,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":168,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":99,"assists":0,"contract":21,"rareflag":1,"playStyle":271,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":1400,"bidState":"none","watched":true,"currentBid":4600,"expires":145,"sellerName":"Avellaneda FC","sellerEstablished":1387982027,"sellerId":0},{"tradeId":5665028189,"buyNowPrice":0,"tradeState":"active","itemData":{"id":8957547600,"timestamp":1390756777,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":0,"owners":1,"morale":50,"formation":"f3412","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":0,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":0,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":99,"assists":0,"contract":7,"rareflag":1,"playStyle":273,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":2000,"bidState":"none","watched":true,"currentBid":4500,"expires":213,"sellerName":"SNIPER SAM FC","sellerEstablished":1336244577,"sellerId":0},{"tradeId":5665121613,"buyNowPrice":6600,"tradeState":"active","itemData":{"id":8921057659,"timestamp":1390646930,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":6300,"owners":3,"morale":50,"formation":"f442","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":10,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":10,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":92,"assists":0,"contract":25,"rareflag":1,"playStyle":273,"lifetimeAssists":0,"loyaltyBonus":1},"offers":0,"startingBid":150,"bidState":"none","watched":null,"currentBid":950,"expires":530,"sellerName":"Casey FC","sellerEstablished":1358613853,"sellerId":0},{"tradeId":5665119495,"buyNowPrice":0,"tradeState":"active","itemData":{"id":8593165952,"timestamp":1389809243,"itemType":"player","teamid":45,"rating":86,"lastSalePrice":4900,"owners":3,"morale":50,"formation":"f3412","untradeable":false,"attributeList":[{"value":90,"index":0},{"value":78,"index":1},{"value":66,"index":2},{"value":80,"index":3},{"value":46,"index":4},{"value":90,"index":5}],"statsList":[{"value":0,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"lifetimeStats":[{"value":3,"index":0},{"value":0,"index":1},{"value":0,"index":2},{"value":0,"index":3},{"value":0,"index":4}],"injuryGames":0,"leagueId":0,"preferredPosition":"GK","assetId":1179,"itemState":"forSale","resourceId":1610613915,"training":0,"cardsubtypeid":0,"discardValue":688,"injuryType":"none","suspension":0,"fitness":97,"assists":0,"contract":4,"rareflag":1,"playStyle":273,"lifetimeAssists":0,"loyaltyBonus":0},"offers":0,"startingBid":4200,"bidState":"none","watched":null,"currentBid":0,"expires":570,"sellerName":"ashbod","sellerEstablished":1269072849,"sellerId":0}],"errorState":null}' (line 224)

oczkers commented 10 years ago
"currentBid":4900,
...
"bidState": "outbid",

You probably bidded less than 4901

Innursery commented 10 years ago

Hi I found a begging of answer for this trouble. All request use EA cache who his update every xx second, so when I have an outbid and I try to bid a second time, the actual current Bid will be the same and I don't put the good value.