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.매개변수
사용자
배열
필수
로딩 중...
반품
결과
객체
로딩 중...
successful_states
배열
로딩 중...
주소
문자열
로딩 중...
orders
배열
로딩 중...
동전
문자열
로딩 중...
측면
문자열
로딩 중...
limitPx
문자열
로딩 중...
sz
문자열
로딩 중...
oid
정수
로딩 중...
타임스탬프
정수
로딩 중...
origSz
문자열
로딩 중...
failed_wallets
배열
로딩 중...
요청
1curlmainnet\2-X POST \3-H "Content-Type: application/json" \4--데이터 '{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--데이터 '{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 raw = 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본문: raw,21리디렉션: 'follow'22};2324가져오기("mainnet", requestOptions)25.그런 다음(응답 => 응답.text())26.그런 다음(결과 => console.log(result))27.catchcatch (오류 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = 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본문: raw,21리디렉션: 'follow'22};2324가져오기("mainnet", requestOptions)25.그런 다음(응답 => 응답.text())26.그런 다음(결과 => console.log(result))27.catchcatch (오류 => console.log('error', error));
1import 요청2import json34url = "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, 헤더=헤더, 데이터=페이로드)2425인쇄(응답.text)
1import 요청2import json34url = "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, 헤더=헤더, 데이터=페이로드)2425인쇄(응답.text)
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67http = Net::HTTP.new(url.호스트, url.포트)8http.use_ssl = true910요청 = 순::HTTP::POST.새(URL)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.요청(요청)26응답을 반환합니다.read_body
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")67http = Net::HTTP.new(url.호스트, url.포트)8http.use_ssl = true910요청 = 순::HTTP::POST.새(URL)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.요청(요청)26응답을 반환합니다.read_body