Skip to main content
Module

x/steam_trader/mod.ts>createTradeManager

https://deno.land/x/steam_trader
Latest
function createTradeManager
import { createTradeManager } from "https://deno.land/x/steam_trader@v0.4.0/mod.ts";

Use this helper function to create TradeManager and use some defaults. you must provide username, password and sharedSecret when using this. otherwise you have to construct a trade manager object and call manager.setup() function yourself to start using it.

using this function automatically saves/loads poll data to/from the disk. also encrypts your cookies to disk using your machine guid (relogin needed when changing systems). so it needs following permissions:

on windows (not sure if syntax is correct): --allow-env --allow-run --allow-read=%cd%\storage --allow-write=%cd%\storage --allow-net=api.steampowered.com,steamcommunity.com

on linux: --allow-read=/var/lib/dbus/machine-id,/etc/machine-id,$PWD/storage --allow-write=$PWD/storage --allow-net=api.steampowered.com,steamcommunity.com

Parameters

  • a function to add as event handler of 'debug' early. currently the only way to debug setup phase through this function.
optional
debug: (arg: unknown) => void | Promise<void>