candleSnapshot Info Endpoint Method
매개변수
유형
문자열
필수
로딩 중...
req
객체
필수
로딩 중...
동전
문자열
필수
로딩 중...
interval
문자열
필수
로딩 중...
startTime
정수
필수
로딩 중...
endTime
정수
필수
로딩 중...
반품
배열
배열
로딩 중...
t
정수
로딩 중...
T
정수
로딩 중...
s
문자열
로딩 중...
i
문자열
로딩 중...
o
문자열
로딩 중...
c
문자열
로딩 중...
h
문자열
로딩 중...
l
문자열
로딩 중...
v
문자열
로딩 중...
n
정수
로딩 중...
요청
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"candleSnapshot","req":{"coin":"BTC","interval":"1h","startTime":1754300000000,"endTime":1754400000000}}'5
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"candleSnapshot","req":{"coin":"BTC","interval":"1h","startTime":1754300000000,"endTime":1754400000000}}'5
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "candleSnapshot",6"req": {7"coin": "BTC",8"interval": "1h",9"startTime": 1754300000000,10"endTime": 175440000000011}12});1314var requestOptions = {15메서드: 'POST',16헤더: myHeaders,17본문: raw,18리디렉션: 'follow'19};2021fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)22.그런 다음(응답 => response.text())23.그런 다음(결과 => console.log(result))24.catch(오류 => console.log('error', error));25
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"type": "candleSnapshot",6"req": {7"coin": "BTC",8"interval": "1h",9"startTime": 1754300000000,10"endTime": 175440000000011}12});1314var requestOptions = {15메서드: 'POST',16헤더: myHeaders,17본문: raw,18리디렉션: 'follow'19};2021fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)22.그런 다음(응답 => response.text())23.그런 다음(결과 => console.log(result))24.catch(오류 => console.log('error', error));25
1import 요청2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56페이로드 = json.dumps({7"type": "candleSnapshot",8"req": {9"coin": "BTC",10"interval": "1h",11"startTime": 1754300000000,12"endTime": 175440000000013}14})15헤더 = {16'Content-Type': 'application/json'17}1819답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2021인쇄(응답.text)22
1import 요청2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56페이로드 = json.dumps({7"type": "candleSnapshot",8"req": {9"coin": "BTC",10"interval": "1h",11"startTime": 1754300000000,12"endTime": 175440000000013}14})15헤더 = {16'Content-Type': 'application/json'17}1819답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2021인쇄(응답.text)22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"type": "candleSnapshot",14"req": {15"coin": "BTC",16"interval": "1h",17"startTime": 1754300000000,18"endTime": 175440000000019}20})2122답변 = https.요청(요청)23응답을 넣습니다.read_body24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"type": "candleSnapshot",14"req": {15"coin": "BTC",16"interval": "1h",17"startTime": 1754300000000,18"endTime": 175440000000019}20})2122답변 = https.요청(요청)23응답을 넣습니다.read_body24