> For the complete documentation index, see [llms.txt](https://yodaplus.gitbook.io/tradefinex-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yodaplus.gitbook.io/tradefinex-api/tradefinex/assets.md).

# Assets

## Get Assets of Pool

<mark style="color:blue;">`GET`</mark> `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<mark style="color:red;">\*</mark>   | address   | can be null[^1] or the address[^1] of the asset                                                                                                                                                                                         |
| asset\_name<mark style="color:red;">\*</mark>      | string    | name of the asset                                                                                                                                                                                                                       |
| asset\_type<mark style="color:red;">\*</mark>      | string    | type of the asset                                                                                                                                                                                                                       |
| financing\_date<mark style="color:red;">\*</mark>  | string    | <p>financing date of the asset</p><p><strong>Date format</strong>: <code>YYYY-MM-DD</code>. <strong>Example:</strong> <code>"2020-07-01"</code></p><p><strong>Validation:</strong> Financing date should be less than Maturity date</p> |
| maturity\_date<mark style="color:red;">\*</mark>   | string    | <p>maturity date of the asset</p><p><strong>Date format</strong>: <code>YYYY-MM-DD</code>. Example: <code>"2020-07-01"</code></p>                                                                                                       |
| financing\_fee<mark style="color:red;">\*</mark>   | float/int | financing fee of the asset                                                                                                                                                                                                              |
| amount\_invested<mark style="color:red;">\*</mark> | float/int | amount invested in the asset                                                                                                                                                                                                            |
| currency<mark style="color:red;">\*</mark>         | string    | currency of the asset token                                                                                                                                                                                                             |

{% tabs %}
{% tab title="200 Pool successfully created" %}
Example

{% code overflow="wrap" %}

```javascript
[
    {
        "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"
    }
]
```

{% endcode %}
{% endtab %}

{% tab title="404: Not Found AssetAPI Validations Failed. Recheck the API fields' types" %}

<pre class="language-json"><code class="lang-json"><strong>{error: "Pool API Validations Failed. Recheck the API fields' types."}
</strong></code></pre>

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**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.
{% endhint %}

[^1]:
