MPC-TSS
Portfolios
Remove Asset on Portfolio

API Documentation: Remove Asset from Portfolio

Overview

This endpoint allow user to view all assets listed on Xellar. These assets can later be selected when adding assets to a portfolio. Asset need to be filtered based on network.

  • HTTP Method: DELETE
  • Endpoint: /api/v1/portfolios/{walletId}/asset/{assetKey}

Request Path Parameters

  • walletId (required): wallet identifier.
  • assetKey (required): asset unique key, key can be taken from Get Assets on Portfolio.

Request Headers

  • X-CLIENT-ID: (required): Client ID which was generated when register in Xellar TSS API Service Dashboard.
  • X-SIGNATURE: (required): Calculated signature, please refer to Authorization section.
  • X-TIMESTAMP: (required): Request timestamp in RFC3339 format.

Example Request Syntax

curl -X DELETE -H "Content-Type: application/json" -H "x-client-id: $YOUR_CLIENT_ID" -H "x-client-secret: $YOUR_CLIENT_SECRET" <BASE_URL>/api/v1/portfolios/{walletId}/asset/{assetKey}

Response

The response will include a JSON object with the following properties:

  • status (number): The HTTP status code of the response (e.g., 200 for success).
  • message (string): A message providing additional information about the operation.

Example Response

{
    "status": 200,
    "message": "Remove asset to portfolio successfully"
}