commodities.Interface.Commodity - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / commodities / Commodity
Defined in: src/commodities/commodities.ts:95
One tradable commodity in Frontier's market registry.
A pure id/name/category record — this is the commodity registry, not a price sheet, so it carries no buy/sell price, supply, demand or producing station. Whether it is a rare good is the Commodity.rare flag; a rare's origin station is not carried (the library has no station registry to key it against).
readonlycategory:CommodityCategory
Defined in: src/commodities/commodities.ts:106
The market group this commodity is sold under.
readonlyname:string
Defined in: src/commodities/commodities.ts:104
Display name, e.g. "Platinum".
readonlyrare:boolean
Defined in: src/commodities/commodities.ts:115
Whether this is a rare commodity — a location-specific luxury good produced at a single station — rather than a standard market good.
Derived from the catalogue the record lives in: every RARE_COMMODITIES
record is true, every COMMODITIES record is false.
readonlysymbol:string
Defined in: src/commodities/commodities.ts:102
Frontier's internal symbol, e.g. "Platinum" — the id the market and player
journal report (case-insensitively, so "platinum" matches). This is the same
field, with the same meaning, as symbol on a ship, module or material, and is
the commodity's key.