Place Order
curl --request POST \
--url https://api-bluvo.com/v0/wallet/trade/order \
--header 'Content-Type: application/json' \
--header 'x-bluvo-api-key: <api-key>' \
--header 'x-bluvo-org-id: <api-key>' \
--header 'x-bluvo-project-id: <api-key>' \
--header 'x-bluvo-wallet-id: <api-key>' \
--data '
{
"routeId": "<string>",
"volume": "<string>",
"price": "<string>"
}
'import requests
url = "https://api-bluvo.com/v0/wallet/trade/order"
payload = {
"routeId": "<string>",
"volume": "<string>",
"price": "<string>"
}
headers = {
"x-bluvo-api-key": "<api-key>",
"x-bluvo-org-id": "<api-key>",
"x-bluvo-project-id": "<api-key>",
"x-bluvo-wallet-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-bluvo-api-key': '<api-key>',
'x-bluvo-org-id': '<api-key>',
'x-bluvo-project-id': '<api-key>',
'x-bluvo-wallet-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({routeId: '<string>', volume: '<string>', price: '<string>'})
};
fetch('https://api-bluvo.com/v0/wallet/trade/order', 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-bluvo.com/v0/wallet/trade/order",
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([
'routeId' => '<string>',
'volume' => '<string>',
'price' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-bluvo-api-key: <api-key>",
"x-bluvo-org-id: <api-key>",
"x-bluvo-project-id: <api-key>",
"x-bluvo-wallet-id: <api-key>"
],
]);
$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-bluvo.com/v0/wallet/trade/order"
payload := strings.NewReader("{\n \"routeId\": \"<string>\",\n \"volume\": \"<string>\",\n \"price\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-bluvo-api-key", "<api-key>")
req.Header.Add("x-bluvo-org-id", "<api-key>")
req.Header.Add("x-bluvo-project-id", "<api-key>")
req.Header.Add("x-bluvo-wallet-id", "<api-key>")
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-bluvo.com/v0/wallet/trade/order")
.header("x-bluvo-api-key", "<api-key>")
.header("x-bluvo-org-id", "<api-key>")
.header("x-bluvo-project-id", "<api-key>")
.header("x-bluvo-wallet-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"routeId\": \"<string>\",\n \"volume\": \"<string>\",\n \"price\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-bluvo.com/v0/wallet/trade/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-bluvo-api-key"] = '<api-key>'
request["x-bluvo-org-id"] = '<api-key>'
request["x-bluvo-project-id"] = '<api-key>'
request["x-bluvo-wallet-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"routeId\": \"<string>\",\n \"volume\": \"<string>\",\n \"price\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"orderId": "OABC12-DEF34-GHIJKL",
"txid": [
"OABC12-DEF34-GHIJKL"
],
"exchange": "kraken",
"routeId": "kraken:spot:DOGE-USDC",
"description": "sell 70.00000000 XDGUSDC @ market",
"rawResponse": {
"txid": [
"OABC12-DEF34-GHIJKL"
],
"descr": {
"order": "sell 70.00000000 XDGUSDC @ market"
}
}
}{
"error": "Trading route not found: kraken:spot:DOGE-USDC",
"type": "TRADING_ROUTE_NOT_FOUND"
}{
"error": "Insufficient permissions",
"type": "APIKEY_INSUFFICIENT_PERMISSIONS",
"missing": [
"trade"
]
}{
"error": "Wallet not found",
"type": "WALLET_NOT_FOUND"
}Trading
Place Order
Place a spot order on the connected exchange using a route from the tradable assets endpoint. Kraken is supported first; the API calls the wallet client’s modular trading method so additional exchanges can implement the same contract later.
Required API Key Scopes: trade
POST
/
v0
/
wallet
/
trade
/
order
Place Order
curl --request POST \
--url https://api-bluvo.com/v0/wallet/trade/order \
--header 'Content-Type: application/json' \
--header 'x-bluvo-api-key: <api-key>' \
--header 'x-bluvo-org-id: <api-key>' \
--header 'x-bluvo-project-id: <api-key>' \
--header 'x-bluvo-wallet-id: <api-key>' \
--data '
{
"routeId": "<string>",
"volume": "<string>",
"price": "<string>"
}
'import requests
url = "https://api-bluvo.com/v0/wallet/trade/order"
payload = {
"routeId": "<string>",
"volume": "<string>",
"price": "<string>"
}
headers = {
"x-bluvo-api-key": "<api-key>",
"x-bluvo-org-id": "<api-key>",
"x-bluvo-project-id": "<api-key>",
"x-bluvo-wallet-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-bluvo-api-key': '<api-key>',
'x-bluvo-org-id': '<api-key>',
'x-bluvo-project-id': '<api-key>',
'x-bluvo-wallet-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({routeId: '<string>', volume: '<string>', price: '<string>'})
};
fetch('https://api-bluvo.com/v0/wallet/trade/order', 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-bluvo.com/v0/wallet/trade/order",
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([
'routeId' => '<string>',
'volume' => '<string>',
'price' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-bluvo-api-key: <api-key>",
"x-bluvo-org-id: <api-key>",
"x-bluvo-project-id: <api-key>",
"x-bluvo-wallet-id: <api-key>"
],
]);
$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-bluvo.com/v0/wallet/trade/order"
payload := strings.NewReader("{\n \"routeId\": \"<string>\",\n \"volume\": \"<string>\",\n \"price\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-bluvo-api-key", "<api-key>")
req.Header.Add("x-bluvo-org-id", "<api-key>")
req.Header.Add("x-bluvo-project-id", "<api-key>")
req.Header.Add("x-bluvo-wallet-id", "<api-key>")
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-bluvo.com/v0/wallet/trade/order")
.header("x-bluvo-api-key", "<api-key>")
.header("x-bluvo-org-id", "<api-key>")
.header("x-bluvo-project-id", "<api-key>")
.header("x-bluvo-wallet-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"routeId\": \"<string>\",\n \"volume\": \"<string>\",\n \"price\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-bluvo.com/v0/wallet/trade/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-bluvo-api-key"] = '<api-key>'
request["x-bluvo-org-id"] = '<api-key>'
request["x-bluvo-project-id"] = '<api-key>'
request["x-bluvo-wallet-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"routeId\": \"<string>\",\n \"volume\": \"<string>\",\n \"price\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"orderId": "OABC12-DEF34-GHIJKL",
"txid": [
"OABC12-DEF34-GHIJKL"
],
"exchange": "kraken",
"routeId": "kraken:spot:DOGE-USDC",
"description": "sell 70.00000000 XDGUSDC @ market",
"rawResponse": {
"txid": [
"OABC12-DEF34-GHIJKL"
],
"descr": {
"order": "sell 70.00000000 XDGUSDC @ market"
}
}
}{
"error": "Trading route not found: kraken:spot:DOGE-USDC",
"type": "TRADING_ROUTE_NOT_FOUND"
}{
"error": "Insufficient permissions",
"type": "APIKEY_INSUFFICIENT_PERMISSIONS",
"missing": [
"trade"
]
}{
"error": "Wallet not found",
"type": "WALLET_NOT_FOUND"
}Authorizations
Bluvo API Key
Bluvo Organization ID
Bluvo Project ID
Bluvo Wallet ID
Body
application/json
Was this page helpful?
⌘I