{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from datetime import date\n", "from gs_quant.markets.position_set import PositionSet\n", "from gs_quant.session import Environment, GsSession" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "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": "markdown", "metadata": {}, "source": [ "Your excel file must be formatted in one of three ways (column names included). The third example will assign each position equal weight.\n", "
1. Position Weight | 2. Position Quantity | 3. Position Identifiers | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
\n",
"
| \n",
"
| \n",
"
|