get
https://api.liquiditytech.com/api/v1/trading/portfolio
Retrieve trading portfolio list under primary user.
Get Portfolio
GET https://api.liquiditytech.com/api/v1/trading/portfolio
Authentication required. Permission: READ. Primary user API keys only.
Rate limit: 3 requests per 10 seconds.
Retrieve trading portfolios under the primary user.
Request Parameters
| Field | Type | Required | Description |
|---|---|---|---|
portfolioId | Long | No | Filter by portfolio ID. |
name | String | No | Filter by portfolio name. |
belongingTo | Integer | No | Filter by portfolio type. 0: Main Portfolio, 2: Other Trading. |
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. |
name | String | Portfolio name. |
belongingTo | Integer | Portfolio type. 0: Main Portfolio, 2: Other Trading. |
createAt | Long | Creation time, in milliseconds since Unix epoch. |
updateAt | Long | Last update time, in milliseconds since Unix epoch. |
Example Request
GET /api/v1/trading/portfolio?page=1&pageSize=10
Example Response
{
"code": 200,
"message": "success",
"data": {
"page": 1,
"pageSize": 10,
"pageNum": 1,
"totalSize": 2,
"list": [
{
"portfolioId": 1704269773524000,
"name": "MainPortfolio",
"belongingTo": 0,
"createAt": 1667534132406,
"updateAt": 1744801411771
},
{
"portfolioId": 2154503491108165,
"name": "MyPortfolio2",
"belongingTo": 2,
"createAt": 1744466400000,
"updateAt": 1744466400000
}
]
}
}
