activeAssetData Info Endpoint Method
參數
類型
字串
必填
載入中...
user
字串
必填
載入中...
硬幣
字串
必填
載入中...
退貨
user
字串
載入中...
硬幣
字串
載入中...
leverage
物件
載入中...
類型
字串
載入中...
值
數字
載入中...
maxTradeSzs
陣列
載入中...
availableToTrade
陣列
載入中...
markPx
字串
載入中...
請求
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"activeAssetData","user":"0x31ca8395cf837de08b24da3f660e77761dfb974b","coin":"BTC"}'5
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"activeAssetData","user":"0x31ca8395cf837de08b24da3f660e77761dfb974b","coin":"BTC"}'5
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "activeAssetData",6"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",7"coin": "BTC"8});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14redirect: 'follow'15};1617fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "activeAssetData",6"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",7"coin": "BTC"8});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14redirect: 'follow'15};1617fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.log('error', error));21
1匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56有效載荷 = json.dumps({7"type": "activeAssetData",8"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",9"coin": "BTC"10})11標題 = {12「Content-Type」: 'application/json'13}1415回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1617列印(回應.text)18
1匯入 請求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56有效載荷 = json.dumps({7"type": "activeAssetData",8"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",9"coin": "BTC"10})11標題 = {12「Content-Type」: 'application/json'13}1415回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1617列印(回應.text)18
1require 'uri'2require 'net/http'3require 'json'45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11request["Content-Type"] = 'application/json'12請求。正文 = JSON.dump({13"type": "activeAssetData",14"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",15"coin": "BTC"16})1718回應 = http.請求(請求)19將回應。read_body20
1require 'uri'2require 'net/http'3require 'json'45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11request["Content-Type"] = 'application/json'12請求。正文 = JSON.dump({13"type": "activeAssetData",14"user": "0x31ca8395cf837de08b24da3f660e77761dfb974b",15"coin": "BTC"16})1718回應 = http.請求(請求)19將回應。read_body20