# crypto

Crypto (spec 2026-11-18, P14-T03): buy and sell crypto against a balance at a firm price, positions and activity, payout addresses and crypto payouts approved by the operator. Behind feature flag `otc.customer` and the customer's crypto access.

## GET /crypto/activity

operationId: `listCryptoActivity`
Summary: Crypto activity
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `CryptoActivityItemPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Orders, payouts and holding movements, newest first (keyset paginated).

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/addresses

operationId: `listCryptoAddresses`
Summary: Payout addresses
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `CryptoAddressPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/addresses/{addressId}

operationId: `getCryptoAddress`
Summary: Payout address
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `addressId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `CryptoAddress`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/assets

operationId: `listCryptoAssets`
Summary: Crypto assets
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `CryptoAssetList`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Assets the customer may trade, with increments, payout networks and the latest mark.

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/orders

operationId: `listCryptoOrders`
Summary: Crypto orders
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `CryptoOrderPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/orders/{orderId}

operationId: `getCryptoOrder`
Summary: Crypto order
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `orderId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `CryptoOrder`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/positions

operationId: `listCryptoPositions`
Summary: Crypto positions
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `CryptoPositionList`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

The customer's holdings with the latest mark price and value.

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/statements

operationId: `listCryptoStatements`
Summary: Crypto statements
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query)
Responses: 200 `CryptoStatementPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Monthly (generated on the 1st for the previous month for customers with crypto) and on-demand crypto statements, newest period first (keyset paginated). Available while the customer's crypto access is off.

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/statements/{statementId}/download

operationId: `downloadCryptoStatement`
Summary: Download a crypto statement
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `statementId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `DownloadLink`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

A short-lived link to the PDF; `404` while it is being generated.

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/status

operationId: `getCryptoStatus`
Summary: Crypto availability
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `CryptoStatus`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

Whether Buy, Sell and Withdraw are available and why not: `customer_disabled` (staff have not enabled the customer), `operator_disabled` (the operator's customer section is off) or `no_connection` (no active crypto connection).

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/withdrawals

operationId: `listCryptoWithdrawals`
Summary: Crypto payouts
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `X-Tenant-Id` (header, required), `X-Request-Id` (header), `cursor` (query), `limit` (query), `sort` (query), `filter` (query)
Responses: 200 `CryptoWithdrawalPage`, 400 `Problem`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).

## GET /crypto/withdrawals/{withdrawalId}

operationId: `getCryptoWithdrawal`
Summary: Crypto payout
API key scopes: `crypto:read`
Callable by: customer keys
Parameters: `withdrawalId` (path, required), `X-Tenant-Id` (header, required), `X-Request-Id` (header)
Responses: 200 `CryptoWithdrawal`, 401 `Problem`, 403 `Problem`, 404 `Problem`, 429 `Problem`, default `Problem`

**Feature flag:** `otc.customer`; returns `404` with problem type `feature-disabled` when the flag is off for the operator.

**API key scopes:** `crypto:read` (customer-level keys (`X-Tenant-Id` = the key's customer)).
