fut icon indicating copy to clipboard operation
fut copied to clipboard

I succeeded in login but..(beginner)

Open midas123 opened this issue 8 years ago • 2 comments

hello, I am learning the basics of the Python these days, and I am trying to create a program at the same time.

I want to do it myself, but I am drfting around without clue . if you don't mind teach me a code for bidding it will be a great help to me.

if I want to buynow Martial under 40000 coin by searching auction frequently how to do it?

midas123 avatar Nov 23 '17 01:11 midas123

  1. First, you have to connect on the market by using the library fut and the function Core(). Replace username, password, secret_answer by string or define them before calling the function.
bot = fut.Core(email=username, passwd=password,
                   secret_answer=secret_answer, platform='pc')
  1. Find the assetId of your player. You can find it by using the offline database on the API or you can just go to the online easport database . For martial the assetID is 211300 (https://www.easports.com/uk/fifa/ultimate-team/fut/database/player/211300/Martial#211300)

  2. Search for the last 50 Martial cards in the auction. It will return you a list of cards

martial_cards = bot.searchAuctions(
        ctype="player", assetId=211300, page_size=50)
  1. Find the cheapest by searching the card with the min buyNowPrice . for example here the 'buyNowPrice' of the first martial_card martial_cards[0]['buyNowPrice']

  2. Bid for the card you want to buy by giving the 'tradeId'. Replace 40000 by the buyNowPrice of the card. bot.bid(card["tradeId"], 40000, fast=True)

mothinx avatar Nov 23 '17 07:11 mothinx

It's more than I expected. Thank you very much for your detailed reply :)

midas123 avatar Nov 23 '17 13:11 midas123