Skip to content

tradeItems

tradeItems(partner, give, get, timeoutMs?): Promise<InventoryResultData>

Deprecated by Steam: the SDK documents trading through the inventory as not supported. The call is wrapped for completeness and is expected to reject. Unverified against a live Steam client.

If Steam does accept it, this changes the user’s real inventory by trading items with partner.

bigint

The Steam id of the trade partner, as a bigint.

ItemInstanceQuantity[]

The items the user gives, with their quantities.

ItemInstanceQuantity[]

The items the user receives, with their quantities.

number | null

How long to wait for Steam, in milliseconds. Defaults to 30000.

Promise<InventoryResultData>

the result of the trade.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.