Send Modify 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.
身体パラメータ
アクション
オブジェクト
必須
読み込み中...
タイプ
文字列
読み込み中...
modifies
配列
読み込み中...
oid
整数
読み込み中...
order
オブジェクト
読み込み中...
a
整数
読み込み中...
b
ブール値
読み込み中...
p
文字列
読み込み中...
s
文字列
読み込み中...
r
ブール値
読み込み中...
t
オブジェクト
読み込み中...
上限
オブジェクト
読み込み中...
tif
文字列
読み込み中...
ノンス
整数
必須
読み込み中...
署名
オブジェクト
必須
読み込み中...
r
文字列
読み込み中...
s
文字列
読み込み中...
v
整数
読み込み中...
vaultAddress
文字列
読み込み中...
expiresAfter
整数
読み込み中...
返品
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": "batchModify",6"modifies": [7{8"oid": 123456789,9"order": {10"a": 0,11"b": true,12"p": "101000",13"s": "0.002",14"r": false,15"t": {"limit": {"tif": "Gtc"}}16}17}18]19},20"nonce": 1234567890,21"signature": {22"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",23"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",24"v": 2825}26}'27
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": "batchModify",6"modifies": [7{8"oid": 123456789,9"order": {10"a": 0,11"b": true,12"p": "101000",13"s": "0.002",14"r": false,15"t": {"limit": {"tif": "Gtc"}}16}17}18]19},20"nonce": 1234567890,21"signature": {22"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",23"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",24"v": 2825}26}'27
1const axios = require('axios');23const data = {4action: {5type: "batchModify",6modifies: [7{8oid: 123456789,9order: {10a: 0,11b: true,12p: "101000",13s: "0.002",14r: false,15t: { limit: { tif: "Gtc" } }16}17}18]19},20nonce: 1234567890,21signature: {22r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",23s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",24v: 2825}26};2728axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {29headers: { 'Content-Type': 'application/json' }30})31.then(response => console.log(response.data))32.catch(error => console.error(error));33
1const axios = require('axios');23const data = {4action: {5type: "batchModify",6modifies: [7{8oid: 123456789,9order: {10a: 0,11b: true,12p: "101000",13s: "0.002",14r: false,15t: { limit: { tif: "Gtc" } }16}17}18]19},20nonce: 1234567890,21signature: {22r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",23s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",24v: 2825}26};2728axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {29headers: { 'Content-Type': 'application/json' }30})31.then(response => console.log(response.data))32.catch(error => console.error(error));33
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56ペイロード = json.dumps({7"action": {8"type": "batchModify",9"modifies": [10{11"oid": 123456789,12"order": {13"a": 0,14"b": True,15"p": "101000",16"s": "0.002",17"r": False,18"t": {"limit": {"tif": "Gtc"}}19}20}21]22},23"nonce": 1234567890,24"signature": {25"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",26"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",27"v": 2828}29})3031ヘッダー = {32「Content-Type」: 'application/json'33}3435回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)3637印刷(レスポンス.text)38
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56ペイロード = json.dumps({7"action": {8"type": "batchModify",9"modifies": [10{11"oid": 123456789,12"order": {13"a": 0,14"b": True,15"p": "101000",16"s": "0.002",17"r": False,18"t": {"limit": {"tif": "Gtc"}}19}20}21]22},23"nonce": 1234567890,24"signature": {25"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",26"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",27"v": 2828}29})3031ヘッダー = {32「Content-Type」: 'application/json'33}3435回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)3637印刷(レスポンス.text)38
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": "batchModify",15"modifies": [16{17"oid": 123456789,18"order": {19"a": 0,20"b": true,21"p": "101000",22"s": "0.002",23"r": false,24"t": {"limit": {"tif": "Gtc"}}25}26}27]28},29"nonce": 1234567890,30"signature": {31"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",32"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",33"v": 2834}35})3637回答 = https.リクエスト(リクエスト)38レスポンスを格納する.read_body39
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": "batchModify",15"modifies": [16{17"oid": 123456789,18"order": {19"a": 0,20"b": true,21"p": "101000",22"s": "0.002",23"r": false,24"t": {"limit": {"tif": "Gtc"}}25}26}27]28},29"nonce": 1234567890,30"signature": {31"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",32"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",33"v": 2834}35})3637回答 = https.リクエスト(リクエスト)38レスポンスを格納する.read_body39