# Pockets

Use these endpoints to view Pocket information. Jiko Pockets consist of a bank account and a brokerage account. When funds are deposited into a Pocket, they're immediately invested in T-bills.

 - [GET /api/v2/pockets/](https://docs.jiko.io/products/customer-api/reference/pockets/list_customer_pockets_api_v2_pockets__get.md): This endpoint lists all the pockets for a given customer. It returns a `Pockets` object which is a paginated list of `Pocket` objects.
 - [POST /api/v2/pockets/](https://docs.jiko.io/products/customer-api/reference/pockets/create_customer_pocket_api_v2_pockets__post.md): This endpoint creates a new pocket for a customer. The request body requires a `CreatePocketRequest` object, specifying the `trading_strategy_id` and a `pocket_name`. It returns the newly created `Poc
 - [GET /api/v2/pockets/{pocket_id}/](https://docs.jiko.io/products/customer-api/reference/pockets/get_customer_pocket_api_v2_pockets__pocket_id___get.md): This endpoint retrieves the details of a specific pocket, and returns a `Pocket` object with detailed portfolio information.
 - [PATCH /api/v2/pockets/{pocket_id}/](https://docs.jiko.io/products/customer-api/reference/pockets/update_pocket_api_v2_pockets__pocket_id___patch.md): This endpoint updates a pocket's information, such as its `name` or `status` (e.g., closing a pocket). If the intent is to close a pocket, then there are two requirements: The pocket needs to be empty
 - [GET /api/v2/earnings/](https://docs.jiko.io/products/customer-api/reference/pockets/get-customer-earnings-v2.md): This endpoint returns current-period earnings for the customer's pockets in a single call: one entry per pocket plus their exact aggregate. The `aggregate` is the field-wise sum of the per-pocket entr
 - [GET /api/v2/pockets/{pocket_id}/earnings/](https://docs.jiko.io/products/customer-api/reference/pockets/get_single_pocket_earnings_api_v2_pockets__pocket_id__earnings__get.md): This endpoint returns pocket earnings for a single pocket for a specified datetime period. - Optionally pre-defined ranges are defined as such: - ytd (Year-to-date) From January 1st of the current y
