The automated trading system is the core engine of FIFA Bot. It continuously searches the FIFA Ultimate Team transfer market, identifies undervalued players, purchases them automatically, and lists them for resale at profitable prices.
Key Capabilities
Intelligent Search: Dynamic price range adjustment based on market conditions
Instant Purchase: Automated buying when players match criteria
Auto-Listing: Immediate resale listing with calculated profit margins
Market Adaptation: Continuous price monitoring and range optimization
When a player is found within your price range, the bot executes an intelligent purchase flow:
# bot-desktop.py:376-409def comprar(): try: # Capture initial balance nueva=driver.find_element_by_xpath("/html/body/main/section/section/div[1]/div[1]/div[1]").text saldoInicial=nueva.replace(",",".") # Click buy now button driver.find_element_by_xpath("/html/body/main/section/section/div[2]/div/div/section[2]/div/div/div[2]/div[2]/button[2]").click() # Confirm purchase if len(driver.find_elements_by_xpath("/html/body/div[4]/section/div/div/button[1]")) > 0: driver.find_element_by_xpath("/html/body/div[4]/section/div/div/button[1]").click() time.sleep(5) # Verify purchase by checking balance change nueva2=driver.find_element_by_xpath("/html/body/main/section/section/div[1]/div[1]/div[1]").text saldoF=nueva2.replace(",",".") if float(saldoF) != float(saldoInicial): # Purchase successful! enviarWhatsapp("SE COMPRO "+mWhats+" Iteracion: " + str(iteraciones)) # Auto-list for resale if len(driver.find_elements_by_xpath("/html/body/main/section/section/div[2]/div/div/section[2]/div/div/div[2]/div[2]/div[1]/button")) > 0: ponerMercado() time.sleep(2) definirPrecio()
Purchase Verification
The bot verifies successful purchases by comparing your coin balance before and after the transaction. This prevents false positives from auction house errors or network delays.
For advanced trading, the bot supports automated bidding on auctions:
# bot-desktop.py:674-709def recorrerBid(objetivos): veces=50-int(objetivos) encontrados=driver.find_elements_by_xpath("/html/body/main/section/section/div[2]/div/div/section[1]/div/ul/li") while (veces>=2): for i in range(20): elemento=driver.find_element_by_xpath('/html/body/main/section/section/div[2]/div/div/section[1]/div/ul/li['+str(i+1)+']') precio=driver.find_element_by_xpath('/html/body/main/section/section/div[2]/div/div/section[1]/div/ul/li['+str(i+1)+']/div/div[2]/div[2]/span[2]').text elemento.click() time.sleep(3) # Bid if no current bid OR current bid is below our max if(precio=="---" or int(precio)<int(maximo.get())): clickPujar() time.sleep(2) veces=veces-1
Bidding Strategy
The bot:
Scans up to 50 auction listings per cycle
Places bids only when current price is below your maximum
Automatically clears sold items from your transfer list:
# bot-desktop.py:411-429def limpiarvendidos(): # Navigate to transfers driver.find_element_by_xpath("/html/body/main/section/nav/button[3]/span").click() time.sleep(5) # Click items section driver.find_element_by_xpath("/html/body/main/section/section/div[2]/div/div/div[3]/div[2]").click() time.sleep(5) # Clear sold items if any exist if len(driver.find_elements_by_xpath("/html/body/main/section/section/div[2]/div/div/div/section[1]/header/button")) > 0: enviarScreenshot() driver.find_element_by_xpath("/html/body/main/section/section/div[2]/div/div/div/section[1]/header/button").click() time.sleep(3) # Return to transfer market driver.find_element_by_xpath("/html/body/main/section/nav/button[3]/span").click()