menu
Data

Map Symbology

Asset Service provides the information needed to map from one identifier to another. Clients can retrieve this data via the GS Quant SDK.

Compatibility

Before running examples in this guide, ensure that source is set to Asset Service.

from gs_quant.markets.securities import SecurityMaster, SecurityMasterSource

SecurityMaster.set_source(SecurityMasterSource.ASSET_SERVICE)

Method availability varies by source:

MethodAsset ServiceSecurity Master
get_assetXX
get_identifiersX
get_all_identifiersX
map_identifiersXX

Querying

You can look up a security using any of the identifier types in Asset Service (e.g. ric, bbid, cusip, sedol). Identifiers that refer to the same security will be returned, subject to licensing.

Milestoning

Identifiers are milestoned, such that the history of each identifier for a given security can be viewed. By default, data that is currently valid will be retrieved. However, users can specify an "as of" date to see identifier values that were in effect on a past date. (Other fields such as asset type and class are not milestoned.)

info

Note

Examples require an initialized GsSession. Please refer to Sessions for details.

Get By Identifier

import datetime
from gs_quant.markets.securities import AssetIdentifier, SecurityMaster

asset = SecurityMaster.get_asset('GS UN', AssetIdentifier.BLOOMBERG_ID, as_of=datetime.date(2021, 1, 5))
asset.get_identifiers()

Output:

{
  'GSID': '901026',
  'CUSIP': '38141G104',
  'ISIN': 'US38141G1040',
  'BBID': 'GS UN',
  'RIC': 'GS.N',
  'SEDOL': '2407966',
  'TICKER': 'GS',
  'BCID': 'GS US'
}

To spot check a few properties:

print(asset.name)
print(asset.exchange)

Output:

The Goldman Sachs Group, Inc.
NYSE

Mapping Between Identifiers

To map from one identifier of an asset to another identifier for the same asset, use the map_identifiers function. For example, if we know the BBID of an asset is "GS UN" and want to find the corresponding CUSIP on a given date:

import datetime
from gs_quant.markets.securities import SecurityIdentifier, SecurityMaster

as_of = datetime.date(2021, 10, 15)
SecurityMaster.map_identifiers(SecurityIdentifier.BBID, ["GS UN"], [SecurityIdentifier.CUSIP], as_of_date=as_of)

Output:

{
    '2021-10-15': {
        'GS UN': {
            'cusip': '38141G104'
        }
    }
}

Certain solutions and Institutional Services described herein are provided via our Marquee platform. The Marquee platform is for institutional and professional clients only. This site is for informational purposes only and does not constitute an offer to provide the Marquee platform services described, nor an offer to sell, or the solicitation of an offer to buy, any security. Some of the services and products described herein may not be available in certain jurisdictions or to certain types of clients. Please contact your Goldman Sachs sales representative with any questions. Any data or market information presented on the site is solely for illustrative purposes. There is no representation that any transaction can or could have been effected on such terms or at such prices. Please see https://www.goldmansachs.com/disclaimer/sec-div-disclaimers-for-electronic-comms.html for additional information.
Transaction Banking services are offered by Goldman Sachs Bank USA (“GS Bank”). GS Bank is a New York State chartered bank, a member of the Federal Reserve System and a Member FDIC.
GS DAP™ is owned and operated by Goldman Sachs. This site is for informational purposes only and does not constitute an offer to provide, or the solicitation of an offer to provide access to or use of GS DAP™. Any subsequent commitment by Goldman Sachs to provide access to and / or use of GS DAP™ would be subject to various conditions, including, amongst others, (i) satisfactory determination and legal review of the structure of any potential product or activity, (ii) receipt of all internal and external approvals (including potentially regulatory approvals); (iii) execution of any relevant documentation in a form satisfactory to Goldman Sachs; and (iv) completion of any relevant system / technology / platform build or adaptation required or desired to support the structure of any potential product or activity.
Mosaic is a service mark of Goldman Sachs & Co. LLC. This service is made available in the United States by Goldman Sachs & Co. LLC and outside of the United States by Goldman Sachs International, or its local affiliates in accordance with applicable law and regulations. Goldman Sachs International and Goldman Sachs & Co. LLC are the distributors of the Goldman Sachs Funds. Depending upon the jurisdiction in which you are located, transactions in non-Goldman Sachs money market funds are affected by either Goldman Sachs & Co. LLC, a member of FINRA, SIPC and NYSE, or Goldman Sachs International. For additional information contact your Goldman Sachs representative. Goldman Sachs & Co. LLC, Goldman Sachs International, Goldman Sachs Liquidity Solutions, Goldman Sachs Asset Management, L.P., and the Goldman Sachs funds available through Goldman Sachs Liquidity Solutions and other affiliated entities, are under the common control of the Goldman Sachs Group, Inc.
© 2024 Goldman Sachs. All rights reserved.