{"info":{"_postman_id":"32cee71e-491a-42cc-b159-3dc7e5e97ac7","name":"DefiEdge API","description":"<html><head></head><body><h1 id=\"defiedge-api-collection\">DefiEdge API Collection</h1>\n<p>This collection consists of three APIs that allow users to fetch strategy details, liquidity breakdown, and strategy stats of DefiEdge.</p>\n<h3 id=\"strategy-details-api\">Strategy Details API</h3>\n<p>This API returns the strategy details of DefiEdge. The input parameters are the <code>network</code> and <code>address</code> of the strategy.</p>\n<h3 id=\"input-parameters\">Input Parameters</h3>\n<ul>\n<li><code>network</code> (string): Network name.</li>\n<li><code>address</code> (string): Strategy address.</li>\n</ul>\n<h3 id=\"sample-output-response\">Sample Output Response:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"token0Price\": 0.9998,\n    \"token1Price\": 0.752944,\n    \"sharePrice\": 105.49092815,\n    \"aum\": 106919.6748870902,\n    \"totalSupply\": 1013.5437877138239,\n    \"managementFee\": 0,\n    \"performanceFee\": 0,\n    \"fees\": {\n        \"amount0\": 95254.503022,\n        \"amount1\": 15518.050168,\n        \"fee0\": 14.848392,\n        \"fee1\": 19.560206\n    },\n    \"strategyLimit\": 0\n}\n\n</code></pre>\n<h3 id=\"liquidity-breakdown-api\">Liquidity Breakdown API</h3>\n<p>This API returns the liquidity breakdown of DefiEdge. The input parameters are the <code>network</code> and <code>address</code> of the strategy.</p>\n<h3 id=\"input-parameters-1\">Input Parameters</h3>\n<ul>\n<li><code>network</code> (string): Network name.</li>\n<li><code>address</code> (string): Strategy address.</li>\n</ul>\n<p>Sample Output Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"amount0\": 6568.766489,\n    \"amount1\": 14859.771985,\n    \"unusedAmount0\": 88670.888141,\n    \"unusedAmount1\": 638.717977,\n    \"amount0Total\": 95239.65463,\n    \"amount1Total\": 15498.489962,\n    \"unusedAmount0BigNumber\": {\n        \"type\": \"BigNumber\",\n        \"hex\": \"0x14a53260cd\"\n    },\n    \"unusedAmount1BigNumber\": {\n        \"type\": \"BigNumber\",\n        \"hex\": \"0x26121019\"\n    }\n}\n\n</code></pre>\n<h3 id=\"graphql-strategy-api\">GraphQL Strategy API</h3>\n<p>This API returns the strategy stats of DefiEdge. The input parameters are the <code>network</code> and <code>address</code> of the strategy.</p>\n<h3 id=\"graphql-variable-parameters\">GraphQL Variable Parameters</h3>\n<ul>\n<li><code>network</code> (string): Network name.</li>\n<li><code>address</code> (string): Strategy address.</li>\n</ul>\n<p>Sample Output Response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"data\": {\n        \"strategy\": {\n            \"id\": \"c5322655-3e9a-4a0c-a928-9cb4b45a20ca\",\n            \"title\": \"USDC-XSGD#23\",\n            \"subTitle\": \"xSGD/USDC\",\n            \"description\": \"Simple mid-range deployment, rebalanced weekly\",\n            \"updatedAt\": \"2023-04-12T19:39:00.073Z\",\n            \"network\": \"polygon\",\n            \"sharePrice\": 105.49248809,\n            \"address\": \"0x93ecae66ae196ccfe80ca828d096798259feb098\",\n            \"aum\": 106921.2559517953,\n            \"createdAt\": \"2022-11-11T13:18:04.000Z\",\n            \"fees_apr\": {\n                \"USD\": 7.997390275969207,\n                \"BTC\": 4.285279173591594,\n                \"MATIC\": 6.069229273945989,\n                \"ETH\": 4.832672782107276\n            },\n            \"seven_day_apy\": {\n                \"USD\": 0.004587968426347243,\n                \"BTC\": -6.707507896346752,\n                \"MATIC\": 2.432879947139782,\n                \"ETH\": 1.07538279179763\n            },\n            \"since_inception\": {\n                \"USD\": 5.492488089999995,\n                \"BTC\": -39.24631779217966,\n                \"MATIC\": 2.271256526613058,\n                \"ETH\": -27.97296666962799\n            },\n            \"one_day_apy\": {\n                \"USD\": 0.03317019412475554,\n                \"BTC\": 0.03317019412475554,\n                \"MATIC\": 0.03317019412475554,\n                \"ETH\": 0.03317019412475554\n            }\n        }\n    }\n}\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"DefiEdge API Collection","slug":"defiedge-api-collection"}],"owner":"16281910","collectionId":"32cee71e-491a-42cc-b159-3dc7e5e97ac7","publishedId":"2s93XvWk5h","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-12T20:09:57.000Z"},"item":[{"name":"Strategy details","id":"27e88a6f-8a6b-4a6e-a116-7c0ee3fef5bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://api.defiedge.io/:network/:address/details","description":"<p>This API returns the strategy details of DefiEdge. The input parameters are the <code>network</code> and <code>address</code> of the strategy.</p>\n","urlObject":{"protocol":"https","path":[":network",":address","details"],"host":["api","defiedge","io"],"query":[],"variable":[{"description":{"content":"<p>polygon / arbitrum / optimism</p>\n","type":"text/plain"},"type":"any","value":"polygon","key":"network"},{"description":{"content":"<p>Starategy Address</p>\n","type":"text/plain"},"type":"any","value":"0x93ecae66ae196ccfe80ca828d096798259feb098","key":"address"}]}},"response":[{"id":"1feb22f3-21e1-4ec5-bb17-fcaa6c4be8d9","name":"Strategy details","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://api.defiedge.io/:network/:address/details","protocol":"https","host":["api","defiedge","io"],"path":[":network",":address","details"],"variable":[{"key":"network","value":"polygon","description":"polygon / arbitrum / optimism"},{"key":"address","value":"0x93ecae66ae196ccfe80ca828d096798259feb098","description":"Starategy Address"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Ratelimit-Limit","value":"30"},{"key":"X-Ratelimit-Remaining","value":"29"},{"key":"Date","value":"Wed, 12 Apr 2023 19:36:13 GMT"},{"key":"X-Ratelimit-Reset","value":"1681328179"},{"key":"Ratelimit-Limit","value":"30"},{"key":"Ratelimit-Remaining","value":"29"},{"key":"Ratelimit-Reset","value":"6"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"272"},{"key":"Etag","value":"W/\"110-wgnv8OB6rBaR4UuCU5Etx0UKuto\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token0Price\": 0.9998,\n    \"token1Price\": 0.752944,\n    \"sharePrice\": 105.49092815,\n    \"aum\": 106919.6748870902,\n    \"totalSupply\": 1013.5437877138239,\n    \"managementFee\": 0,\n    \"performanceFee\": 0,\n    \"fees\": {\n        \"amount0\": 95254.503022,\n        \"amount1\": 15518.050168,\n        \"fee0\": 14.848392,\n        \"fee1\": 19.560206\n    },\n    \"strategyLimit\": 0\n}"}],"_postman_id":"27e88a6f-8a6b-4a6e-a116-7c0ee3fef5bd"},{"name":"Liquidity breakdown","id":"53d0ae40-5ae7-4628-93e8-d914d59d9541","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.defiedge.io/:network/:address/liquidity","description":"<p>This API returns the liquidity breakdown of DefiEdge. The input parameters are the <code>network</code> and <code>address</code> of the strategy.</p>\n","urlObject":{"protocol":"https","path":[":network",":address","liquidity"],"host":["api","defiedge","io"],"query":[],"variable":[{"description":{"content":"<p>polygon / arbitrum / optimism</p>\n","type":"text/plain"},"type":"any","value":"polygon","key":"network"},{"description":{"content":"<p>Starategy Address</p>\n","type":"text/plain"},"type":"any","value":"0x93ecae66ae196ccfe80ca828d096798259feb098","key":"address"}]}},"response":[{"id":"8e05487b-5f00-4f0f-8441-e2e37b339e71","name":"Liquidity breakdown","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.defiedge.io/:network/:address/liquidity","protocol":"https","host":["api","defiedge","io"],"path":[":network",":address","liquidity"],"variable":[{"key":"network","value":"polygon","description":"polygon / arbitrum / optimism"},{"key":"address","value":"0x93ecae66ae196ccfe80ca828d096798259feb098","description":"Starategy Address"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Ratelimit-Limit","value":"30"},{"key":"X-Ratelimit-Remaining","value":"29"},{"key":"Date","value":"Wed, 12 Apr 2023 19:38:50 GMT"},{"key":"X-Ratelimit-Reset","value":"1681328359"},{"key":"Ratelimit-Limit","value":"30"},{"key":"Ratelimit-Remaining","value":"29"},{"key":"Ratelimit-Reset","value":"29"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"289"},{"key":"Etag","value":"W/\"121-fv8W0B5prVy9MmgF3lIl1QNukEc\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"amount0\": 6568.766489,\n    \"amount1\": 14859.771985,\n    \"unusedAmount0\": 88670.888141,\n    \"unusedAmount1\": 638.717977,\n    \"amount0Total\": 95239.65463,\n    \"amount1Total\": 15498.489962,\n    \"unusedAmount0BigNumber\": {\n        \"type\": \"BigNumber\",\n        \"hex\": \"0x14a53260cd\"\n    },\n    \"unusedAmount1BigNumber\": {\n        \"type\": \"BigNumber\",\n        \"hex\": \"0x26121019\"\n    }\n}"}],"_postman_id":"53d0ae40-5ae7-4628-93e8-d914d59d9541"},{"name":"[GraphQL] Strategy","id":"f8207bbf-4fd2-44a6-b47a-928e273bf59b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"# network: 'mainnet' / 'kovan' / 'rinkeby' / 'matic' / 'arbitrum' / 'optimism'\r\n# address: strategy address\r\nquery strategyMetadata($address: String!, $network: Network!) {\r\n  strategy(where: {network_address: {address: $address, network: $network}}) {\r\n    id\r\n    title\r\n    subTitle\r\n    description\r\n    updatedAt\r\n    network\r\n    sharePrice\r\n    address\r\n    aum\r\n    createdAt\r\n    fees_apr {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n    seven_day_apy {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n    since_inception {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n    one_day_apy {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n  }\r\n}\r\n","variables":"{\r\n  \"network\": \"polygon\",\r\n  \"address\": \"0x93ecae66ae196ccfe80ca828d096798259feb098\"\r\n}"}},"url":"https://api.defiedge.io/graphql","description":"<p>This API returns the strategy stats of DefiEdge. The input parameters are the <code>network</code> and <code>address</code> of the strategy.</p>\n","urlObject":{"protocol":"https","path":["graphql"],"host":["api","defiedge","io"],"query":[],"variable":[]}},"response":[{"id":"1d72b4e2-33aa-4c57-b1b2-cd1a83f69f0f","name":"[GraphQL] Strategy","originalRequest":{"method":"POST","header":[],"body":{"mode":"graphql","graphql":{"query":"# network: 'mainnet' / 'kovan' / 'rinkeby' / 'matic' / 'arbitrum' / 'optimism'\r\n# address: strategy address\r\nquery strategyMetadata($address: String!, $network: Network!) {\r\n  strategy(where: {network_address: {address: $address, network: $network}}) {\r\n    id\r\n    title\r\n    subTitle\r\n    description\r\n    updatedAt\r\n    network\r\n    sharePrice\r\n    address\r\n    aum\r\n    createdAt\r\n    fees_apr {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n    seven_day_apy {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n    since_inception {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n    one_day_apy {\r\n      USD\r\n      BTC\r\n      MATIC\r\n      ETH\r\n    }\r\n  }\r\n}\r\n","variables":"{\r\n  \"network\": \"polygon\",\r\n  \"address\": \"0x93ecae66ae196ccfe80ca828d096798259feb098\"\r\n}"}},"url":"https://api.defiedge.io/graphql"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Ratelimit-Limit","value":"30"},{"key":"X-Ratelimit-Remaining","value":"29"},{"key":"Date","value":"Wed, 12 Apr 2023 19:39:20 GMT"},{"key":"X-Ratelimit-Reset","value":"1681328389"},{"key":"Ratelimit-Limit","value":"30"},{"key":"Ratelimit-Remaining","value":"29"},{"key":"Ratelimit-Reset","value":"29"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"852"},{"key":"Etag","value":"W/\"354-M7EPmNvL4xL7N35y94+b7sj+rQc\""},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"strategy\": {\n            \"id\": \"c5322655-3e9a-4a0c-a928-9cb4b45a20ca\",\n            \"title\": \"USDC-XSGD#23\",\n            \"subTitle\": \"xSGD/USDC\",\n            \"description\": \"Simple mid-range deployment, rebalanced weekly\",\n            \"updatedAt\": \"2023-04-12T19:39:00.073Z\",\n            \"network\": \"polygon\",\n            \"sharePrice\": 105.49248809,\n            \"address\": \"0x93ecae66ae196ccfe80ca828d096798259feb098\",\n            \"aum\": 106921.2559517953,\n            \"createdAt\": \"2022-11-11T13:18:04.000Z\",\n            \"fees_apr\": {\n                \"USD\": 7.997390275969207,\n                \"BTC\": 4.285279173591594,\n                \"MATIC\": 6.069229273945989,\n                \"ETH\": 4.832672782107276\n            },\n            \"seven_day_apy\": {\n                \"USD\": 0.004587968426347243,\n                \"BTC\": -6.707507896346752,\n                \"MATIC\": 2.432879947139782,\n                \"ETH\": 1.07538279179763\n            },\n            \"since_inception\": {\n                \"USD\": 5.492488089999995,\n                \"BTC\": -39.24631779217966,\n                \"MATIC\": 2.271256526613058,\n                \"ETH\": -27.97296666962799\n            },\n            \"one_day_apy\": {\n                \"USD\": 0.03317019412475554,\n                \"BTC\": 0.03317019412475554,\n                \"MATIC\": 0.03317019412475554,\n                \"ETH\": 0.03317019412475554\n            }\n        }\n    }\n}"}],"_postman_id":"f8207bbf-4fd2-44a6-b47a-928e273bf59b"}]}