screeps-api
    Preparing search index...

    Interface OpenOrder

    An active order on the in-game market

    interface OpenOrder {
        amount: number;
        price: number;
        remainingAmount: number;
        resourceType: MarketResource;
        roomName: string;
        type: "buy" | "sell";
    }
    Index

    Properties

    amount: number
    price: number
    remainingAmount: number
    resourceType: MarketResource
    roomName: string

    Name of the room that created the order. This is present even for intershard orders, though it is unclear which shard the room is on

    type: "buy" | "sell"