# CybridApiBank::AssetsBankApi All URIs are relative to *https://bank.demo.cybrid.app* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**list_assets**](AssetsBankApi.md#list_assets) | **GET** /api/assets | Get assets list | ## list_assets > list_assets(opts) Get assets list Retrieves a listing of assets. Required scope: **prices:read** ### Examples ```ruby require 'time' require 'cybrid_api_bank_ruby' # setup authorization CybridApiBank.configure do |config| # Configure Bearer authorization (JWT): BearerAuth config.access_token = 'YOUR_BEARER_TOKEN' # Configure OAuth2 access token for authorization: oauth2 config.access_token = 'YOUR ACCESS TOKEN' end api_instance = CybridApiBank::AssetsBankApi.new opts = { page: 56, # Integer | The page index to retrieve. per_page: 56 # Integer | The number of entities per page to return. } begin # Get assets list result = api_instance.list_assets(opts) p result rescue CybridApiBank::ApiError => e puts "Error when calling AssetsBankApi->list_assets: #{e}" end ``` #### Using the list_assets_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> list_assets_with_http_info(opts) ```ruby begin # Get assets list data, status_code, headers = api_instance.list_assets_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => rescue CybridApiBank::ApiError => e puts "Error when calling AssetsBankApi->list_assets_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **page** | **Integer** | The page index to retrieve. | [optional][default to 0] | | **per_page** | **Integer** | The number of entities per page to return. | [optional][default to 10] | ### Return type [**AssetListBankModel**](AssetListBankModel.md) ### Authorization [BearerAuth](../README.md#BearerAuth), [oauth2](../README.md#oauth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json