{ "cells": [ { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "from gs_quant.markets.indices_utils import AssetClass, BasketType, get_constituents_dataset_coverage\n", "from gs_quant.session import Environment, GsSession\n", "\n", "client = 'CLIENT_ID'\n", "secret = 'CLIENT_SECRET'\n", "\n", "GsSession.use(Environment.PROD, client_id=client, client_secret=secret, scopes=('read_product_data',))" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "# Equity Custom Baskets\n", "GSBASKETCONSTITUENTS_COVERAGE = get_constituents_dataset_coverage()\n", "\n", "# Equity Research Baskets\n", "GIRBASKETCONSTITUENTS_COVERAGE = get_constituents_dataset_coverage(basket_type=BasketType.RESEARCH_BASKET)\n", "\n", "# Credit Custom Baskets\n", "GSCREDITBASKETCONSTITUENTS_COVERAGE = get_constituents_dataset_coverage(asset_class=AssetClass.Credit)" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 4 }