Expand description

§steam-tradeoffer-manager

Makes Steam trade offers easy!

Based on the excellent node-steam-tradeoffer-manager.

§Features

  • Richly-featured API for creating, accepting, cancelling, and declining trade offers.
  • Manages account trade offer state.
  • Mobile confirmations.
  • Loading inventories.
  • Trade history.
  • Helper method for getting your Steam Web API key.
  • Automatically cancels offers past a set duration during polls.
  • Loads descriptions (classinfos) for assets. Classinfos are cached to file and read when available. The manager holds a Least frequently used (LFU) cache of classinfos in memory to reduce file reads.
  • Uses tokio asynchronous runtime for performing polling.
  • Trade items blazingly fast!

§Usage

All tasks relating to trade offers can be interfaced through TradeOfferManager. If more direct control is needed, the underlying API’s can be found in api and mobile_api.

See examples.

Re-exports§

Modules§

  • This is the underlying API for the manager. In most cases you should stick to using the manager, but if you need more control over the requests, you can use this API directly.
  • Enumerated types.
  • Error types.
  • This is the underlying mobile API for the manager. In most cases you should stick to using the manager, but if you need more control over the requests, you can use this API directly.
  • Models related to polling trade offers.
  • Models for making requests.
  • Models for responses.
  • Types for common values in Steam responses.

Structs§

Functions§

  • A stand-alone method for getting a user’s inventory. Optionally allows specifying a client to use for requests (useful if you need to proxy your requests, for example).