curl --request GET \
--url https://api.velora.xyz/v2/delta/orders/{orderId}import requests
url = "https://api.velora.xyz/v2/delta/orders/{orderId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.velora.xyz/v2/delta/orders/{orderId}', 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.velora.xyz/v2/delta/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.velora.xyz/v2/delta/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.velora.xyz/v2/delta/orders/{orderId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velora.xyz/v2/delta/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"output": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"owner": "<string>",
"beneficiary": "<string>",
"orderHash": "<string>",
"partner": "<string>",
"order": {},
"transactions": [
{
"originTx": "<string>",
"destinationTx": "<string>",
"filledPercent": 123,
"spentAmount": "<string>",
"receivedAmount": "<string>"
}
],
"refunds": [
{
"tx": "<string>",
"chainId": 123,
"token": "<string>",
"amount": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Get Delta order by ID
Fetch a Delta V2 order by its UUID, the id returned by POST /v2/delta/orders.
curl --request GET \
--url https://api.velora.xyz/v2/delta/orders/{orderId}import requests
url = "https://api.velora.xyz/v2/delta/orders/{orderId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.velora.xyz/v2/delta/orders/{orderId}', 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.velora.xyz/v2/delta/orders/{orderId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.velora.xyz/v2/delta/orders/{orderId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.velora.xyz/v2/delta/orders/{orderId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.velora.xyz/v2/delta/orders/{orderId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"output": {
"chainId": 123,
"token": "<string>",
"amount": "<string>",
"expectedAmount": "<string>",
"executedAmount": "<string>"
},
"owner": "<string>",
"beneficiary": "<string>",
"orderHash": "<string>",
"partner": "<string>",
"order": {},
"transactions": [
{
"originTx": "<string>",
"destinationTx": "<string>",
"filledPercent": 123,
"spentAmount": "<string>",
"receivedAmount": "<string>"
}
],
"refunds": [
{
"tx": "<string>",
"chainId": 123,
"token": "<string>",
"amount": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z"
}Path Parameters
Response
Order details.
V2 order shape returned by every order endpoint (reads and posts). input and output carry the expected + executed amounts so you don't need to compute fill-percent yourself. onChainOrderType selects the family the order struct belongs to. Crosschain refunds appear in refunds after Velora verifies the refund transaction receipt.
PENDING, AWAITING_SIGNATURE, ACTIVE, SUSPENDED, CANCELLING, BRIDGING, COMPLETED, FAILED, EXPIRED, REFUNDING, CANCELLED, REFUNDED SELL, BUY MARKET, LIMIT Order, FillableOrder, ProductiveOrder, ExternalOrder, TWAPOrder, TWAPBuyOrder Source-side token movement. SELL: { chainId, token, amount }. BUY: { chainId, token, expectedAmount, executedAmount }.
Show child attributes
Show child attributes
Destination-side token movement. SELL: { chainId, token, expectedAmount, executedAmount }. BUY: { chainId, token, amount }.
Show child attributes
Show child attributes
The signed on-chain Order struct.
Show child attributes
Show child attributes
Verified bridge refund transactions for crosschain orders. Empty until Velora can match an on-chain refund receipt; some bridge providers may not emit source-chain token refund metadata.
Show child attributes
Show child attributes
Was this page helpful?