Trade onHold
Closed this issue · 4 comments
ReptoxX commented
Hey guys,
is there a way to check the trade (before accepting) if it get on hold?
So that the bot can automatically decline the trade if the other side doesnt use mobile-auth?
I am sorry, if it is asked before and i didnt recognized it.
Regards,
ReptoxX
CyanoFresh commented
Check the trade offer state in TradeOffer.php
ReptoxX commented
The trade offer state is 2, because it is not accepted.
After i accepted it, it says state 11 (for onHold).
And getEscrowEndDate only works on already accepted trades, otherwise it will return 0 unfortunatly.
ReptoxX commented
Okay i guess no one knows an solution right ?
CyanoFresh commented
You can accept trade and then cancel if it has 11 state