> ## 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.

# Kraken

For more information regarding the endpoints, please visit Kraken's website: [Kraken API Docs](https://docs.kraken.com/api/).

# Prefix:

No prefix is required for Kraken, an example URL will therefore look like: `https://api.uniblock.dev/direct/v1/Kraken` + `/[Kraken_endpoint]`.

# Example:

<CodeGroup>
  ```bash theme={null}
  curl --request GET \
    --url https://api.uniblock.dev/direct/v1/Kraken/0/public/Ticker?pair=XBTUSD \
    --header 'accept: application/json' \
    --header 'x-api-key: YOUR_UNIBLOCK_API_KEY'
  ```
</CodeGroup>

# Supported Endpoints:

## Spot REST API

### Market Data

| Method | Path                    | Description                                                                                    |
| ------ | ----------------------- | ---------------------------------------------------------------------------------------------- |
| GET    | `0/public/Time`         | Get the server's time.                                                                         |
| GET    | `0/public/SystemStatus` | Get the current system status or trading mode.                                                 |
| GET    | `0/public/Assets`       | Get information about the assets that are available for deposit, withdrawal, trading and earn. |
| GET    | `0/public/AssetPairs`   | Get tradable asset pairs.                                                                      |
| GET    | `0/public/Ticker`       | Get ticker information for all or requested markets.                                           |
| GET    | `0/public/OHLC`         | Retrieve OHLC market data.                                                                     |
| GET    | `0/public/Depth`        | Returns level 2 (L2) order book data with aggregated order quantities at each price level.     |
| GET    | `0/public/GroupedBook`  | Aggregates order book volume over a specified tick range for liquidity summaries.              |
| GET    | `0/public/Trades`       | Returns the last 1000 trades by default.                                                       |
| GET    | `0/public/Spread`       | Returns the last \~200 top-of-book spreads for a given pair.                                   |

### Transparency

| Method | Path                 | Description                                                                                                                  |
| ------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| GET    | `0/public/PreTrade`  | Returns the top 10 aggregated price levels in the order book for each trading pair.                                          |
| GET    | `0/public/PostTrade` | Returns a list of trades on the spot exchange. If no filters are specified, the last 1000 trades for all pairs are returned. |

## Futures REST API

### Market Data

| Method | Path                                  | Description                                                                                                                          |
| ------ | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| GET    | `derivatives/api/v3/history`          | Returns the most recent 100 trades before the specified `lastTime`, up to the past 7 days or the most recent trading engine restart. |
| GET    | `derivatives/api/v3/orderbook`        | Returns the full non-cumulative order book for currently listed Futures contracts.                                                   |
| GET    | `derivatives/api/v3/tickers`          | Returns current market data for all currently listed Futures contracts and indices.                                                  |
| GET    | `derivatives/api/v3/tickers/{symbol}` | Get market data for a contract or index by symbol.                                                                                   |

### Instrument Details

| Method | Path                                             | Description                                                                                    |
| ------ | ------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| GET    | `derivatives/api/v3/instruments`                 | Returns specifications for all currently listed markets and indices.                           |
| GET    | `derivatives/api/v3/trading/instruments`         | Returns specifications for all currently accessible markets and indices.                       |
| GET    | `derivatives/api/v3/instruments/status`          | Returns price dislocation and volatility details for all markets.                              |
| GET    | `derivatives/api/v3/instruments/{symbol}/status` | Returns price dislocation and volatility details for a given market.                           |
| GET    | `derivatives/api/v3/openorders`                  | Returns information on all open orders for all Futures contracts.                              |
| GET    | `derivatives/api/v3/pnlpreferences`              | Returns PNL currency preferences used to determine which currency pays out realized PNL gains. |

### Account Information

| Method | Path                                                | Description                                                                                                                                            |
| ------ | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| GET    | `derivatives/api/v3/accounts`                       | Returns account balances, instrument balances, margin requirements, margin trigger estimates, available funds, open-position PNL, and portfolio value. |
| GET    | `derivatives/api/v3/openpositions`                  | Returns size and average entry price for all open Futures positions, including matured contracts that have not yet settled.                            |
| GET    | `derivatives/api/v3/unwindqueue`                    | Returns the percentile of the open position in case of unwinding.                                                                                      |
| GET    | `derivatives/api/v3/portfolio-margining/parameters` | Retrieve current portfolio margin calculation parameters.                                                                                              |

### Assignment Program

| Method | Path                                           | Description                                                  |
| ------ | ---------------------------------------------- | ------------------------------------------------------------ |
| GET    | `derivatives/api/v3/assignmentprogram/current` | Returns information on currently active assignment programs. |
| GET    | `derivatives/api/v3/assignmentprogram/history` | Returns assignment program preference change history.        |

### Fee Schedules

| Method | Path                                      | Description                                         |
| ------ | ----------------------------------------- | --------------------------------------------------- |
| GET    | `derivatives/api/v3/feeschedules`         | Lists all fee schedules.                            |
| GET    | `derivatives/api/v3/feeschedules/volumes` | Returns fee schedule volumes for each fee schedule. |

### General

| Method | Path                               | Description                      |
| ------ | ---------------------------------- | -------------------------------- |
| GET    | `derivatives/api/v3/notifications` | Provides platform notifications. |

### Fills

| Method | Path                       | Description                                                 |
| ------ | -------------------------- | ----------------------------------------------------------- |
| GET    | `derivatives/api/v3/fills` | Returns filled order information for all Futures contracts. |

### Historical Funding Rates

| Method | Path                                          | Description                                          |
| ------ | --------------------------------------------- | ---------------------------------------------------- |
| GET    | `derivatives/api/v3/historical-funding-rates` | Returns historical funding rates for a given market. |

### Trading Settings

| Method | Path                                     | Description                                            |
| ------ | ---------------------------------------- | ------------------------------------------------------ |
| GET    | `derivatives/api/v3/self-trade-strategy` | Returns the account-wide self-trade matching strategy. |

### Subaccounts

| Method | Path                                                            | Description                                                         |
| ------ | --------------------------------------------------------------- | ------------------------------------------------------------------- |
| GET    | `derivatives/api/v3/subaccount/{subaccountUid}/trading-enabled` | Returns trading capability information for a given subaccount.      |
| GET    | `derivatives/api/v3/subaccounts`                                | Returns information about subaccounts, including balances and UIDs. |

### RFQs

| Method | Path                                  | Description                                                            |
| ------ | ------------------------------------- | ---------------------------------------------------------------------- |
| GET    | `derivatives/api/v3/rfqs`             | Retrieve all currently open RFQs.                                      |
| GET    | `derivatives/api/v3/rfqs/{rfqUid}`    | Retrieve a specific open RFQ by its unique identifier.                 |
| GET    | `derivatives/api/v3/rfqs/open-offers` | Retrieve all open offers for the account on currently open RFQs.       |
| GET    | `derivatives/api/v3/rfqs/open-rfqs`   | Retrieve all currently open RFQs created by the authenticated account. |

## Account History

| Method | Path                           | Description                                                |
| ------ | ------------------------------ | ---------------------------------------------------------- |
| GET    | `api/history/v3/executions`    | Lists executions and trades for the authenticated account. |
| GET    | `api/history/v3/orders`        | Lists order events for the authenticated account.          |
| GET    | `api/history/v3/triggers`      | Lists trigger events for the authenticated account.        |
| GET    | `api/history/v3/positions`     | Lists position events for the authenticated account.       |
| GET    | `api/history/v3/account-log`   | Lists account log entries, paged by timestamp or ID.       |
| GET    | `api/history/v3/accountlogcsv` | Lists recent account log entries in CSV format.            |

## Market History

| Method | Path                                           | Description                      |
| ------ | ---------------------------------------------- | -------------------------------- |
| GET    | `api/history/v3/market/{tradeable}/executions` | Lists trades for a market.       |
| GET    | `api/history/v3/market/{tradeable}/orders`     | Lists order events for a market. |
| GET    | `api/history/v3/market/{tradeable}/price`      | Lists price events for a market. |

## Candles

| Method | Path                                             | Description                                                                  |
| ------ | ------------------------------------------------ | ---------------------------------------------------------------------------- |
| GET    | `api/charts/v1`                                  | Returns all available tick types to use with the markets endpoint.           |
| GET    | `api/charts/v1/{tick_type}`                      | Returns markets available for the specified tick type.                       |
| GET    | `api/charts/v1/{tick_type}/{symbol}`             | Returns candle resolutions available for the specified tick type and market. |
| GET    | `api/charts/v1/:tick_type/{symbol}/{resolution}` | Returns candles for the specified tick type, market, and resolution.         |

## Analytics

| Method | Path                                                | Description                                         |
| ------ | --------------------------------------------------- | --------------------------------------------------- |
| GET    | `api/charts/v1/analytics/liquidity-pool`            | Get liquidity pool statistics, including USD value. |
| GET    | `api/charts/v1/analytics/{symbol}/{analytics_type}` | Returns analytics data divided into time buckets.   |
