Send Cancel 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.
身体パラメータ
アクション
オブジェクト
必須
読み込み中...
タイプ
文字列
読み込み中...
cancels
配列
読み込み中...
a
整数
読み込み中...
o
整数
読み込み中...
f
ブール値
読み込み中...
ノンス
整数
必須
読み込み中...
署名
オブジェクト
必須
読み込み中...
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": "cancel",6"cancels": [7{8"a": 0,9"o": 12345678910}11]12},13"nonce": 1234567890,14"signature": {15"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",16"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",17"v": 2818}19}'20
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": "cancel",6"cancels": [7{8"a": 0,9"o": 12345678910}11]12},13"nonce": 1234567890,14"signature": {15"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",16"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",17"v": 2818}19}'20
1const axios = require('axios');23const data = {4action: {5type: "cancel",6cancels: [7{8a: 0,9o: 12345678910}11]12},13nonce: 1234567890,14signature: {15r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",16s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",17v: 2818}19};2021axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {22headers: { 'Content-Type': 'application/json' }23})24.then(response => console.log(response.data))25.catch(error => console.error(error));26
1const axios = require('axios');23const data = {4action: {5type: "cancel",6cancels: [7{8a: 0,9o: 12345678910}11]12},13nonce: 1234567890,14signature: {15r: "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",16s: "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",17v: 2818}19};2021axios.post('https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange', data, {22headers: { 'Content-Type': 'application/json' }23})24.then(response => console.log(response.data))25.catch(error => console.error(error));26
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56ペイロード = json.dumps({7"action": {8"type": "cancel",9"cancels": [10{11"a": 0,12"o": 12345678913}14]15},16"nonce": 1234567890,17"signature": {18"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",19"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",20"v": 2821}22})2324ヘッダー = {25「Content-Type」: 'application/json'26}2728回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2930印刷(レスポンス.text)31
1import リクエスト2import json34url = "https://docs-demo.hype-mainnet.quiknode.pro/hypercore/exchange"56ペイロード = json.dumps({7"action": {8"type": "cancel",9"cancels": [10{11"a": 0,12"o": 12345678913}14]15},16"nonce": 1234567890,17"signature": {18"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",19"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",20"v": 2821}22})2324ヘッダー = {25「Content-Type」: 'application/json'26}2728回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2930印刷(レスポンス.text)31
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": "cancel",15"cancels": [16{17"a": 0,18"o": 12345678919}20]21},22"nonce": 1234567890,23"signature": {24"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",25"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",26"v": 2827}28})2930回答 = https.リクエスト(リクエスト)31レスポンスを格納する.read_body32
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": "cancel",15"cancels": [16{17"a": 0,18"o": 12345678919}20]21},22"nonce": 1234567890,23"signature": {24"r": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",25"s": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",26"v": 2827}28})2930回答 = https.リクエスト(リクエスト)31レスポンスを格納する.read_body32