Preflight REST API Endpoint
信息
Exchange API calls do not consume Quicknode API credits. If you are on a free trial plan, see hyperliquidapi.com for your URL and fee schedule. To white-label with your own builder code, contact us.
身体参数
动作
对象
必填
正在加载...
类型
字符串
正在加载...
orders
数组
正在加载...
资产
字符串
正在加载...
侧面
字符串
正在加载...
价格
字符串
正在加载...
大小
字符串
正在加载...
tif
字符串
正在加载...
退货
valid
布尔型
正在加载...
errors
数组
正在加载...
assetInfo
数组
正在加载...
order
整数
正在加载...
资产
整数
正在加载...
名称
字符串
正在加载...
szDecimals
整数
正在加载...
isSpot
布尔型
正在加载...
estimatedFee
字符串
正在加载...
priorityFee
string or null
正在加载...
isSpot
布尔型
正在加载...
请求
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "order",6"orders": [7{8"asset": "BTC",9"side": "buy",10"price": "100000",11"size": "0.001",12"tif": "ioc"13}14]15}16}'17
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "order",6"orders": [7{8"asset": "BTC",9"side": "buy",10"price": "100000",11"size": "0.001",12"tif": "ioc"13}14]15}16}'17
1const axios = require('axios');23const data = {4action: {5type: "order",6orders: [7{8asset: "BTC",9side: "buy",10price: "100000",11size: "0.001",12tif: "ioc"13}14]15}16};1718axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight', data, {19headers: { 'Content-Type': 'application/json' }20})21.then(response => console.log(response.data))22.catch(error => console.error(error));23
1const axios = require('axios');23const data = {4action: {5type: "order",6orders: [7{8asset: "BTC",9side: "buy",10price: "100000",11size: "0.001",12tif: "ioc"13}14]15}16};1718axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight', data, {19headers: { 'Content-Type': 'application/json' }20})21.then(response => console.log(response.data))22.catch(error => console.error(error));23
1导入 请求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight"56有效载荷 = json.dumps({7"action": {8"type": "order",9"orders": [10{11"asset": "BTC",12"side": "buy",13"price": "100000",14"size": "0.001",15"tif": "ioc"16}17]18}19})2021标题 = {22“Content-Type”: 'application/json'23}2425回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2627打印(响应.text)28
1导入 请求2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight"56有效载荷 = json.dumps({7"action": {8"type": "order",9"orders": [10{11"asset": "BTC",12"side": "buy",13"price": "100000",14"size": "0.001",15"tif": "ioc"16}17]18}19})2021标题 = {22“Content-Type”: 'application/json'23}2425回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2627打印(响应.text)28
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13"action": {14"type": "order",15"orders": [16{17"asset": "BTC",18"side": "buy",19"price": "100000",20"size": "0.001",21"tif": "ioc"22}23]24}25})2627回复 = https.请求(请求)28返回响应.read_body29
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/preflight")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13"action": {14"type": "order",15"orders": [16{17"asset": "BTC",18"side": "buy",19"price": "100000",20"size": "0.001",21"tif": "ioc"22}23]24}25})2627回复 = https.请求(请求)28返回响应.read_body29