Get settlement batch status
curl --request GET \
--url https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId} \
--header 'apiKey: <api-key>' \
--header 'orgId: <api-key>'const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}"
headers = {
"apiKey": "<api-key>",
"orgId": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("orgId", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"marketId": "<string>",
"blockchainId": 123,
"tradeIds": [
"<string>"
],
"netDeltas": {},
"legs": [
{
"walletId": "<string>",
"assetId": "<string>",
"amount": "<string>",
"direction": "IN",
"chainId": 123,
"status": "QUEUED",
"txHash": "<string>",
"quoteId": "<string>",
"retryCount": 123,
"failureReason": "<string>",
"submittedAt": "<string>",
"confirmedAt": "<string>"
}
],
"status": "QUEUED",
"retryCount": 123,
"failureReason": "<string>",
"submittedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}OrderBook Settlement
Get settlement batch status
Includes the full per-wallet legs array (IN/OUT, txHash, status, failureReason) so a partial failure within a batch is visible at the wallet level rather than as one opaque batch status.
GET
/
v1
/
orderbook
/
settlement-batches
/
{batchId}
Get settlement batch status
curl --request GET \
--url https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId} \
--header 'apiKey: <api-key>' \
--header 'orgId: <api-key>'const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}"
headers = {
"apiKey": "<api-key>",
"orgId": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("orgId", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.pro.xentfi.com/v1/orderbook/settlement-batches/{batchId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "<string>",
"marketId": "<string>",
"blockchainId": 123,
"tradeIds": [
"<string>"
],
"netDeltas": {},
"legs": [
{
"walletId": "<string>",
"assetId": "<string>",
"amount": "<string>",
"direction": "IN",
"chainId": 123,
"status": "QUEUED",
"txHash": "<string>",
"quoteId": "<string>",
"retryCount": 123,
"failureReason": "<string>",
"submittedAt": "<string>",
"confirmedAt": "<string>"
}
],
"status": "QUEUED",
"retryCount": 123,
"failureReason": "<string>",
"submittedAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}⌘I

