This is a handler for sending and receiving trade requests. Initialize it by passing a SteamClient instance to the constructor.
var steamTrading = new Steam.SteamTrading(steamClient);
Sends a trade request to the specified user.
Same tradeID
as the one passed through the 'tradeProposed' event. acceptTrade
should be true
or false
.
Cancels your proposed trade to the specified user.
- Trade ID
- SteamID of the user who proposed the trade
You were offered a trade.
- Trade ID
EEconTradeResponse
- SteamID of the user you sent a trade request
Listen for this event if you are the one sending a trade request.
- SteamID of the other party
The trade is now available at http://steamcommunity.com/trade/{SteamID}. You can use node-steam-trade to automate the trade itself.