hl_batchOpenOrders JSON-RPC Method
访问
/hypercore(简体中文(大陆)) JSON-RPC methods requires a Build plan or higher. 查看价格 to upgrade. For complete stream type definitions and filtering options, see the datasets documentation.参数
用户
数组
必填
正在加载...
退货
结果
对象
正在加载...
successful_states
数组
正在加载...
地址
字符串
正在加载...
orders
数组
正在加载...
硬币
字符串
正在加载...
侧面
字符串
正在加载...
limitPx
字符串
正在加载...
sz
字符串
正在加载...
oid
整数
正在加载...
时间戳
整数
正在加载...
origSz
字符串
正在加载...
failed_wallets
数组
正在加载...
请求
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.追加("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};2324fetch(“https://docs-demo.hype-mainnet.quiknode.pro/evm”, requestOptions)25.然后(响应 => 响应.text())26.然后(结果 => 控制台.log(result))27.catch(error => 控制台.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};2324fetch(“https://docs-demo.hype-mainnet.quiknode.pro/evm”, requestOptions)25.然后(响应 => 响应.text())26.然后(结果 => 控制台.log(result))27.catch(error => 控制台.log('error', error));
1导入 请求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"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导入 请求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/evm"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)
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 = true910请求 = Net::HTTP::POST.new(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("https://docs-demo.hype-mainnet.quiknode.pro/evm")67http = Net::HTTP.new(url.host, url.port)8http.use_ssl = true910请求 = Net::HTTP::POST.new(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