steampy icon indicating copy to clipboard operation
steampy copied to clipboard

Canceling changed trade offer

Open SamuelKollar opened this issue 1 year ago • 1 comments

I can send trade offer using steampy perfectly fine, if the recipient of the trade offer changes the content of the trade my script is supposed to cancel the trade offer, it tries to do this and gets response {'success': 11} from steam

This might be because trade offer id changes when the offer content is changed (this is just my guess, when I try to get this new id the method just returns the old one get_trade_offer() and the method get_trade_receipt() returns empty list [] ) Code 11 in steam is explained here https://steamerrors.com/11 - thats why I assumed the id of the trade changes

Any suggestions on how to fix this are welcome, there is deffinitely an endpoint from steam which does this so I will try to look and if I manage to fix it I will leave a comment bellow with the solution and close the issue.

SamuelKollar avatar Dec 24 '23 17:12 SamuelKollar

Update: I tried using get_trade_offers() to get all of the incoming trade offers and find the one which was changed previously and this works, however when I try to cancel the offer with get_trade_offers() using the new offer id I get {'success': 42}

SamuelKollar avatar Dec 24 '23 18:12 SamuelKollar