Trade history for a wallet
curl --request GET \
--url https://api.pro.xentfi.com/v1/orderbook/wallets/{walletId}/trades \
--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/wallets/{walletId}/trades', 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/wallets/{walletId}/trades"
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/wallets/{walletId}/trades"
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/wallets/{walletId}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"marketId": "<string>",
"sequence": "<string>",
"makerOrderId": "<string>",
"takerOrderId": "<string>",
"makerWalletId": "<string>",
"takerWalletId": "<string>",
"takerSide": "BUY",
"price": "<string>",
"quantity": "<string>",
"makerFee": "<string>",
"takerFee": "<string>",
"settlementBatchId": "<string>",
"settlementStatus": "QUEUED",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"total": 123,
"limit": 123,
"offset": 123
}
}{
"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
Trade history for a wallet
Only visible if your organisation has itself placed an order with this wallet — returns 404 otherwise, regardless of whether the wallet exists, to avoid leaking wallet existence across organisations.
GET
/
v1
/
orderbook
/
wallets
/
{walletId}
/
trades
Trade history for a wallet
curl --request GET \
--url https://api.pro.xentfi.com/v1/orderbook/wallets/{walletId}/trades \
--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/wallets/{walletId}/trades', 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/wallets/{walletId}/trades"
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/wallets/{walletId}/trades"
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/wallets/{walletId}/trades', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"marketId": "<string>",
"sequence": "<string>",
"makerOrderId": "<string>",
"takerOrderId": "<string>",
"makerWalletId": "<string>",
"takerWalletId": "<string>",
"takerSide": "BUY",
"price": "<string>",
"quantity": "<string>",
"makerFee": "<string>",
"takerFee": "<string>",
"settlementBatchId": "<string>",
"settlementStatus": "QUEUED",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"total": 123,
"limit": 123,
"offset": 123
}
}{
"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

