fundingHistory Info Endpoint Method
參數
類型
字串
必填
載入中...
硬幣
字串
必填
載入中...
startTime
整數
必填
載入中...
endTime
整數
載入中...
退貨
陣列
陣列
載入中...
時間
整數
載入中...
硬幣
字串
載入中...
資金利率
字串
載入中...
premium
字串
載入中...
請求
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"fundingHistory","coin":"BTC", "startTime": 1681923833000}'5
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{"type":"fundingHistory","coin":"BTC", "startTime": 1681923833000}'5
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"type": "fundingHistory",6"coin": "BTC",7"startTime": 16819238330008});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14重定向: '追蹤'15};1617fetch(「mainnet」, requestOptions)18.接著(回應 => response.text())19.接著(結果 => 控制台.log(結果))20.catchcatch(錯誤 => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"type": "fundingHistory",6"coin": "BTC",7"startTime": 16819238330008});910var requestOptions = {11方法: 'POST',12標題: myHeaders,13正文: 原始,14重定向: '追蹤'15};1617fetch(「mainnet」, requestOptions)18.接著(回應 => response.text())19.接著(結果 => 控制台.log(結果))20.catchcatch(錯誤 => console.log('error', error));21
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"type": "fundingHistory",8"coin": "BTC",9"startTime": 168192383300010})11標題 = {12「Content-Type」: 'application/json'13}1415回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1617列印(回應.text)18
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"type": "fundingHistory",8"coin": "BTC",9"startTime": 168192383300010})11標題 = {12「Content-Type」: 'application/json'13}1415回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1617列印(回應.text)18
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": "fundingHistory",14"coin": "BTC",15"startTime": 168192383300016})1718回應 = https.請求(請求)19puts 回應。read_body20
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": "fundingHistory",14"coin": "BTC",15"startTime": 168192383300016})1718回應 = https.請求(請求)19puts 回應。read_body20