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

After I buy an item, how I set a price and send it to the tradePile? #463

Open moisty70 opened 4 years ago

moisty70 commented 4 years ago

I am trying to buy items and then sell them for a higher price. I can buy the items but they go to WON LIST and don't know how can I access it.

FrancisHGR commented 4 years ago

get them with

your_session.unassigned()

From this list, take the identifier "id" and then use send sendToTradepile(id, safe=False).

Read the documentation for a better understanding, the link is on the front page of this repository.

totti240282 commented 4 years ago

safe=False, What does it mean ?

FrancisHGR commented 4 years ago

safe checks whether there is enough space on the tradepile, so that its not attempting to shift the card when its not actually possible.

In my experience, it somehow doesnt work though so i put the safe flag to False and do my own check. You can just take len(your_session.tradePile()) and verify that it is not full.

totti240282 commented 4 years ago

Thanks.