Delete the API Key of a Trading Portfolio

Delete 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
portfolioIdLongYTrading Portfolio ID
portfolioApiKeyStringYThe target key's accessKey, returned by creation or listing.

Response fields

Field nameTypeRemarks
codeintegerApplication result code. 200 means success.
messageStringResult message.
dataobjectThe deleted key identifier.

Key result: data

Field nameTypeRemarks
data.portfolioIdinteger (int64)Portfolio identifier. Preserve the full integer value.
data.apiNameStringAPI Key note
data.accessKeyStringIdentifier of the deleted key.
data.updatedAtinteger (int64)Deletion time, Unix timestamp in milliseconds..

Example request

{
  "portfolioId": 2154503491108165,
  "portfolioApiKey": "EXAMPLE_ACCESS_KEY"
}

Example response

{
  "code": 200,
  "message": "success",
  "data": {
    "portfolioId": 2154503491108165,
    "apiName": "ExampleKeyUpdated",
    "accessKey": "EXAMPLE_ACCESS_KEY",
    "updatedAt": 1789061468522
  }
}
Body Params
string
required

portfolio id

string

API public key

Response

Language
LoadingLoading…
Response
Choose an example:
application/json