Skip to content

Latest commit

 

History

History
125 lines (79 loc) · 2.32 KB

ProtocolApi.md

File metadata and controls

125 lines (79 loc) · 2.32 KB

DeBankOpenApi.ProtocolApi

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

getProtocolListR

[Protocol] getProtocolListR()

Example

const DeBankOpenApi = require('debank-open-api');

let apiInstance = new DeBankOpenApi.ProtocolApi();
apiInstance.getProtocolListR().then((response) => {
  console.log(response);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

[Protocol]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getProtocolR

Protocol getProtocolR(id)

Example

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);
});

Parameters

Name Type Description Notes
id String protocol id

Return type

Protocol

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getTvl

getTvl(id)

Example

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);
});

Parameters

Name Type Description Notes
id String protocol id

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined