Jump to content
McKay Development

Recommended Posts

manager.on('newOffer', function(offer) {
if (offer.state == 9) {
console.log('Offer Sented');
}
});
manager.on('sentOfferChanged', function(offer) {
if (offer.state == 9) {
console.log('Offer Sented');
}
});
manager.on('receivedOfferChanged', function(offer) {
if (offer.state == 9) {
console.log('Offer Sented');
}
});

When I send a trade, not a single log does not come

Link to comment
Share on other sites

Of course that isn't going to work. No incoming trades that you can see will ever be in state 9 (CreatedNeedsConfirmation), so newOffer and receivedOfferChanged aren't going to emit with that state. Trades that you send that require confirmation are created in state 9, so sentOfferChanged isn't going to emit with that state because a trade can't change into state 9.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...