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.Parameters
users
array
REQUIRED
Loading...
Returns
result
object
Loading...
successful_states
array
Loading...
address
string
Loading...
orders
array
Loading...
coin
string
Loading...
side
string
Loading...
limitPx
string
Loading...
sz
string
Loading...
oid
integer
Loading...
timestamp
integer
Loading...
origSz
string
Loading...
failed_wallets
array
Loading...
Request
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \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}'
1curl https://docs-demo.hype-mainnet.quiknode.pro/evm \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.append("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 = {18method: 'POST',19headers: myHeaders,20body: raw,21redirect: 'follow'22};2324fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)25.then(response => response.text())26.then(result => console.log(result))27.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("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 = {18method: 'POST',19headers: myHeaders,20body: raw,21redirect: 'follow'22};2324fetch("https://docs-demo.hype-mainnet.quiknode.pro/evm", requestOptions)25.then(response => response.text())26.then(result => console.log(result))27.catch(error => console.log('error', error));
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = 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})1819headers = {20'Content-Type': 'application/json'21}2223response = requests.request("POST", url, headers=headers, data=payload)2425print(response.text)
1import requests2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"56payload = 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})1819headers = {20'Content-Type': 'application/json'21}2223response = requests.request("POST", url, headers=headers, data=payload)2425print(response.text)
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = 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})2425response = http.request(request)26puts response.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/evm")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = 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})2425response = http.request(request)26puts response.read_body
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free