Update Trading Portfolio

Update Trading Portfolio's name by a primary user.

Permission

  • Applies to primary user's API Key only.
  • Permission: TRADE.

Rate Limit

  • 3 requests per 10 seconds

Request body

Send a JSON object with Content-Type: application/json.

Field nameTypeNecessaryRemarks
portfolioIdLongYPortfolio identifier.
nameStringYNew portfolio name: 6–20 characters, letters and numbers only, cannot be all numeric, case-sensitive.

Response fields

Field nameTypeRemarks
codeintegerApplication result code. 200 means success.
messageStringResult message.
dataobjectPaginated Portfolio result.
data.portfolioIdinteger (int64)Portfolio identifier. Preserve the full integer value.
data.nameStringPortfolio name after this operation.

Example Request

{
  "name": "MyPortfolio"
}

Example Response

{
  "code": 200,
  "message": "success",
  "data": {
    "portfolioId": 2154503491108165,
    "name": "NewPortfolioName"
  }
}
Body Params
int64

portfolio id

string

portfolio name

Response

Language
LoadingLoading…
Response
Choose an example:
application/json