Class: MarketGroup

MarketGroup

An api adapter for dealing with a single market group, currently only supporting fetching simple information.


new MarketGroup(agent, groupId)

Create a new MarketGroup for the given agent provider and specific groupId.

Parameters:
Name Type Description
agent ESIAgent

The agent used to generate web requests

groupId Number

The group id that is used for all requests

Methods


info()

Get information on an item group. This route expires daily at 11:05.

This makes an HTTP GET request to /markets/groups/{market_group_id}/. The route version is v1.

On success, this resolves to information about an item group. An example result is:

{
  "description": "Small, fast vessels suited to a variety of purposes.",
  "market_group_id": 5,
  "name": "Standard Frigates",
  "parent_group_id": 1361,
  "types": [
    582
  ]
}
Returns:

A Promise that resolves to the parsed JSON of the response.

Type
Promise.<Object>