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
1import 요청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, 헤더=헤더, data=페이로드)2627인쇄(응답.text)28
1import 요청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, 헤더=헤더, 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요청 = 순::HTTP::POST.새(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요청 = 순::HTTP::POST.새(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