portfolio Info Endpoint Method
Parameters
type
string
REQUIRED
Loading...
user
string
REQUIRED
Loading...
Returns
period
string
Loading...
accountValueHistory
array
Loading...
timestamp
integer
Loading...
value
string
Loading...
pnlHistory
array
Loading...
timestamp
integer
Loading...
pnl
string
Loading...
vlm
string
Loading...
Request
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"portfolio","user":"0x31ca8395cf837de08b24da3f660e77761dfb974b"}'5
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"portfolio","user":"0x31ca8395cf837de08b24da3f660e77761dfb974b"}'5
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "portfolio",6"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"7});89var requestOptions = {10method: 'POST',11headers: myHeaders,12body: raw,13redirect: 'follow'14};1516fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)17.then(response => response.text())18.then(result => console.log(result))19.catch(error => console.log('error', error));20
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "portfolio",6"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"7});89var requestOptions = {10method: 'POST',11headers: myHeaders,12body: raw,13redirect: 'follow'14};1516fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)17.then(response => response.text())18.then(result => console.log(result))19.catch(error => console.log('error', error));20
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = json.dumps({7"type": "portfolio",8"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"9})10headers = {11'Content-Type': 'application/json'12}1314response = requests.request("POST", url, headers=headers, data=payload)1516print(response.text)17
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = json.dumps({7"type": "portfolio",8"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"9})10headers = {11'Content-Type': 'application/json'12}1314response = requests.request("POST", url, headers=headers, data=payload)1516print(response.text)17
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"type": "portfolio",14"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"15})1617response = https.request(request)18puts response.read_body19
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"type": "portfolio",14"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"15})1617response = https.request(request)18puts response.read_body19
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free