hl_batchOpenOrders JSON-RPC Method
Access to
/hypercore JSON-RPC methods requires a Build plan or higher. View pricing to upgrade. For complete stream type definitions and filtering options, see the datasets documentation.參數
users
陣列
必填
載入中...
退貨
結果
物件
載入中...
successful_states
陣列
載入中...
地址
字串
載入中...
orders
陣列
載入中...
硬幣
字串
載入中...
side
字串
載入中...
limitPx
字串
載入中...
sz
字串
載入中...
oid
整數
載入中...
時間戳記
整數
載入中...
origSz
字串
載入中...
failed_wallets
陣列
載入中...
請求
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"method": "hl_batchOpenOrders",7"params": {8"users": [9"0xf9a9a403b039996082049394935f815523157330",10"0xf882efb8687354909fc1931923f3b46cf7e24adc",11"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"12]13},14"id": 115}'
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--data '{5"jsonrpc": "2.0",6"method": "hl_batchOpenOrders",7"params": {8"users": [9"0xf9a9a403b039996082049394935f815523157330",10"0xf882efb8687354909fc1931923f3b46cf7e24adc",11"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"12]13},14"id": 115}'
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"jsonrpc": "2.0",6"method": "hl_batchOpenOrders",7"params": {8"users": [9"0xf9a9a403b039996082049394935f815523157330",10"0xf882efb8687354909fc1931923f3b46cf7e24adc",11"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"12]13},14"id": 115});1617var requestOptions = {18方法: 'POST',19標題: myHeaders,20正文: 原始,21重定向: '追蹤'22};2324fetch(「mainnet」, requestOptions)25.接著(回應 => response.text())26.接著(結果 => 控制台.log(結果))27.catchcatch(錯誤 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var 原始 = JSON.stringify({5"jsonrpc": "2.0",6"method": "hl_batchOpenOrders",7"params": {8"users": [9"0xf9a9a403b039996082049394935f815523157330",10"0xf882efb8687354909fc1931923f3b46cf7e24adc",11"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"12]13},14"id": 115});1617var requestOptions = {18方法: 'POST',19標題: myHeaders,20正文: 原始,21重定向: '追蹤'22};2324fetch(「mainnet」, requestOptions)25.接著(回應 => response.text())26.接著(結果 => 控制台.log(結果))27.catchcatch(錯誤 => console.log('error', error));
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "hl_batchOpenOrders",9"params": {10"users": [11"0xf9a9a403b039996082049394935f815523157330",12"0xf882efb8687354909fc1931923f3b46cf7e24adc",13"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"14]15},16"id": 117})1819標題 = {20「Content-Type」: 'application/json'21}2223回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2425列印(回應.text)
1匯入 請求2匯入 json34網址 = "mainnet"56有效載荷 = json.dumps({7"jsonrpc": "2.0",8"method": "hl_batchOpenOrders",9"params": {10"users": [11"0xf9a9a403b039996082049394935f815523157330",12"0xf882efb8687354909fc1931923f3b46cf7e24adc",13"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"14]15},16"id": 117})1819標題 = {20「Content-Type」: 'application/json'21}2223回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)2425列印(回應.text)
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"jsonrpc": "2.0",14"method": "hl_batchOpenOrders",15"params": {16"users": [17"0xf9a9a403b039996082049394935f815523157330",18"0xf882efb8687354909fc1931923f3b46cf7e24adc",19"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"20]21},22"id": 123})2425回應 = http.請求(請求)26puts 回應。read_body
1需要 "uri"2require "json"3需要 "net/http"45網址 = URI("mainnet")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11請求["Content-Type"] = "application/json"12請求。主體 = JSON.dump({13"jsonrpc": "2.0",14"method": "hl_batchOpenOrders",15"params": {16"users": [17"0xf9a9a403b039996082049394935f815523157330",18"0xf882efb8687354909fc1931923f3b46cf7e24adc",19"0xeb7154a073efae0adbe8c9472366c70dd8a5fba7"20]21},22"id": 123})2425回應 = http.請求(請求)26puts 回應。read_body