Send Modify REST API Endpoint
정보
Exchange API 호출은 Quicknode 크레딧을 소모하지 않습니다. 이 endpoint 통한 거래에는 빌더 수수료가 endpoint . 자세한 내역은 hyperliquidapi.com에서 확인하시기 바랍니다. 자체 빌더 코드를 사용하여 화이트 라벨 서비스를 이용하려면 당사에 문의해 주십시오.
이 endpoint Hyperliquid 기본 기능을 그대로 대체할 수 있는 endpoint 아닙니다. /거래소 endpoint. 자세한 내용은 Exchange API 개요 주요 차이점을 확인하려면.
신체 측정값
액션
객체
필수
로딩 중...
유형
문자열
로딩 중...
modifies
배열
로딩 중...
oid
정수
로딩 중...
주문
객체
로딩 중...
a
정수
로딩 중...
b
부울
로딩 중...
p
문자열
로딩 중...
s
문자열
로딩 중...
r
부울
로딩 중...
t
객체
로딩 중...
한도
객체
로딩 중...
tif
문자열
로딩 중...
논스
정수
필수
로딩 중...
서명
객체
필수
로딩 중...
r
문자열
로딩 중...
s
문자열
로딩 중...
v
정수
로딩 중...
vaultAddress
문자열
로딩 중...
expiresAfter
정수
로딩 중...
반품
성공
부울
로딩 중...
사용자
문자열
로딩 중...
exchangeResponse
객체
로딩 중...
요청
1curl -s -X POSTmainnet\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 POSTmainnet\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},20논스: 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.그런 다음(응답 => console.log(response.data))32.catchcatch (오류 => console.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},20논스: 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.그런 다음(응답 => console.log(response.data))32.catchcatch (오류 => console.error(오류));33
1import 요청2import json34url = "mainnet"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, 헤더=헤더, 데이터=페이로드)3637인쇄(응답.text)38
1import 요청2import json34url = "mainnet"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, 헤더=헤더, 데이터=페이로드)3637인쇄(응답.text)38
1require "uri"2require "json"3require "net/http"45url = URI("mainnet")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": "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("mainnet")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": "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