Skip to main content
GET
/
lending
/
history
cURL
curl --request GET \
  --url https://lite-api.jup.ag/perps/v1/lending/history
{
  "dataList": [
    {
      "txHash": "<string>",
      "transactionType": "DepositCollateral",
      "walletAddress": "<string>",
      "borrowPositionPubkey": "<string>",
      "createdTime": 123,
      "tokenAmount": "<string>",
      "tokenMint": "<string>"
    }
  ],
  "count": 123
}

Query Parameters

walletAddress
string

Filter by wallet address

borrowPositionPubkey
string

Filter by specific borrow position pubkey

transactionType
enum<string>

Filter by transaction type

Available options:
DepositCollateral,
WithdrawCollateral,
Borrow,
Repay,
Liquidation
createdAtAfter
string

Fetches transactions with a 'createdAt' date that is greater or equal to the given 'createdAtAfter' UNIX timestamp

createdAtBefore
string

Fetches transactions with a 'createdAt' date that is less than the given 'createdAtBefore' UNIX timestamp

start
number
default:0

The index of the first row to retrieve. This parameter specifies the starting point for fetching rows from the dataset. It is inclusive, meaning that the row at this index will be included in the results

end
number
default:20

The index of the last row to retrieve. This parameter specifies the ending point for fetching rows from the dataset. It is exclusive, meaning that the row at this index will not be included in the results.

Response

200 OK

dataList
object[]
required

List of lending transactions

count
number
required

Total number of transactions matching the filter criteria