Methods
-
attachmentFromComponents(components, query [, platform])
-
Build an attachment from the provided components
Parameters:
Name Type Argument Default Description componentsArray.<MarketComponent> collected array of components with market data querystring Search query that these components match platformstring <optional>
'pc' Platform for the request, defaults to 'pc' - Source:
Returns:
Discord-ready attachment describing the item- Type
- Object
-
fieldValue(mComponent)
-
Build a field from provided nexus & market components
Parameters:
Name Type Description mComponentMarketComponent market component - Source:
Returns:
built field- Type
- Object
-
lookupAlias(platformAlias, market)
-
Look up real platform for platform alias
Parameters:
Name Type Default Description platformAliasstring Alias of platform marketboolean false Whether or not to use market-specific aliases - Source:
Returns:
Real platform identifier- Type
- string
-
safeRange(value1, value2)
-
Calculate the safe value for a provided value
Parameters:
Name Type Description value1string provided minimum value value2string provided maximum value - Source:
Returns:
safe value- Type
- string
-
safeValue(value)
-
Calculate the safe value for a provided value
Parameters:
Name Type Description valuestring provided value - Source:
Returns:
safe value- Type
- string
-
<async> summaryForItem(item)
-
Construct a summary for the market item
Parameters:
Name Type Description itemObject Warframe.market Item - Source:
Returns:
Market summary for item- Type
- Object
-
toString(opt)
-
The components' string representation
Parameters:
Name Type Default Description optstring item Option, either 'codex', 'item', 'location', 'all' - Source:
Returns:
- Type
- string
Type Definitions
-
MappedPrice
-
Type:
- Object
- Source:
Properties:
Name Type Description volumestring medianstring max_pricestring min_pricestring datetimestring ts formatted date string