Skip to main content

hl_sendOrder JSON-RPC Method

Loading...

Updated on
Feb 26, 2026

hl_sendOrder JSON-RPC Method

Parameters

action
object
REQUIRED
Loading...
type
string
Loading...
orders
array
Loading...
a
integer
Loading...
b
boolean
Loading...
p
string
Loading...
s
string
Loading...
r
boolean
Loading...
t
object
Loading...
grouping
string
Loading...
nonce
integer
REQUIRED
Loading...
signature
object
REQUIRED
Loading...
r
string
Loading...
s
string
Loading...
v
integer
Loading...
vaultAddress
string
Loading...
expiresAfter
integer
Loading...

Returns

result
object
Loading...
success
boolean
Loading...
user
string
Loading...
exchangeResponse
object
Loading...
Request
1
curl https://docs-demo.hype-mainnet.quiknode.pro/evm \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"jsonrpc": "2.0",
6
"method": "hl_sendOrder",
7
"params": {
8
"action": {
9
"type": "order",
10
"orders": [
11
{
12
"a": "BTC",
13
"b": true,
14
"p": "100000",
15
"s": "0.001",
16
"r": false,
17
"t": {
18
"limit": {
19
"tif": "Ioc"
20
}
21
}
22
}
23
],
24
"grouping": "na"
25
},
26
"nonce": 0,
27
"signature": {
28
"r": "0x...",
29
"s": "0x...",
30
"v": 27
31
}
32
},
33
"id": 1
34
}'
35
1
curl https://docs-demo.hype-mainnet.quiknode.pro/evm \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"jsonrpc": "2.0",
6
"method": "hl_sendOrder",
7
"params": {
8
"action": {
9
"type": "order",
10
"orders": [
11
{
12
"a": "BTC",
13
"b": true,
14
"p": "100000",
15
"s": "0.001",
16
"r": false,
17
"t": {
18
"limit": {
19
"tif": "Ioc"
20
}
21
}
22
}
23
],
24
"grouping": "na"
25
},
26
"nonce": 0,
27
"signature": {
28
"r": "0x...",
29
"s": "0x...",
30
"v": 27
31
}
32
},
33
"id": 1
34
}'
35
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free