Send Order REST API Endpoint
情報
Exchange API calls do not consume Quicknode API credits. Transactions through this endpoint are appended with a builder fee. See hyperliquidapi.com for a full breakdown. To white-label with your own builder code, contact us.
This endpoint is not a drop-in replacement for Hyperliquid's native /exchange endpoint. See the Exchange API Overview for key differences.
身体パラメータ
アクション
オブジェクト
必須
読み込み中...
タイプ
文字列
読み込み中...
注文
配列
読み込み中...
a
整数
読み込み中...
b
ブール値
読み込み中...
p
文字列
読み込み中...
s
文字列
読み込み中...
r
ブール値
読み込み中...
t
オブジェクト
読み込み中...
上限
オブジェクト
読み込み中...
tif
文字列
読み込み中...
グループ分け
string or object
読み込み中...
ノンス
整数
必須
読み込み中...
署名
オブジェクト
必須
読み込み中...
r
文字列
読み込み中...
s
文字列
読み込み中...
v
整数
読み込み中...
vaultAddress
文字列
読み込み中...
expiresAfter
整数
読み込み中...
slippage
数
読み込み中...
優先手数料
integer or string
読み込み中...
返品
success
ブール値
読み込み中...
ユーザー
文字列
読み込み中...
exchangeResponse
オブジェクト
読み込み中...
注文
配列
読み込み中...
リクエスト
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "order",6"orders": [{7"a": 0,8"b": true,9"p": "100000",10"s": "0.001",11"r": false,12"t": {"limit": {"tif": "Ioc"}}13}],14"grouping": "na"15},16"nonce": 1234567890,17"signature": {18"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",19"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",20"v": 2821}22}'23
1curl -s -X POST https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange \2-H "Content-Type: application/json" \3-d '{4"action": {5"type": "order",6"orders": [{7"a": 0,8"b": true,9"p": "100000",10"s": "0.001",11"r": false,12"t": {"limit": {"tif": "Ioc"}}13}],14"grouping": "na"15},16"nonce": 1234567890,17"signature": {18"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",19"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",20"v": 2821}22}'23
1const axios = require('axios');23const data = {4action: {5type: "order",6orders: [{7a: 0,8b: true,9p: "100000",10s: "0.001",11r: false,12t: { limit: { tif: "Ioc" } }13}],14grouping: "na"15},16nonce: 1234567890,17signature: {18r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",19s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",20v: 2821}22};2324axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {25headers: { 'Content-Type': 'application/json' }26})27.then(response => console.log(response.data))28.catch(error => console.error(error));29
1const axios = require('axios');23const data = {4action: {5type: "order",6orders: [{7a: 0,8b: true,9p: "100000",10s: "0.001",11r: false,12t: { limit: { tif: "Ioc" } }13}],14grouping: "na"15},16nonce: 1234567890,17signature: {18r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",19s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",20v: 2821}22};2324axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {25headers: { 'Content-Type': 'application/json' }26})27.then(response => console.log(response.data))28.catch(error => console.error(error));29
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56ペイロード = json.dumps({7"action": {8"type": "order",9"orders": [{10"a": 0,11"b": True,12"p": "100000",13"s": "0.001",14"r": False,15"t": {"limit": {"tif": "Ioc"}}16}],17"grouping": "na"18},19"nonce": 1234567890,20"signature": {21"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",22"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",23"v": 2824}25})2627ヘッダー = {28「Content-Type」: 'application/json'29}3031回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)3233印刷(レスポンス.text)34
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56ペイロード = json.dumps({7"action": {8"type": "order",9"orders": [{10"a": 0,11"b": True,12"p": "100000",13"s": "0.001",14"r": False,15"t": {"limit": {"tif": "Ioc"}}16}],17"grouping": "na"18},19"nonce": 1234567890,20"signature": {21"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",22"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",23"v": 2824}25})2627ヘッダー = {28「Content-Type」: 'application/json'29}3031回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)3233印刷(レスポンス.text)34
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"action": {14"type": "order",15"orders": [{16"a": 0,17"b": true,18"p": "100000",19"s": "0.001",20"r": false,21"t": {"limit": {"tif": "Ioc"}}22}],23"grouping": "na"24},25"nonce": 1234567890,26"signature": {27"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",28"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",29"v": 2830}31})3233回答 = https.リクエスト(リクエスト)34レスポンスを格納する.read_body35
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange")67https = ネット::HTTP.new(url.ホスト, url.ポート)8https.use_ssl = true910リクエスト = ネット::HTTP::POST.new(URL)11リクエスト["Content-Type"] = "application/json"12リクエスト.本文 = JSON.dump({13"action": {14"type": "order",15"orders": [{16"a": 0,17"b": true,18"p": "100000",19"s": "0.001",20"r": false,21"t": {"limit": {"tif": "Ioc"}}22}],23"grouping": "na"24},25"nonce": 1234567890,26"signature": {27"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",28"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",29"v": 2830}31})3233回答 = https.リクエスト(リクエスト)34レスポンスを格納する.read_body35