> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Allium

For more information regarding the endpoints, please visit Allium's API documentation: [Allium API Docs](https://docs.allium.so/api/overview).

# Prefix

No prefix is required for Allium. An example URL will therefore look like: `https://api.uniblock.dev/direct/v1/Allium/path/to/endpoint`.

# Authentication

Allium uses API key authentication. If an Allium API key is stored in your Uniblock project, Direct API will automatically send it as an `X-API-KEY` header.

# Example

<CodeGroup>
  ```bash theme={null}
  curl --request GET \
    --url 'https://api.uniblock.dev/direct/v1/Allium/api/v1/developer/tokens?chain=ethereum&limit=1' \
    --header 'accept: application/json' \
    --header 'x-api-key: YOUR_UNIBLOCK_API_KEY'
  ```
</CodeGroup>

# Supported Endpoints

## Developer API

| Method | Path                                                           | Description                                   |
| ------ | -------------------------------------------------------------- | --------------------------------------------- |
| GET    | `api/v1/developer/assets`                                      | List supported assets.                        |
| POST   | `api/v1/developer/assets/batch`                                | Get multiple assets in one request.           |
| POST   | `api/v1/developer/prices`                                      | Fetch latest token prices.                    |
| POST   | `api/v1/developer/prices/at-timestamp`                         | Fetch token prices at a timestamp.            |
| POST   | `api/v1/developer/prices/history`                              | Fetch token price history.                    |
| POST   | `api/v1/developer/prices/stats`                                | Fetch token price statistics.                 |
| GET    | `api/v1/developer/tokens`                                      | List tokens.                                  |
| GET    | `api/v1/developer/tokens/search`                               | Search tokens.                                |
| POST   | `api/v1/developer/tokens/chain-address`                        | Fetch a token by chain and address.           |
| POST   | `api/v1/developer/tokens/transfers`                            | Fetch fungible token transfers.               |
| POST   | `api/v1/developer/wallet/balances`                             | Fetch latest fungible token balances.         |
| POST   | `api/v1/developer/wallet/balances/history`                     | Fetch historical fungible token balances.     |
| POST   | `api/v1/developer/wallet/transactions`                         | Fetch wallet transactions.                    |
| POST   | `api/v1/developer/holdings/history`                            | Fetch holdings history.                       |
| POST   | `api/v1/developer/holdings/pnl`                                | Fetch current wallet PnL.                     |
| POST   | `api/v1/developer/holdings/pnl/history`                        | Fetch historical wallet PnL.                  |
| POST   | `api/v1/developer/holdings/pnl-by-token`                       | Fetch current wallet and token PnL.           |
| POST   | `api/v1/developer/holdings/pnl-by-token/history`               | Fetch historical wallet and token PnL.        |
| POST   | `api/v1/developer/defi/positions`                              | Fetch DeFi positions.                         |
| POST   | `api/v1/developer/defi/nav`                                    | Get DeFi net asset value.                     |
| POST   | `api/v1/developer/defi/account-health`                         | Get DeFi account health.                      |
| POST   | `api/v1/developer/hyperliquid/info`                            | Fetch Hyperliquid account information.        |
| POST   | `api/v1/developer/hyperliquid/fills`                           | Fetch Hyperliquid fills.                      |
| POST   | `api/v1/developer/hyperliquid/order-history`                   | Fetch Hyperliquid order history.              |
| POST   | `api/v1/developer/hyperliquid/order-status`                    | Fetch Hyperliquid order status.               |
| POST   | `api/v1/developer/hyperliquid/orderbook-snapshot`              | Fetch a Hyperliquid orderbook snapshot.       |
| POST   | `api/v1/developer/hyperliquid/user-funding`                    | Fetch Hyperliquid user funding.               |
| POST   | `api/v1/developer/hyperliquid/user-non-funding-ledger-updates` | Fetch Hyperliquid non-funding ledger updates. |
| GET    | `api/v1/developer/availability`                                | Get chain endpoint availability.              |

## Explorer API

| Method | Path                                             | Description                           |
| ------ | ------------------------------------------------ | ------------------------------------- |
| POST   | `api/v1/explorer/queries`                        | Create an Explorer query.             |
| PATCH  | `api/v1/explorer/queries/{query_id}`             | Update an Explorer query.             |
| POST   | `api/v1/explorer/queries/{query_id}/run-async`   | Run an Explorer query asynchronously. |
| GET    | `api/v1/explorer/queries/{query_id}/runs/latest` | Fetch the latest query run.           |
| GET    | `api/v1/explorer/query-runs/{run_id}/status`     | Fetch query run status.               |
| GET    | `api/v1/explorer/query-runs/{run_id}/results`    | Fetch query run results.              |
| POST   | `api/v1/explorer/query-runs/{run_id}/cancel`     | Cancel a query run.                   |

## Account API

| Method | Path                                | Description                 |
| ------ | ----------------------------------- | --------------------------- |
| GET    | `api/v1/account/organization/usage` | Get organization API usage. |

## Datastreams API

| Method | Path                                                      | Description                          |
| ------ | --------------------------------------------------------- | ------------------------------------ |
| GET    | `api/v1/datastreams/data-sources`                         | Fetch all datastream data sources.   |
| POST   | `api/v1/datastreams/data-sources`                         | Create a datastream data source.     |
| GET    | `api/v1/datastreams/data-sources/{data_source_id}`        | Fetch a datastream data source.      |
| PATCH  | `api/v1/datastreams/data-sources/{data_source_id}`        | Update a datastream data source.     |
| DELETE | `api/v1/datastreams/data-sources/{data_source_id}`        | Delete a datastream data source.     |
| GET    | `api/v1/datastreams/data-sources/{data_source_id}/values` | Fetch datastream data source values. |
| GET    | `api/v1/datastreams/filters`                              | Fetch all datastream filters.        |
| POST   | `api/v1/datastreams/filters`                              | Create a datastream filter.          |
| GET    | `api/v1/datastreams/filters/{filter_id}`                  | Fetch a datastream filter.           |
| PATCH  | `api/v1/datastreams/filters/{filter_id}`                  | Update a datastream filter.          |
| DELETE | `api/v1/datastreams/filters/{filter_id}`                  | Delete a datastream filter.          |
| GET    | `api/v1/datastreams/workflows`                            | Fetch all datastream workflows.      |
| POST   | `api/v1/datastreams/workflows`                            | Create a datastream workflow.        |
| GET    | `api/v1/datastreams/workflows/{workflow_id}`              | Fetch a datastream workflow.         |
| PATCH  | `api/v1/datastreams/workflows/{workflow_id}`              | Update a datastream workflow.        |
| DELETE | `api/v1/datastreams/workflows/{workflow_id}`              | Delete a datastream workflow.        |
