get
https://api.liquiditytech.com/api/v1/apiKey/portfolio
Retrieve trading portfolio's API List under the primary user
Authentication required. Permission: READ. Primary user API keys only.
Rate limit: 3 requests per 10 seconds.
Retrieve API keys for trading portfolios under the primary user. The secretKey is not returned by this endpoint — it is only available at the time of creation.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
portfolioId | Long | No | Filter by portfolio ID. |
portfolioApiKey | String | No | Filter by API public key. |
page | Integer | No | Page number. Default: 1. |
pageSize | Integer | No | Results per page. Default: 100, max: 1000. |
Response Fields
| Field | Type | Description |
|---|---|---|
portfolioId | Long | Portfolio identifier. |
apiName | String | API key label. |
accessKey | String | Public API key. |
status | Integer | 1: Normal, 2: Frozen. |
ip | String | Whitelisted IP addresses. Empty string if no restriction. |
permission | String | Assigned permissions, comma-separated. |
createdAt | Long | Creation time, in milliseconds since Unix epoch. |
updatedAt | Long | Last update time, in milliseconds since Unix epoch. |
Example Request
GET /api/v1/apiKey/portfolio?portfolioId=2154503491108165&page=1&pageSize=10
Example Response
{
"code": 200,
"message": "success",
"data": {
"page": 1,
"pageSize": 10,
"pageNum": 1,
"totalSize": 1,
"list": [
{
"portfolioId": 2154503491108165,
"apiName": "my-trading-key",
"accessKey": "63**4",
"status": 1,
"ip": "",
"permission": "READ,TRADE",
"createdAt": 1744466400000,
"updatedAt": 1744466400000
}
]
}
}
