Methods
-
attachmentFromComponents(components, query [, platform])
-
Build an attachment from the provided components
Parameters:
Name Type Argument Default Description components
Array.<MarketComponent> collected array of components with market data query
string Search query that these components match platform
string <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 mComponent
MarketComponent market component - Source:
Returns:
built field- Type
- Object
-
lookupAlias(platformAlias, market)
-
Look up real platform for platform alias
Parameters:
Name Type Default Description platformAlias
string Alias of platform market
boolean 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 value1
string provided minimum value value2
string provided maximum value - Source:
Returns:
safe value- Type
- string
-
safeValue(value)
-
Calculate the safe value for a provided value
Parameters:
Name Type Description value
string provided value - Source:
Returns:
safe value- Type
- string
-
<async> summaryForItem(item)
-
Construct a summary for the market item
Parameters:
Name Type Description item
Object Warframe.market Item - Source:
Returns:
Market summary for item- Type
- Object
-
toString(opt)
-
The components' string representation
Parameters:
Name Type Default Description opt
string item Option, either 'codex', 'item', 'location', 'all' - Source:
Returns:
- Type
- string
Type Definitions
-
MappedPrice
-
Type:
- Object
- Source:
Properties:
Name Type Description volume
string median
string max_price
string min_price
string datetime
string ts formatted date string