Assets

Get Assets of Pool

GET https://api.myapi.com/get-assets-by-pool-address/:pool-address

Gets a list of asset data owned by the specific pool

Request Body

Name
Type
Description

asset_address*

address

can be or the of the asset

asset_name*

string

name of the asset

asset_type*

string

type of the asset

financing_date*

string

financing date of the asset

Date format: YYYY-MM-DD. Example: "2020-07-01"

Validation: Financing date should be less than Maturity date

maturity_date*

string

maturity date of the asset

Date format: YYYY-MM-DD. Example: "2020-07-01"

financing_fee*

float/int

financing fee of the asset

amount_invested*

float/int

amount invested in the asset

currency*

string

currency of the asset token

Example

[
    {
        "asset_address": 0xE588F51439F1555597E4b85dfbCa3926c57241e4,
        "asset_name": "Trade Recievables (Invoices)",
        "asset_type": "Trade Finance",
        "financing_date": "2022-10-07",
        "maturity_date": "2023-02-10",
        "financing_fee": 6.0,
        "amount_invested": 500000,
        "currency": "USXD"
    },
    {
        "asset_address": null,
        "asset_name": "Short Term Loan",
        "asset_type": "Working Capital Finance",
        "financing_date": "2022-11-10",
        "maturity_date": "2023-04-13",
        "financing_fee": 1.1,
        "amount_invested": 500000,
        "currency": "USXD"
    },
    {
        "asset_address": null,
        "asset_name": "Letter of Credit",
        "asset_type": "Trade Finance",
        "financing_date": "2022-10-11",
        "maturity_date": "2023-01-26",
        "financing_fee": 5.0,
        "amount_invested": 750000,
        "currency": "USXD"
    }
]

Good to know: The API should return a list of objects containing data of the assets held by a particular pool. All assets should belong to the same pool.

Last updated