Parameters
type
string
REQUIRED
Loading...
req
object
REQUIRED
Loading...
coin
string
REQUIRED
Loading...
interval
string
REQUIRED
Loading...
startTime
integer
REQUIRED
Loading...
endTime
integer
REQUIRED
Loading...
Returns
array
array
Loading...
t
integer
Loading...
T
integer
Loading...
s
string
Loading...
i
string
Loading...
o
string
Loading...
c
string
Loading...
h
string
Loading...
l
string
Loading...
v
string
Loading...
n
integer
Loading...
Request
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.append("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 = {15method: 'POST',16headers: myHeaders,17body: raw,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.append("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 = {15method: 'POST',16headers: myHeaders,17body: raw,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
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = json.dumps({7"type": "candleSnapshot",8"req": {9"coin": "BTC",10"interval": "1h",11"startTime": 1754300000000,12"endTime": 175440000000013}14})15headers = {16'Content-Type': 'application/json'17}1819response = requests.request("POST", url, headers=headers, data=payload)2021print(response.text)22
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = json.dumps({7"type": "candleSnapshot",8"req": {9"coin": "BTC",10"interval": "1h",11"startTime": 1754300000000,12"endTime": 175440000000013}14})15headers = {16'Content-Type': 'application/json'17}1819response = requests.request("POST", url, headers=headers, data=payload)2021print(response.text)22
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"type": "candleSnapshot",14"req": {15"coin": "BTC",16"interval": "1h",17"startTime": 1754300000000,18"endTime": 175440000000019}20})2122response = https.request(request)23puts response.read_body24
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"type": "candleSnapshot",14"req": {15"coin": "BTC",16"interval": "1h",17"startTime": 1754300000000,18"endTime": 175440000000019}20})2122response = https.request(request)23puts response.read_body24
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free