{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"32cee71e-491a-42cc-b159-3dc7e5e97ac7","name":"DefiEdge API","description":"# DefiEdge API Collection\n\nThis collection consists of three APIs that allow users to fetch strategy details, liquidity breakdown, and strategy stats of DefiEdge.\n\n### Strategy Details API\n\nThis API returns the strategy details of DefiEdge. The input parameters are the `network` and `address` of the strategy.\n\n### Input Parameters\n\n- `network` (string): Network name.\n- `address` (string): Strategy address.\n    \n\n### Sample Output Response:\n\n``` json\n{\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```\n\n### Liquidity Breakdown API\n\nThis API returns the liquidity breakdown of DefiEdge. The input parameters are the `network` and `address` of the strategy.\n\n### Input Parameters\n\n- `network` (string): Network name.\n- `address` (string): Strategy address.\n    \n\nSample Output Response:\n\n``` json\n{\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```\n\n### GraphQL Strategy API\n\nThis API returns the strategy stats of DefiEdge. The input parameters are the `network` and `address` of the strategy.\n\n### GraphQL Variable Parameters\n\n- `network` (string): Network name.\n- `address` (string): Strategy address.\n    \n\nSample Output Response:\n\n``` json\n{\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```","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"16281910","team":2070596,"collectionId":"32cee71e-491a-42cc-b159-3dc7e5e97ac7","publishedId":"2s93XvWk5h","public":true,"publicUrl":"https://documenter-api.postman.tech/view/16281910/2s93XvWk5h","privateUrl":"https://go.postman.co/documentation/16281910-32cee71e-491a-42cc-b159-3dc7e5e97ac7","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","customisation":null,"version":"8.11.6","publishDate":"2023-04-12T20:09:57.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/720318d947f8be623468d4f5afbe2f58888002df158c826fdc137b0cf46fe554","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2s93XvWk5h"}