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§
pub use reqwest;
pub use reqwest_middleware;
pub use chrono;
pub use steamid_ng;
Modules§
- api
- 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.
- enums
- Enumerated types.
- error
- Error types.
- mobile_
api - 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.
- polling
- Models related to polling trade offers.
- request
- Models for making requests.
- response
- Models for responses.
- types
- Types for common values in Steam responses.
Structs§
- Class
Info Cache - Used for storing caches of
ClassInfo
data in memory. Data is stored using anLfuCache
to limit how many elements are stored in memory. While you probably won’t need to use this directly, it is used internally byTradeOfferManager
for managingClassInfo
data. - SteamID
- Steam ID. Re-export from
steamid_ng
. - Trade
Offer Manager - Manager which includes functionality for interacting with trade offers, confirmations and inventories.
- Trade
Offer Manager Builder - Builder for constructing a
TradeOfferManager
.
Functions§
- get_
inventory - 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).