getAssets(params?: AssetQuery)
getAssets(params?: AssetQuery)
Description
Retrieve metadata about assets.
- OpenPool API Endpoint:
GET:/metadata/asset/
Parameters
Name | Type | Description | Optional |
---|---|---|---|
params | AssetQuery | Query parameters | Yes |
{
name?: string;
ordering?: string;
page?: number;
search?: string;
symbol?: string;
}
Response
{
count?: number;
next?: string | null;
previous?: string | null;
results?: [{
id?: string;
metadata: [{
type: string;
key: string;
value?: string | null;
asset: string;
}];
name: string;
symbol: string | null;
slug: string;
type: string;
description?: string | null;
image_url?: string | null;
}]
}