## Get analytics for current market state `analytics.market.get_current_state() -> MarketGetCurrentStateResponse` **get** `/api/v1/analytics/market/state` Get analytics for current market state ### Returns - `class MarketGetCurrentStateResponse: …` - `data: Data` - `assets: List[DataAsset]` - `asset: AssetSpec` Provides a unique identifier for an asset for use throughout the Neptune API. IDs are unique across asset domains (contract tokens, native denoms, etc) - `id: str` - `group: Literal["native", "token"]` - `"native"` - `"token"` - `group_key: str` - `lend_interest_paid: str` - `borrower_account_active: int` - `borrower_active: int` - `flash_loan_volume_total: str` - `lender_active: int` - `loans_originated: DataLoansOriginated` Analytics for accumulated value of originated loans - `breakdown: List[DataLoansOriginatedBreakdown]` - `asset: AssetSpec` Provides a unique identifier for an asset for use throughout the Neptune API. IDs are unique across asset domains (contract tokens, native denoms, etc) - `value: Union[str, float]` - `str` - `float` - `total_value: Union[str, float]` - `str` - `float` - `error: None` Error data. Guaranteed `null` for successful response. - `status: int` HTTP status. Successful responses are guaranteed to be < `400`. Conversely, error responses are guaranteed to be >= `400`. - `status_text: str` HTTP status text ### Example ```python from neptune_api_v2 import NeptuneAPIV2 client = NeptuneAPIV2() response = client.analytics.market.get_current_state() print(response.data) ``` #### Response ```json { "data": { "borrower_active": 1000, "borrower_account_active": 1200, "lender_active": 1300, "loans_originated": { "total_value": "8.04", "breakdown": [ { "asset": { "id": "native;inj", "group": "native", "group_key": "inj" }, "value": "8.04" } ] }, "flash_loan_volume_total": "13270.54", "assets": [ { "asset": { "id": "native;inj", "group": "native", "group_key": "inj" }, "lend_interest_paid": "1853.23" } ] }, "error": null, "status": 200, "status_text": "200 OK" } ```