Library referenceTypes
Trade
type Trade = {
buy: number;
buyer: string;
cbuy: TradeCurrency[];
csell: TradeCurrency[];
dte: string;
message: string;
pl: number;
player: string;
skbuy: TradeItem[];
sksell: TradeItem[];
trid: number;
};one trade, short keys as the game sends them
Properties
| Property | Type | Description |
|---|---|---|
buy | number | id of the player the offer went to, their items are skbuy |
buyer | string | name of the player the offer went to |
cbuy | TradeCurrency[] | - |
csell | TradeCurrency[] | - |
dte | string | when the offer was made, "YYYY-MM-DD HH:MM:SS" utc; a completed trade keeps it |
message | string | - |
pl | number | id of the player who made the offer, their items are sksell |
player | string | name of the player who made the offer |
skbuy | TradeItem[] | items asked for |
sksell | TradeItem[] | items offered |
trid | number | - |