curl --request GET \
--url https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events', 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.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"total": 150,
"offset": 0,
"limit": 100,
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440010",
"eventType": "order_filled",
"providerId": "hyperliquid",
"occurredAt": "2026-04-23T07:52:05.187Z",
"order": {
"orderId": "394438950581",
"marketId": "hyperliquid-eth-usdc",
"asset": "ETH",
"side": "buy",
"type": "market",
"originalSizeBase": "0.0063",
"remainingSizeBase": "0.0",
"reduceOnly": false,
"isPositionLevel": false,
"clientOrderId": "<string>",
"childOrderIds": [
"<string>"
],
"createdAt": "2026-04-23T07:52:05.187Z",
"limitPrice": 2395.2,
"timeInForce": "ioc",
"triggerPrice": 123,
"closedPnl": "-12.45",
"fillPrice": 2500.5
},
"marketId": "hyperliquid-eth-usdc",
"perpActionId": "550e8400-e29b-41d4-a716-446655440001",
"providerOrderId": "394438950581",
"explorerUrl": "<string>"
}
]
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "yield-xyz-borrow returned a response for GET /v1/positions that does not match the expected schema",
"id": "INTEGRATION_RESPONSE_SCHEMA_DRIFT",
"details": {
"integration": "yield-xyz-borrow",
"endpoint": "GET /v1/positions",
"issues": [
{
"path": "supplyBalances.0.balanceUsd",
"message": "Expected string, received number",
"code": "invalid_type"
}
]
}
}{
"error": "<string>"
}List events
Get a paginated list of a wallet’s lifecycle events — order fills, liquidations, and stop-loss / take-profit triggers — filterable by venue, market, event type and time window.
This is a proxy to the Yield.xyz Perps GET /v1/events endpoint. Portal validates the upstream response against the schema documented here before returning it under data. If Yield.xyz changes the response shape, Portal returns a 500 with id: INTEGRATION_RESPONSE_SCHEMA_DRIFT instead of a partial response. Upstream reference: Yield.xyz Perps API.
curl --request GET \
--url https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events', 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.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.portalhq.io/api/v3/clients/me/integrations/yield-xyz-perps/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"total": 150,
"offset": 0,
"limit": 100,
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440010",
"eventType": "order_filled",
"providerId": "hyperliquid",
"occurredAt": "2026-04-23T07:52:05.187Z",
"order": {
"orderId": "394438950581",
"marketId": "hyperliquid-eth-usdc",
"asset": "ETH",
"side": "buy",
"type": "market",
"originalSizeBase": "0.0063",
"remainingSizeBase": "0.0",
"reduceOnly": false,
"isPositionLevel": false,
"clientOrderId": "<string>",
"childOrderIds": [
"<string>"
],
"createdAt": "2026-04-23T07:52:05.187Z",
"limitPrice": 2395.2,
"timeInForce": "ioc",
"triggerPrice": 123,
"closedPnl": "-12.45",
"fillPrice": 2500.5
},
"marketId": "hyperliquid-eth-usdc",
"perpActionId": "550e8400-e29b-41d4-a716-446655440001",
"providerOrderId": "394438950581",
"explorerUrl": "<string>"
}
]
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "yield-xyz-borrow returned a response for GET /v1/positions that does not match the expected schema",
"id": "INTEGRATION_RESPONSE_SCHEMA_DRIFT",
"details": {
"integration": "yield-xyz-borrow",
"endpoint": "GET /v1/positions",
"issues": [
{
"path": "supplyBalances.0.balanceUsd",
"message": "Expected string, received number",
"code": "invalid_type"
}
]
}
}{
"error": "<string>"
}Authorizations
Client API Key or Client Session Token (CST). Pass as a Bearer token in the Authorization header.
Query Parameters
Offset for pagination
x >= 00
Maximum number of items to return
1 <= x <= 10025
Wallet address whose events to list.
Filter by venue.
Filter by several venues (comma-separated, or repeat the parameter).
Filter by event type.
order_filled, liquidation, stop_loss_triggered, take_profit_triggered Filter by several event types (comma-separated, or repeat the parameter).
Filter by market.
Filter by the action that produced the event.
Filter by the venue order id.
Lower bound on occurredAt (ISO-8601).
Upper bound on occurredAt (ISO-8601).
Response
Paginated list of events
Show child attributes
Show child attributes
Was this page helpful?