# 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]:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yodaplus.gitbook.io/tradefinex-api/tradefinex/assets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
