{"info":{"_postman_id":"ab62f034-c6ea-47c7-a4bc-ac82455110c7","name":"Portfolio API Tracker","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3432899","collectionId":"ab62f034-c6ea-47c7-a4bc-ac82455110c7","publishedId":"RztitA2H","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-01-27T06:56:14.000Z"},"item":[{"name":"Update Security","id":"58c760d0-74db-435c-82cf-6a49ac8d685d","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"price\": 100\n}"},"url":"https://sheltered-brook-46322.herokuapp.com/api/security/update/TCS","description":"<p>This POST request updates any security it takes TICKER as URL parameter and takes the value to be updated as request body.</p>\n","urlObject":{"protocol":"https","path":["api","security","update","TCS"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"58c760d0-74db-435c-82cf-6a49ac8d685d"},{"name":"Add Security","id":"b9eaa3d2-8117-4a90-868a-2cc728451d43","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Godrej Industries Ltd.\",\n\t\"ticker\": \"GODREJIND\",\n\t\"price\": 100\n}"},"url":"https://sheltered-brook-46322.herokuapp.com/api/security/add","description":"<p>This POST request is used to add new security to the database. It takes data in request body.</p>\n","urlObject":{"protocol":"https","path":["api","security","add"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9eaa3d2-8117-4a90-868a-2cc728451d43"},{"name":"Remove Security","id":"fc011876-0528-487e-9050-a87371cae245","request":{"method":"DELETE","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://sheltered-brook-46322.herokuapp.com/api/security/remove/TCS","description":"<p>This DELETE request removes security from the database</p>\n","urlObject":{"protocol":"https","path":["api","security","remove","TCS"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fc011876-0528-487e-9050-a87371cae245"},{"name":"Get all Security","event":[{"listen":"test","script":{"id":"c94b8f44-86a4-4581-94c6-5c095eff3c39","type":"text/javascript","exec":[""]}}],"id":"5ce930a0-3193-41a3-916d-34056a3294a1","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://sheltered-brook-46322.herokuapp.com/api/security/get","description":"<p>This GET request lists all security with there details</p>\n","urlObject":{"protocol":"https","path":["api","security","get"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ce930a0-3193-41a3-916d-34056a3294a1"},{"name":"Add Trade - Buy","event":[{"listen":"test","script":{"id":"52cf6d7f-fa77-46bb-ba3e-6c5eeb9e06f0","type":"text/javascript","exec":[""]}}],"id":"c7496625-1e04-4ee7-a2f9-ea97129970a4","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"ticker\": \"WIPRO\",\n\t\"action\": \"buy\",\n\t\"quantity\": 10\n}"},"url":"https://sheltered-brook-46322.herokuapp.com/api/trade/add","description":"<p>This POST request is used to add new trade to the database. This request shows the sample buy request.</p>\n","urlObject":{"protocol":"https","path":["api","trade","add"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7496625-1e04-4ee7-a2f9-ea97129970a4"},{"name":"Add Trade - Sell","id":"e07e9cc5-30ca-4abe-ac8e-a941a033aaeb","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"ticker\": \"WIPRO\",\n\t\"action\": \"sell\",\n\t\"quantity\": 20\n}"},"url":"https://sheltered-brook-46322.herokuapp.com/api/trade/add","description":"<p>This POST request is used to add new trade to the database. This shows the sell sample request.</p>\n","urlObject":{"protocol":"https","path":["api","trade","add"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e07e9cc5-30ca-4abe-ac8e-a941a033aaeb"},{"name":"Get Portfolio","id":"4b86b3b6-dd0b-477d-9ff1-2b1643eb452b","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"formdata","formdata":[]},"url":"https://sheltered-brook-46322.herokuapp.com/api/portfolio/getPortfolio","description":"<p>This GET request gets the ticker and all trades corresponding to it.</p>\n","urlObject":{"protocol":"https","path":["api","portfolio","getPortfolio"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b86b3b6-dd0b-477d-9ff1-2b1643eb452b"},{"name":"Get Holdings","id":"25c84448-4273-4e90-862b-0adc492c489c","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://sheltered-brook-46322.herokuapp.com/api/portfolio/getHoldings","description":"<p>This GET request returns all current holdings with there corresponding details</p>\n","urlObject":{"protocol":"https","path":["api","portfolio","getHoldings"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"25c84448-4273-4e90-862b-0adc492c489c"},{"name":"Get returns","id":"339c220d-23b6-4e5c-833b-fb40e20aa9fa","request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[]},"url":"https://sheltered-brook-46322.herokuapp.com/api/portfolio/getReturns","description":"<p>This GET request returns the current returns according to the current price.</p>\n","urlObject":{"protocol":"https","path":["api","portfolio","getReturns"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"339c220d-23b6-4e5c-833b-fb40e20aa9fa"},{"name":"Remove Trade","id":"75d19d13-7717-4520-bf16-e8ef1289461d","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://sheltered-brook-46322.herokuapp.com/api/trade/remove/5c4c8655fefe994551246fef","description":"<p>This DELETE request takes id of the trade as URL parameter and removes the trade from the database.</p>\n","urlObject":{"protocol":"https","path":["api","trade","remove","5c4c8655fefe994551246fef"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"75d19d13-7717-4520-bf16-e8ef1289461d"},{"name":"Update Trade","id":"c3f60ade-7ab7-4288-854c-13ea9d798155","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"updatedQuantity\": 10\n}"},"url":"https://sheltered-brook-46322.herokuapp.com/api/trade/update/5c4dd9094a75930017c4f5a1","description":"<p>This POST request updates trade. It takes trade id as parameter which can be taken by getPortfolio route. The request body contains updatedQuantity as parameter in which we have to provide the updatedQuantity which we want to provide.</p>\n","urlObject":{"protocol":"https","path":["api","trade","update","5c4dd9094a75930017c4f5a1"],"host":["sheltered-brook-46322","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3f60ade-7ab7-4288-854c-13ea9d798155"}]}