candleSnapshot Info Endpoint Method
參數
類型
字串
必填
載入中...
req
物件
必填
載入中...
硬幣
字串
必填
載入中...
間隔
字串
必填
載入中...
startTime
整數
必填
載入中...
endTime
整數
必填
載入中...
退貨
陣列
陣列
載入中...
t
整數
載入中...
T
整數
載入中...
s
字串
載入中...
i
字串
載入中...
o
字串
載入中...
c
字串
載入中...
h
字串
載入中...
l
字串
載入中...
v
字串
載入中...
n
整數
載入中...
請求
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"candleSnapshot","req":{"coin":"BTC","interval":"1h","startTime":1754300000000,"endTime":1754400000000}}'5
1curlmainnet\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 原始 = 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正文: 原始,18重定向: '追蹤'19};2021fetch(「mainnet」, requestOptions)22.接著(回應 => response.text())23.接著(結果 => 控制台.log(結果))24.catchcatch(錯誤 => console.log('error', error));25
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = 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正文: 原始,18重定向: '追蹤'19};2021fetch(「mainnet」, requestOptions)22.接著(回應 => response.text())23.接著(結果 => 控制台.log(結果))24.catchcatch(錯誤 => console.log('error', error));25
1匯入 請求2匯入 json34網址 = "mainnet"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匯入 請求2匯入 json34網址 = "mainnet"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"45網址 = URI("mainnet")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)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.請求(請求)23puts 回應。read_body24
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)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.請求(請求)23puts 回應。read_body24