activeAssetData Info Endpoint Method
參數
類型
字串
必填
載入中...
使用者
字串
必填
載入中...
硬幣
字串
必填
載入中...
退貨
使用者
字串
載入中...
硬幣
字串
載入中...
槓桿
物件
載入中...
類型
字串
載入中...
值
數字
載入中...
maxTradeSzs
陣列
載入中...
availableToTrade
陣列
載入中...
markPx
字串
載入中...
請求
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"activeAssetData","user":"0x31ca8395cf837de08b24da3f660e77761dfb974b","coin":"BTC"}'5
1curlmainnet\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 原始 = JSON.stringify({5"type": "activeAssetData",6「使用者」: "0x31ca8395cf837de08b24da3f660e77761dfb974b",7"coin": "BTC"8});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14重定向: '追蹤'15};1617fetch(「mainnet」, requestOptions)18.接著(回應 => response.text())19.接著(結果 => 控制台.log(結果))20.catchcatch(錯誤 => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"type": "activeAssetData",6「使用者」: "0x31ca8395cf837de08b24da3f660e77761dfb974b",7"coin": "BTC"8});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14重定向: '追蹤'15};1617fetch(「mainnet」, requestOptions)18.接著(回應 => response.text())19.接著(結果 => 控制台.log(結果))20.catchcatch(錯誤 => console.log('error', error));21
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"type": "activeAssetData",8「使用者」: "0x31ca8395cf837de08b24da3f660e77761dfb974b",9"coin": "BTC"10})11標題 = {12「Content-Type」: 'application/json'13}1415回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1617列印(回應.text)18
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"type": "activeAssetData",8「使用者」: "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'45網址 = URI("mainnet")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11request["Content-Type"] = 'application/json'12請求。主體 = JSON.dump({13"type": "activeAssetData",14「使用者」: "0x31ca8395cf837de08b24da3f660e77761dfb974b",15"coin": "BTC"16})1718回應 = http.請求(請求)19puts 回應。read_body20
1require 'uri'2require 'net/http'3require 'json'45網址 = URI("mainnet")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11request["Content-Type"] = 'application/json'12請求。主體 = JSON.dump({13"type": "activeAssetData",14「使用者」: "0x31ca8395cf837de08b24da3f660e77761dfb974b",15"coin": "BTC"16})1718回應 = http.請求(請求)19puts 回應。read_body20