pub fn get_all_orders(filter: Option<&LodashFilter>) -> Vec<Order>
Get all Orders on the market, with an optional filter. Note that a resourceType filter has special handling in the engine to be more efficient (source).
Order
resourceType
Screeps documentation