Get 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

FieldTypeRequiredDescription
portfolioIdLongNoFilter by portfolio ID.
nameStringNoFilter by portfolio name.
belongingToIntegerNoFilter by portfolio type. 0: Main Portfolio, 2: Other Trading.
pageIntegerNoPage number. Default: 1.
pageSizeIntegerNoResults per page. Default: 100, max: 1000.

Response Fields

FieldTypeDescription
portfolioIdLongPortfolio identifier.
nameStringPortfolio name.
belongingToIntegerPortfolio type. 0: Main Portfolio, 2: Other Trading.
createAtLongCreation time, in milliseconds since Unix epoch.
updateAtLongLast 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
      }
    ]
  }
}
Body Params
int64

portfolio id

string

portfolio name

string

portfolio which belongs to

int32
Defaults to 1

Current page, default=1, the min value=1

int32
Defaults to 100

Page size, default=100, the max value=1000

Response

Language
Response
Choose an example:
application/json