{"info":{"_postman_id":"b648565c-6a0c-4de0-b142-8fa36ff9fb00","name":"sc project","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3908963","collectionId":"b648565c-6a0c-4de0-b142-8fa36ff9fb00","publishedId":"TzCFgqQk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-23T08:10:06.000Z"},"item":[{"name":"health","id":"a4e2f597-1c2c-4729-8628-1915ac8c2193","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}","description":"<p>just a simple root to check that our api is healthy or not</p>\n","urlObject":{"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4e2f597-1c2c-4729-8628-1915ac8c2193"},{"name":"addPortfolio","id":"25deeb9a-223e-4009-9a44-c4dc7a95cd9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"tickerSymbol\" :\"ABCD\",\n\t\"avgBuyPrice\": 100,\n\t\"shares\": 5000\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/addPortfolio","description":"<p>adding securities in out portfolio</p>\n","urlObject":{"path":["api","trade","addPortfolio"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"25deeb9a-223e-4009-9a44-c4dc7a95cd9c"},{"name":"getPortfolio","id":"a4ed4460-b6d1-4e35-9606-9156ccb38ea7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/trade/getPortfolio","description":"<p>list all items in out portfolio</p>\n","urlObject":{"path":["api","trade","getPortfolio"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a4ed4460-b6d1-4e35-9606-9156ccb38ea7"},{"name":"returns","id":"7e7556ab-bc09-4c53-a3cd-c0a5474c6c17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/api/trade/returns","description":"<p>calculate and return returns of user's portfolio</p>\n","urlObject":{"path":["api","trade","returns"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7e7556ab-bc09-4c53-a3cd-c0a5474c6c17"},{"name":"buy","id":"d9c9edaa-0aa5-48e0-bd8f-832156e4d9b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"tickerSymbol\": \"ABCD\",\n\t\"buyPrice\": 3,\n\t\"shares\": 5\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/buy","description":"<p>trade(i.e buying something to portfolio)</p>\n","urlObject":{"path":["api","trade","buy"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9c9edaa-0aa5-48e0-bd8f-832156e4d9b0"},{"name":"sell","id":"42504db6-5d73-4009-8801-6ead1660ebf5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"tickerSymbol\": \"ABCD\",\n\t\"shares\": 1\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/sell","description":"<p>trade(i.e selling something from portfolio)</p>\n","urlObject":{"path":["api","trade","sell"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"42504db6-5d73-4009-8801-6ead1660ebf5"},{"name":"getTrades","id":"7a541969-f825-43ff-920b-81e3f1da6dd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/getTrades","description":"<p>get all the trades ( buy+ sell ) made by user</p>\n","urlObject":{"path":["api","trade","getTrades"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"7a541969-f825-43ff-920b-81e3f1da6dd8"},{"name":"update trade","id":"36c3351c-ae91-4164-8454-67cf098cf567","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"id\": \"605be7f5e8297917180bc5be\",\n\t\"type\": \"sell\",\n\t\"tickerSymbol\": \"ABCD\",\n\t\"avgPrice\": 10,\n\t\"shares\": 2\n\t\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/updateTrade","description":"<p>update any trade:\n1.Body in case of buy</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"id\": \"605be7f5e8297917180bc5be\",\n\"type\": \"sell\",\n\"tickerSymbol\": \"ABCD\",\n\"avgPrice\": 10,\n\"shares\": 2\n}\n</code></pre><p>2.Body in case of sell</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n\"id\": \"605be7f5e8297917180bc5be\",\n\"type\": \"buy\",\n\"tickerSymbol\": \"ABCD\",\n\"shares\": 2\n}\n</code></pre>","urlObject":{"path":["api","trade","updateTrade"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"e6165be4-d927-4da2-be89-e5485aa137c3","name":"removeHistory","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n\t\"id\": \"60598ad12ae2021d7b8f66c3\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/removeHistory"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"3d-sR4qRD4EOIm+Ec9v015P9ogro9o\""},{"key":"Date","value":"Tue, 23 Mar 2021 06:55:53 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"36c3351c-ae91-4164-8454-67cf098cf567"},{"name":"removeTrade","id":"4cd393a9-ce72-44b3-aa53-872549a787b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n\t\"id\": \"605998e4fa88573ca1e7817d\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/deleteTrade","description":"<p>remove a trade completely and revert its changes</p>\n","urlObject":{"path":["api","trade","deleteTrade"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"c05d6e4b-9db0-4859-8d97-2e65cd4c8ccc","name":"removeHistory","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n\t\"id\": \"60598ad12ae2021d7b8f66c3\"\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/api/trade/removeHistory"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"ETag","value":"W/\"3d-sR4qRD4EOIm+Ec9v015P9ogro9o\""},{"key":"Date","value":"Tue, 23 Mar 2021 06:55:53 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4cd393a9-ce72-44b3-aa53-872549a787b8"}]}