All URIs are relative to https://openapi.debank.com
Method | HTTP request | Description |
---|---|---|
getProtocolListR | GET /v1/protocol/list | |
getProtocolR | GET /v1/protocol | |
getTvl | GET /v1/protocol/tvl |
[Protocol] getProtocolListR()
const DeBankOpenApi = require('debank-open-api');
let apiInstance = new DeBankOpenApi.ProtocolApi();
apiInstance.getProtocolListR().then((response) => {
console.log(response);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Protocol getProtocolR(id)
const DeBankOpenApi = require('debank-open-api');
let apiInstance = new DeBankOpenApi.ProtocolApi();
let id = "id_example"; // String | protocol id
apiInstance.getProtocolR(id).then((response) => {
console.log(response);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | protocol id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
getTvl(id)
const DeBankOpenApi = require('debank-open-api');
let apiInstance = new DeBankOpenApi.ProtocolApi();
let id = "id_example"; // String | protocol id
apiInstance.getTvl(id).then((response) => {
console.log(response);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | protocol id |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined