m.partners.fable.merchant_hierarchy¶
Fable Data's map from merchants to parent companies, tickers, and industries.
Call it from a session m, made with dm.MassiveSession():
m.partners.fable.merchant_hierarchy(*, sort=None, order=None, limit=None, filters=None, on_error=None)
- Methods:
fetch(),poll(interval) - Read from: REST
poll()by default:dm.PollMode.REPLACE, which holds only the latest poll's rows, one row perLookupNameandActiveFrom
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
sort |
Any field of the rows, such as "lookup_name". Fields: any REST field under Massive fields. |
order |
The direction of sort. |
limit |
The most rows to return, in total. |
filters |
Further endpoint parameters, such as {"listing_status": "public"}. Keys: active_from, active_from_gt, active_from_gte, active_from_lt, active_from_lte, active_to, active_to_gt, active_to_gte, active_to_lt, active_to_lte, listing_status, listing_status_any_of, lookup_name, lookup_name_any_of, lookup_name_gt, lookup_name_gte, lookup_name_lt, lookup_name_lte, ticker, ticker_any_of, ticker_gt, ticker_gte, ticker_lt, ticker_lte. |
on_error |
What a bad symbol or row does in this call (dm.ErrorPolicy). None, the default, takes each cause from the session's MassiveConfig.on_error. |
Plans¶
How recent the data is on each of Massive's plans, and how far back its history goes, as Massive's pages state them.
| Plan | Merchant Hierarchy (REST) |
|---|---|
| European Consumer Spending by Merchant | 30-day delayed, All history |
| European Consumer Spending by Merchant Business | 7-day delayed, All history |
Columns¶
| Column | Type | Description |
|---|---|---|
ActiveFrom |
String | Date this merchant hierarchy mapping became applicable. A value of 0001-01-01 indicates no known start date. Use with active_to to match against transaction_date from the merchant-aggregates endpoint to perform point-in-time queries. |
ActiveTo |
String | Date after which this merchant hierarchy mapping is no longer applicable due to a corporate action. A value of 9999-12-31 indicates the mapping is currently active. |
Category |
String | Merchant category assigned by the data provider (Title Case, e.g., 'Groceries', 'General Merchandise', 'Travel'). Values are managed by the data provider and may expand over time. |
GrandparentName |
String | Merchant's grandparent business name (Title Case). |
GrandparentTicker |
String | Stock ticker of the merchant's grandparent company. Uses Bloomberg standard. |
GreatGrandparentName |
String | Merchant's great-grandparent business name (Title Case, top-level corporate entity). |
GreatGrandparentTicker |
String | Stock ticker of the merchant's great-grandparent company (top-level corporate entity). Uses Bloomberg standard. |
Industry |
String | Industry classification based on GICS/BICS/ICB standards. |
IndustryGroup |
String | Industry group classification based on GICS/BICS/ICB standards. |
ListingStatus |
String | Whether the merchant is a publicly listed company or private. Possible values: public, private. |
LookupName |
String | Lowercase merchant tag used for joining with the merchant-aggregates endpoint name field (e.g., 'asda', 'amazon'). |
NormalizedName |
String | Cleaned, standardized merchant display name (Title Case, e.g., 'Asda', 'Amazon'). |
ParentName |
String | Merchant's parent business name (Title Case). Useful for aggregating transactions across subsidiary brands. |
ParentTicker |
String | Stock ticker of the merchant's parent company. Uses Bloomberg standard. |
Sector |
String | Sector classification based on GICS/BICS/ICB standards. |
SubIndustry |
String | Sub-industry classification based on GICS/BICS/ICB standards. |
Ticker |
String | Stock ticker associated with the merchant (~250 US public companies mapped). Uses Bloomberg standard. |
TimestampInsert |
Instant | When the library received the row, by the local clock. Rows that arrive together share it. It isn't Massive's time, and later rows can carry earlier times. In a poll() table, it's the time of the poll the row's values came from. |
Massive fields
The Massive field behind each column, by source. An empty cell means the source doesn't carry the column, or the library computes it.
| Column | REST field |
|---|---|
ActiveFrom |
active_from |
ActiveTo |
active_to |
Category |
category |
GrandparentName |
grandparent_name |
GrandparentTicker |
grandparent_ticker |
GreatGrandparentName |
great_grandparent_name |
GreatGrandparentTicker |
great_grandparent_ticker |
Industry |
industry |
IndustryGroup |
industry_group |
ListingStatus |
listing_status |
LookupName |
lookup_name |
NormalizedName |
normalized_name |
ParentName |
parent_name |
ParentTicker |
parent_ticker |
Sector |
sector |
SubIndustry |
sub_industry |
Ticker |
ticker |
TimestampInsert |
Massive's documentation¶
The plan tables and most column descriptions are Massive's, from its documentation as fetched on 2026-12-01, with a few corrected where Massive's are wrong. The library writes its own descriptions of the columns it names or computes, such as Symbol and TimestampInsert.