{"info":{"_postman_id":"f3e80c05-0ac3-d226-65e1-fcaec169a8a7","name":"aggregationAPI","description":"# Introduction to C2's aggregationAPI\nCollective2's Aggregation API allows you to analyze multiple strategies.\n\n\n\n# Authentication\nAuthorization Bearer APIKEY\n\n# Error Codes\nTBD\n\n# Rate limit\nOne request per second","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"strategySet","id":"44830a47-bb23-f0c4-0653-4742cc258e25","request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":"{\n\n\t\n\t\"strategy_set_definition\": \t{\n\t\t\t\t\t\t\t\t\"name\": \"Best Strategies In the World\",\n\t\t\t\t\t\t\t\t\"filterBoolean\": \"AND\",\t\n\t\t\t\t\t\t\t\t\"filterList\": [\n\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp90\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"1\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp60\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"2\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t   ]\n\n\t\t\t\t\t\t\t}\n\n} "},"url":"https://{{url}}/aggregation/1/strategySet","description":"Define a a new Strategy Set. \n\nA Strategy Set is a description of a set of strategies, as defined through the use of mathematical and logical parameters. You can defined a Strategy Set through the use of statistics and numeric values. The set of startegies produced by a Strategy Set description will change as startegy statsicts change.\n\nYou can optionally include a \"name\" parameter which names your strategySet. It must be unique."},"response":[],"_postman_id":"44830a47-bb23-f0c4-0653-4742cc258e25"},{"name":"strategySet","id":"fa47d76a-c87c-402d-3432-5ed9a1c1930c","request":{"auth":{"type":"noauth"},"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":"{\n\n\t\n\t\"strategy_set_definition\": \t{\n\n\t\t\t\t\t\t\t\t\"filterBoolean\": \"AND\",\t\n\t\t\t\t\t\t\t\t\"filterList\": [\n\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp90\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"1\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp60\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"2\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t   ]\n\n\t\t\t\t\t\t\t}\n\n} "},"url":"https://{{url}}/aggregation/1/strategySet","description":"Retrieve a list of previously defined Strategy Set definitions."},"response":[],"_postman_id":"fa47d76a-c87c-402d-3432-5ed9a1c1930c"},{"name":"strategySet","id":"dfd58807-9358-acdb-cf80-1bf28099bddd","request":{"auth":{"type":"noauth"},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":"{\n\n\t\n\t\"strategy_set_definition\": \t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\"filterBoolean\": \"AND\",\t\n\t\t\t\t\t\t\t\t\"filterList\": [\n\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp90\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"88\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp60\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"99\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t   ]\n\n\t\t\t\t\t\t\t}\n\n} "},"url":"https://{{url}}/aggregation/1/strategySet/6","description":"Modify an already existing strategySet.\n\nhttps://{{url}}/aggregation/1/strategySet/{{strategySetID}}"},"response":[{"id":"c03e277f-ce35-8b33-f3bd-cf9910c6bb74","name":"strategySet","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":"{\n\n\t\n\t\"strategy_set_definition\": \t{\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\"filterBoolean\": \"AND\",\t\n\t\t\t\t\t\t\t\t\"filterList\": [\n\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp90\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"88\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp60\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"99\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t   ]\n\n\t\t\t\t\t\t\t}\n\n} "},"url":"https://{{url}}/aggregation/1/strategySet/6"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 01 Jan 2018 18:57:02 GMT","name":"Date","description":""},{"key":"Server","value":"nginx","name":"Server","description":""},{"key":"Strict-Transport-Security","value":"max-age=31449600","name":"Strict-Transport-Security","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":""}],"cookie":[{"expires":"Mon Dec 31 2018 16:42:34 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"xfykVHbnmgVA59CR6JsSXs8rqG66olu6K0S1dX8PHnZWY6b16Vgy1nFgWMxV","key":"sessiontracker"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"2ODNgDOyFLj1tFohEeDRmvH74sKr3zqJjfqQ7e5m_0","key":"c2session"}],"responseTime":"52","body":"{\n   \"id\" : \"6\"\n}\n"}],"_postman_id":"dfd58807-9358-acdb-cf80-1bf28099bddd"},{"name":"strategySet","id":"aa0ec57a-cd87-2a34-a732-ade4b4525070","request":{"auth":{"type":"noauth"},"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{url}}/aggregation/1/strategySet/7","description":"Delete an already existing strategySet.\n\nhttps://{{url}}/aggregation/1/strategySet/{{strategySetID}}"},"response":[{"id":"876b90f8-c67e-2d44-4928-455028f416d4","name":"strategySet","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":""},"url":"https://{{url}}/aggregation/1/strategySet/7"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 01 Jan 2018 18:56:18 GMT","name":"Date","description":""},{"key":"Server","value":"nginx","name":"Server","description":""},{"key":"Strict-Transport-Security","value":"max-age=31449600","name":"Strict-Transport-Security","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":""}],"cookie":[{"expires":"Mon Dec 31 2018 16:42:34 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"xfykVHbnmgVA59CR6JsSXs8rqG66olu6K0S1dX8PHnZWY6b16Vgy1nFgWMxV","key":"sessiontracker"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"2ODNgDOyFLj1tFohEeDRmvH74sKr3zqJjfqQ7e5m_0","key":"c2session"}],"responseTime":"3154","body":"{\n   \"id\" : \"7\"\n}\n"}],"_postman_id":"aa0ec57a-cd87-2a34-a732-ade4b4525070"},{"name":"requestAggregatePositions [disposable strategy set definition]","id":"00482f76-a3cc-569a-64f3-0a577c388ee1","request":{"auth":{"type":"noauth"},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":"{\n\t\"normalizeDollars\": \"100000\",\n\t\n\t\"strategy_set_definition\": \t{\n\n\t\t\t\t\t\t\t\t\"filterBoolean\": \"AND\",\t\n\t\t\t\t\t\t\t\t\"filterList\": [\n\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp30\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"1\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp60\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"2\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t   ]\n\n\t\t\t\t\t\t\t},\n\n\t\"filter_results\":\t{\n\t\t\t\t\t\t\theld_by_min_num_strategies: \"3\",\n\t\t\t\t\t\t\theld_by_min_percent_set: \".02\"\n\t\t\t\t\t\t},\n} "},"url":"https://{{url}}/aggregation/1/requestAggregatePositions","description":"returns aggregate positions of a mathematically defined strategy set\n\nWhen called in a POST context, you can define a disposable strategySet that will be used only for this request, and will not be saved\n\nnormalizeDollars: describes how to normalize position sizes in the aggregate portfolio. Remember that every strategy in C2 has its own Model Account size. A position of 100 shares of IBM has different relative magnitudes in a Model Account of size $10,000 versus a Model Account of size $100,000.\n\nIf you choose to normalize by dollars, then each position within a single strategy will be multiplied by a quantity before it is added together in the positions aggregation. That multiplication factor is based on the Model Account size. In the example below, all quantities will be adjusted such that each strategy has a normalized $100,000 Model Account size. So, for example, if a strategy actually has a $25,000 Model Account, and actually has a long position of 200 IBM shares, then 800 IBM shares will be added to the aggregated amount (because we need to normalize the Model Account to bring it from $25k to $100k, and thus multiply everything by 4). In contrast, if a strategy actually has a $200,000 Model Account size, and actually 200 IBM shares, then 100 IBM shares will will be added to the aggregated amount (because to normalize the Model Account size, position sizes need to be divided by 2).\n\nNormalization is optional.\n\nYou can also filter results by specifying that any symbol which is not held by a minimum number (or percentage) of strategies will not be returned to you."},"response":[{"id":"bacaeb45-6a96-347a-5b61-0ff324c21ead","name":"requestAggregatePositions [disposable strategy set definition]","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"raw","raw":"{\n\t\"normalizeDollars\": \"100000\",\n\t\n\t\"filter_results\":\t{\n\t\t\t\t\t\t\theld_by_min_num: \"3\",\n\t\t\t\t\t\t\theld_by_min_percent: \".02\"\n\t\t\t\t\t\t},\n\t\t\t\t\t\t\n\t\"strategy_set_definition\": \t{\n\n\t\t\t\t\t\t\t\t\"filterBoolean\": \"AND\",\t\n\t\t\t\t\t\t\t\t\"filterList\": [\n\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp30\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"1\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp60\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"2\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t   ]\n\n\t\t\t\t\t\t\t}\n\n\n} "},"url":"https://{{url}}/aggregation/1/requestAggregatePositions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 01 Jan 2018 19:47:32 GMT","name":"Date","description":""},{"key":"Server","value":"nginx","name":"Server","description":""},{"key":"Strict-Transport-Security","value":"max-age=31449600","name":"Strict-Transport-Security","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":""}],"cookie":[{"expires":"Mon Dec 31 2018 16:42:34 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"xfykVHbnmgVA59CR6JsSXs8rqG66olu6K0S1dX8PHnZWY6b16Vgy1nFgWMxV","key":"sessiontracker"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"2ODNgDOyFLj1tFohEeDRmvH74sKr3zqJjfqQ7e5m_0","key":"c2session"}],"responseTime":"1571","body":"{\n   \"numStrategiesInSet\" : 171,\n   \"aggregatePositions\" : [\n      {\n         \"symbol\" : \"GOOG\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"60.11\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"@YMH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"25.91\",\n         \"numStrategiesWithPositions\" : 5\n      },\n      {\n         \"symbol\" : \"USDCAD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-1.33\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"AUDUSD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-60.89\",\n         \"numStrategiesWithPositions\" : 6\n      },\n      {\n         \"symbol\" : \"EURUSD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"190.56\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"TQQQ\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"1500.33\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"USDJPY\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"0.48\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"FB\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"208.79\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"SPY\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"319.74\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"XIV\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"9618.28\",\n         \"numStrategiesWithPositions\" : 19\n      },\n      {\n         \"symbol\" : \"GBPUSD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-8.79\",\n         \"numStrategiesWithPositions\" : 5\n      },\n      {\n         \"symbol\" : \"@ESH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"17.15\",\n         \"numStrategiesWithPositions\" : 8\n      }\n   ],\n   \"elapsedTime\" : \"1.4167\"\n}\n"},{"id":"e937a2c5-c812-ef43-d865-56e6b3030967","name":"requestAggregatePositions","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"normalize\": {\n\t\t\t\t\"method\": \"dollars\",\n\t\t\t\t\"normalizeDollars\": 25000\n\t\t\t },\n\t\n\t\"strategy_set_definition\": \t{\n\n\t\t\t\t\t\t\t\t\"filterBoolean\": \"AND\",\t\n\t\t\t\t\t\t\t\t\"filterList\": [\n\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp30\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"1\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t    \"stat\": \"deltaequityp60\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"operator\": \">=\",\n\t\t\t\t\t\t\t\t\t\t\t\t    \"value\": \"2\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t   ]\n\n\t\t\t\t\t\t\t},\n\n\t\"filter_results\":\t{\n\t\t\t\t\t\t\theld_by_min_num_strategies: \"3\",\n\t\t\t\t\t\t\theld_by_min_percent_set: \".02\"\n\t\t\t\t\t\t},\n} "},"url":"https://{{url}}/aggregation/1/requestAggregatePositions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive","name":"Connection","description":"Options that are desired for the connection"},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Sat, 30 Dec 2017 20:00:38 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Server","value":"nginx","name":"Server","description":"A name for the server"},{"key":"Strict-Transport-Security","value":"max-age=31449600","name":"Strict-Transport-Security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":"The form of encoding used to safely transfer the entity to the user. Currently defined methods are: chunked, compress, deflate, gzip, identity."},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"}],"cookie":[],"responseTime":"2945","body":"{\n   \"numStrategiesInSet\" : 162,\n   \"aggregatePositions\" : [\n      {\n         \"symbol\" : \"GILD\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"344.24\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"GOOG\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"15.00\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"@YMH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"3.33\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"SPY\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"125.98\",\n         \"numStrategiesWithPositions\" : 6\n      },\n      {\n         \"symbol\" : \"AUDUSD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-14.49\",\n         \"numStrategiesWithPositions\" : 5\n      },\n      {\n         \"symbol\" : \"XIV\",\n         \"typeofsymbol\" : \"stock\",\n         \"quantity\" : \"2547.91\",\n         \"numStrategiesWithPositions\" : 21\n      },\n      {\n         \"symbol\" : \"GBPUSD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-1.69\",\n         \"numStrategiesWithPositions\" : 4\n      },\n      {\n         \"symbol\" : \"@ESH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"3.38\",\n         \"numStrategiesWithPositions\" : 9\n      }\n   ],\n   \"elapsedTime\" : \"1.0226\"\n}\n"}],"_postman_id":"00482f76-a3cc-569a-64f3-0a577c388ee1"},{"name":"requestAggregatePositions","id":"50064438-3d67-ed75-b8ef-c620065d5259","request":{"auth":{"type":"noauth"},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{apikey}}"}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{url}}/aggregation/1/requestAggregatePositions/4?normalizeDollars=25000&held_by_min_num=2&held_by_min_percent=.03","protocol":"https","host":["{{url}}"],"path":["aggregation","1","requestAggregatePositions","4"],"query":[{"key":"normalizeDollars","value":"25000"},{"key":"held_by_min_num","value":"2"},{"key":"held_by_min_percent","value":".03"}]},"description":"Use a previously defined Strategy Set and calculate its aggregate positions. \n\nOptional paramters include:\n\nnormalizeDollars = multiplies each strategies size by some factor required to transform its Model Account to this size\n\nheld_by_min_num = only show positions held by at least this number of strategies\n\nheld_by_min_percent = only show positions held by a minimum percentage of strategies within the strategy set. This number is between 0 and 1. For example a value of .13 means: only show positions held by 13% or more of your strategy set."},"response":[{"id":"cf98aea6-a874-a7b3-8b7a-72c5d92a0183","name":"requestAggregatePositions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{apikey}}","disabled":false}],"body":{"mode":"formdata","formdata":[]},"url":{"raw":"https://{{url}}/aggregation/1/requestAggregatePositions/4?normalizeDollars=25000&held_by_min_num=2&held_by_min_percent=.03","protocol":"https","host":["{{url}}"],"path":["aggregation","1","requestAggregatePositions","4"],"query":[{"key":"normalizeDollars","value":"25000"},{"key":"held_by_min_num","value":"2"},{"key":"held_by_min_percent","value":".03"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Connection","value":"keep-alive","name":"Connection","description":""},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":""},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":""},{"key":"Date","value":"Mon, 01 Jan 2018 20:05:35 GMT","name":"Date","description":""},{"key":"Server","value":"nginx","name":"Server","description":""},{"key":"Strict-Transport-Security","value":"max-age=31449600","name":"Strict-Transport-Security","description":""},{"key":"Transfer-Encoding","value":"chunked","name":"Transfer-Encoding","description":""},{"key":"Vary","value":"Accept-Encoding","name":"Vary","description":""},{"key":"X-Content-Type-Options","value":"nosniff","name":"X-Content-Type-Options","description":""},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":""}],"cookie":[{"expires":"Mon Dec 31 2018 16:42:34 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"xfykVHbnmgVA59CR6JsSXs8rqG66olu6K0S1dX8PHnZWY6b16Vgy1nFgWMxV","key":"sessiontracker"},{"expires":"Tue Jan 19 2038 03:14:07 GMT+0000 (Coordinated Universal Time)","httpOnly":false,"domain":"collective2.com","path":"/","secure":false,"value":"2ODNgDOyFLj1tFohEeDRmvH74sKr3zqJjfqQ7e5m_0","key":"c2session"}],"responseTime":"121","body":"{\n   \"numStrategiesInSet\" : 6,\n   \"aggregatePositions\" : [\n      {\n         \"symbol\" : \"@TYM8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"2.52\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"QNGH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"-1.26\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"@ESH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"2.40\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"@YMH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"1.76\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"AUDUSD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-8.07\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"USDJPY\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-2.86\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"AUDJPY\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-30.26\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"@NQH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"-1.31\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"EURJPY\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"17.19\",\n         \"numStrategiesWithPositions\" : 1\n      },\n      {\n         \"symbol\" : \"USDCAD\",\n         \"typeofsymbol\" : \"forex\",\n         \"quantity\" : \"-1.69\",\n         \"numStrategiesWithPositions\" : 2\n      },\n      {\n         \"symbol\" : \"@TYH8\",\n         \"typeofsymbol\" : \"future\",\n         \"quantity\" : \"-2.52\",\n         \"numStrategiesWithPositions\" : 1\n      }\n   ],\n   \"elapsedTime\" : \"0.0694\"\n}\n"}],"_postman_id":"50064438-3d67-ed75-b8ef-c620065d5259"}],"event":[{"listen":"prerequest","script":{"id":"ec65d3b6-3c51-43ec-b68d-146fc0240032","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b15e677a-3ae4-4b9d-8d6a-6fd8154761ec","type":"text/javascript","exec":[""]}}]}