krapio
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

PropertyTypeDescription
buynumberid of the player the offer went to, their items are skbuy
buyerstringname of the player the offer went to
cbuyTradeCurrency[]-
csellTradeCurrency[]-
dtestringwhen the offer was made, "YYYY-MM-DD HH:MM:SS" utc; a completed trade keeps it
messagestring-
plnumberid of the player who made the offer, their items are sksell
playerstringname of the player who made the offer
skbuyTradeItem[]items asked for
sksellTradeItem[]items offered
tridnumber-

On this page