Kraken Embed
Get Portfolio Transactions
Changed onGet transaction history for a user's portfolio with filtering and pagination options.
get/v1/kraken_embed/users/{user_id}/transactions
Request
- Base URLhttps://api.privy.io
- AuthHTTP basic
Path parameters
user_idstring required
The ID of the Privy user.
Query parameters
cursorstring
typesKraken Embed Transaction Type[]
page_sizeinteger
assetsstring[]
from_timestring date-time
until_timestring date-time
statusesKraken Embed Transaction Status[]
idsstring[]
sorting'descending' | 'ascending'
Sort direction for paginated transaction lists.
quotestring
Headers
privy-app-idstring required
ID of your Privy app.
Response
Transaction history retrieved successfully.
Example response
{
"data": {
"result": {
"transactions": [
{
"id": "TXN-12345",
"time": "2024-04-15T11:00:00Z",
"type": "simple_order",
"status": "successful",
"ref_id": "REF-12345",
"ref_id2": "QTE-12345-ABCDE",
"spend": {
"ledger_id": "LED-001",
"time": "2024-04-15T11:00:00Z",
"amount": {
"asset": "USD",
"asset_class": "currency",
"amount": "100.00"
},
"quoted_amount": null,
"fee": {
"asset": "USD",
"asset_class": "currency",
"amount": "1.00"
},
"quoted_fee": null,
"total": {
"asset": "USD",
"asset_class": "currency",
"amount": "101.00"
},
"quoted_total": null,
"balance": {
"asset": "USD",
"asset_class": "currency",
"amount": "899.00"
}
},
"receive": {
"ledger_id": "LED-002",
"time": "2024-04-15T11:00:00Z",
"amount": {
"asset": "BTC",
"asset_class": "currency",
"amount": "0.00150000"
},
"quoted_amount": null,
"fee": {
"asset": "BTC",
"asset_class": "currency",
"amount": "0.00000150"
},
"quoted_fee": null,
"total": {
"asset": "BTC",
"asset_class": "currency",
"amount": "0.00149850"
},
"quoted_total": null,
"balance": {
"asset": "BTC",
"asset_class": "currency",
"amount": "0.00149850"
}
},
"details": {
"type": "simple_order",
"quote_id": "QTE-12345-ABCDE",
"trade_type": "buy",
"parent_transaction": null
}
}
],
"stats": {
"transactions_seen": 1
},
"next_cursor": "next_page_token_xyz"
}
}
}Changes
- breaking
the
////response's property type changed fromstringnullto no type for status - info
added
subschema #2to the////response propertyanyOflist for the response status - info
removed the
failedenum value from the////response property for the response status - info
removed the
in_progressenum value from the////response property for the response status - info
removed the
successfulenum value from the////response property for the response status - info
removed the
unspecifiedenum value from the////response property for the response status
- breaking