Update the API Key of a Trading Portfolio

Update the API Key of a Trading Portfolio 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 parameters as a JSON body with Content-Type: application/json.

Field nameTypeNecessaryRemarks
portfolioIdinteger (int64)YTrading Portfolio ID
portfolioApiKeyStringYAPI public key
apiNameStringNAPI key label, up to 20 characters.
ipStringNup to 20 IP addresses, separated by comma.
permissionStringNPermissions to assign to the target key, comma-separated: READ, TRANSFER, WITHDRAW, TRADE. Send the desired permission set explicitly.

Response fields

Field nameTypeRemarks
codeintegerApplication result code. 200 means success.
messageStringResult message.
dataobjectThe key configuration after this operation.

Key result: data

Field nameTypeRemarks
data.portfolioIdinteger (int64)Portfolio identifier. Preserve the full integer value.
data.apiNameStringAPI Key note
data.accessKeyStringThe key identifier; use it as portfolio ApiKey when filtering, updating or deleting.
data.statusIntegerstatus: 1 normal, 2 frozen
data.ipStringComma-separated IP whitelist; empty string means no IP restriction.
data.permissionStringGranted permissions, comma-separated.
data.createdAtinteger (int64)Creation time, Unix timestamp in milliseconds.
data.updatedAtinteger (int64)Last update time, Unix timestamp in milliseconds.

Example request

{
  "portfolioId": 2154503491108165,
  "portfolioApiKey": "EXAMPLE_ACCESS_KEY",
  "apiName": "ExampleKeyUpdated",
  "ip": "203.0.113.10",
  "permission": "READ,WITHDRAW"
}

Example response

{
  "code": 200,
  "message": "success",
  "data": {
    "portfolioId": 2154503491108165,
    "apiName": "ExampleKeyUpdated",
    "accessKey": "EXAMPLE_ACCESS_KEY",
    "status": 1,
    "ip": "203.0.113.10",
    "permission": "READ,WITHDRAW",
    "createdAt": 1789061449714,
    "updatedAt": 1789061456665
  }
}
Query Params
string

Trading Portfolio ID

string

API Public Key

string

API note

string

ip

string

READ, TRANSFER, WITHDRAW, TRADE

Response

Language
LoadingLoading…
Response
Choose an example:
application/json