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正文: 原始,18redirect: 'follow'19};2021fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)22.then(response => response.text())23.then(result => console.log(result))24.catch(error => 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正文: 原始,18redirect: 'follow'19};2021fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)22.then(response => response.text())23.then(result => console.log(result))24.catch(error => console.log('error', error));25
1匯入 請求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, headers=headers, data=有效載荷)2021列印(回應.text)22
1匯入 請求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, headers=headers, data=有效載荷)2021列印(回應.text)22
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)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
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)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