krapio
Library referenceTypes

AppTrade

type AppTrade = {
  completed_at?: string;
  created_at: string;
  message?: string;
  offered: AppTradeSide;
  partner: AppPlayerRef | null;
  requested: AppTradeSide;
  role: "sender" | "recipient";
  status: "open" | "completed";
  trade_id: number;
};

one row of GET /app/v1/trades

Properties

PropertyTypeDescription
completed_at?string-
created_atstring-
message?string-
offeredAppTradeSidewhat the sender gives
partnerAppPlayerRef | nullnull when that account no longer exists
requestedAppTradeSidewhat the sender asks for
role"sender" | "recipient"sender when the player created the trade, recipient when it was sent to them
status"open" | "completed"-
trade_idnumber-

On this page