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 raw = JSON.stringify({5"type": "activeAssetData",6"사용자": "0x31ca8395cf837de08b24da3f660e77761dfb974b",7"동전": "BTC"8});910var requestOptions = {11메서드: 'POST',12헤더: myHeaders,13본문: raw,14리디렉션: 'follow'15};1617가져오기("mainnet", requestOptions)18.그런 다음(응답 => 응답.text())19.그런 다음(결과 => console.log(result))20.catchcatch (오류 => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "activeAssetData",6"사용자": "0x31ca8395cf837de08b24da3f660e77761dfb974b",7"동전": "BTC"8});910var requestOptions = {11메서드: 'POST',12헤더: myHeaders,13본문: raw,14리디렉션: 'follow'15};1617가져오기("mainnet", requestOptions)18.그런 다음(응답 => 응답.text())19.그런 다음(결과 => console.log(result))20.catchcatch (오류 => console.log('error', error));21
1import 요청2import json34url = "mainnet"56페이로드 = json.dumps({7"type": "activeAssetData",8"사용자": "0x31ca8395cf837de08b24da3f660e77761dfb974b",9"동전": "BTC"10})11헤더 = {12'Content-Type': 'application/json'13}1415답변 = 요청.요청("POST", url, 헤더=헤더, 데이터=페이로드)1617인쇄(응답.text)18
1import 요청2import json34url = "mainnet"56페이로드 = json.dumps({7"type": "activeAssetData",8"사용자": "0x31ca8395cf837de08b24da3f660e77761dfb974b",9"동전": "BTC"10})11헤더 = {12'Content-Type': 'application/json'13}1415답변 = 요청.요청("POST", url, 헤더=헤더, 데이터=페이로드)1617인쇄(응답.text)18
1필수 'uri'2require 'net/http'3require 'json'45url = URI("mainnet")67http = Net::HTTP.new(url.호스트, url.포트)8http.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = 'application/json'12요청.본문 = JSON.dump({13"type": "activeAssetData",14"사용자": "0x31ca8395cf837de08b24da3f660e77761dfb974b",15"동전": "BTC"16})1718답변 = http.요청(요청)19응답을 반환합니다.read_body20
1필수 'uri'2require 'net/http'3require 'json'45url = URI("mainnet")67http = Net::HTTP.new(url.호스트, url.포트)8http.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = 'application/json'12요청.본문 = JSON.dump({13"type": "activeAssetData",14"사용자": "0x31ca8395cf837de08b24da3f660e77761dfb974b",15"동전": "BTC"16})1718답변 = http.요청(요청)19응답을 반환합니다.read_body20