Register account
curl --request POST \
--url https://api.orderly.org/v1/register_account \
--header 'Content-Type: application/json' \
--data '
{
"message": {
"brokerId": "<string>",
"chainId": 123,
"timestamp": "<string>",
"registrationNonce": "<string>",
"chainType": "<string>"
},
"signature": "<string>",
"userAddress": "<string>"
}
'import requests
url = "https://api.orderly.org/v1/register_account"
payload = {
"message": {
"brokerId": "<string>",
"chainId": 123,
"timestamp": "<string>",
"registrationNonce": "<string>",
"chainType": "<string>"
},
"signature": "<string>",
"userAddress": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
message: {
brokerId: '<string>',
chainId: 123,
timestamp: '<string>',
registrationNonce: '<string>',
chainType: '<string>'
},
signature: '<string>',
userAddress: '<string>'
})
};
fetch('https://api.orderly.org/v1/register_account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orderly.org/v1/register_account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => [
'brokerId' => '<string>',
'chainId' => 123,
'timestamp' => '<string>',
'registrationNonce' => '<string>',
'chainType' => '<string>'
],
'signature' => '<string>',
'userAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orderly.org/v1/register_account"
payload := strings.NewReader("{\n \"message\": {\n \"brokerId\": \"<string>\",\n \"chainId\": 123,\n \"timestamp\": \"<string>\",\n \"registrationNonce\": \"<string>\",\n \"chainType\": \"<string>\"\n },\n \"signature\": \"<string>\",\n \"userAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.orderly.org/v1/register_account")
.header("Content-Type", "application/json")
.body("{\n \"message\": {\n \"brokerId\": \"<string>\",\n \"chainId\": 123,\n \"timestamp\": \"<string>\",\n \"registrationNonce\": \"<string>\",\n \"chainType\": \"<string>\"\n },\n \"signature\": \"<string>\",\n \"userAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/register_account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": {\n \"brokerId\": \"<string>\",\n \"chainId\": 123,\n \"timestamp\": \"<string>\",\n \"registrationNonce\": \"<string>\",\n \"chainType\": \"<string>\"\n },\n \"signature\": \"<string>\",\n \"userAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"account_id": "<string>"
},
"timestamp": 1702989203989
}Registration
Register account
Limit: 10 requests per 1 second per IP address
POST /v1/register_account
Registers a new account for the provided wallet under the specified builder.
POST
/
v1
/
register_account
Register account
curl --request POST \
--url https://api.orderly.org/v1/register_account \
--header 'Content-Type: application/json' \
--data '
{
"message": {
"brokerId": "<string>",
"chainId": 123,
"timestamp": "<string>",
"registrationNonce": "<string>",
"chainType": "<string>"
},
"signature": "<string>",
"userAddress": "<string>"
}
'import requests
url = "https://api.orderly.org/v1/register_account"
payload = {
"message": {
"brokerId": "<string>",
"chainId": 123,
"timestamp": "<string>",
"registrationNonce": "<string>",
"chainType": "<string>"
},
"signature": "<string>",
"userAddress": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
message: {
brokerId: '<string>',
chainId: 123,
timestamp: '<string>',
registrationNonce: '<string>',
chainType: '<string>'
},
signature: '<string>',
userAddress: '<string>'
})
};
fetch('https://api.orderly.org/v1/register_account', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orderly.org/v1/register_account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => [
'brokerId' => '<string>',
'chainId' => 123,
'timestamp' => '<string>',
'registrationNonce' => '<string>',
'chainType' => '<string>'
],
'signature' => '<string>',
'userAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orderly.org/v1/register_account"
payload := strings.NewReader("{\n \"message\": {\n \"brokerId\": \"<string>\",\n \"chainId\": 123,\n \"timestamp\": \"<string>\",\n \"registrationNonce\": \"<string>\",\n \"chainType\": \"<string>\"\n },\n \"signature\": \"<string>\",\n \"userAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.orderly.org/v1/register_account")
.header("Content-Type", "application/json")
.body("{\n \"message\": {\n \"brokerId\": \"<string>\",\n \"chainId\": 123,\n \"timestamp\": \"<string>\",\n \"registrationNonce\": \"<string>\",\n \"chainType\": \"<string>\"\n },\n \"signature\": \"<string>\",\n \"userAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/register_account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": {\n \"brokerId\": \"<string>\",\n \"chainId\": 123,\n \"timestamp\": \"<string>\",\n \"registrationNonce\": \"<string>\",\n \"chainType\": \"<string>\"\n },\n \"signature\": \"<string>\",\n \"userAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"account_id": "<string>"
},
"timestamp": 1702989203989
}Body
application/json
⌘I