List of assets [Private]

List of available assets for your service and customers.

Method name:/v2/asset
Request type:GET

📘

To call private endpoints, you need to get a JWT token or an API key for authentication.

Here you can learn in detail how to successfully authenticate.

From this endpoint, a list of assets and their parameters, which are available for use by the partner in operations, is returned.

If the asset is not in the list returned from this endpoint, it means that it will be impossible to perform any operation using it, even if it is present, for example, in the endpoint /v2/rate/equivalent or /v2/ticker .

Exemplary request

const url = BASE_URL;
const path = "/v2/asset";

const body = {};

const options = {
  method: "GET",
  headers: {
    accept: "application/json",
    "Content-Type": "application/json",
    "Authorization": `Bearer ${data.accessToken}` // data.accessToken - generated a JWT token via /v2/auth/login.
  },
  body: JSON.stringify(body),
};

fetch(url + path, options)
  .then((response) => response.json())
  .then((showResponse) => console.log(showResponse.data));
import requests

url = BASE_URL
path = "/v2/asset"
headers = {
    "accept": "application/json",
    "Content-Type": "application/json",
    "Authorization": "Bearer " + data.accessToken # data.accessToken - generated a JWT token via /v2/auth/login.
}
body = {};

request = requests.get(url + path, headers=headers, json=body)
print(request.json())

How to call private endpoints here

Swagger here

Response

{
  "data": [
    {
      "code": "BTC",       // Asset code.
      "description": "",   // Asset description.
      "name": "Bitcoin",   // Asset name.
      "position": 0,       // Field position.
      "precision": 8,      // Asset precision.
      "type": "Crypto"     // Asset type.
    },
    {
      "code": "USD",
      "description": "",
      "name": "Dollar",
      "position": 0,
      "precision": 2,
      "type": "Fiat"
    },
  ]
}