put
https://api.liquiditytech.com/api/v1/trading/portfolio
Update Trading Portfolio's name by a primary user.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Renames an existing RapidX Portfolio under the main user. Its Portfolio ID is unchanged; this operation does not change its balances or positions.
API key access
Requires a signed LTP Open API request with TRADE permission.
| API key type | Can call | Scope |
|---|---|---|
| Main User Level API key (also the main Portfolio key) | Yes | Renames a Portfolio under the main user. |
| Sub-user Level API key | No | Not supported by this endpoint. |
| Dedicated Sub Portfolio API key | No | Not supported by this endpoint. |
Rate limit: 3 requests per 10 seconds.
Request body
Send a JSON object with Content-Type: application/json.
| Field | Type | Required | Description |
|---|---|---|---|
portfolioId | Long | Yes | Portfolio identifier. |
name | String | Yes | New portfolio name: 6–20 characters, letters and numbers only, cannot be all numeric, case-sensitive. |
Response fields
| Field | Type | Description |
|---|---|---|
code | integer | Application result code. 200 means success. |
message | string | Result message. |
data | object | Portfolio result. |
data.portfolioId | integer (int64) | Portfolio identifier. Preserve the full integer value. |
data.name | string | Portfolio name after this operation. |
Example Request
{
"portfolioId": 2154503491108165,
"name": "NewPortfolioName"
}Example Response
{
"code": 200,
"message": "success",
"data": {
"portfolioId": 2154503491108165,
"name": "NewPortfolioName"
}
}Check the application code, not only the HTTP status. See Error codes for error responses.
