---
title: "Enable or Disable Extended Hours Trading"
method: POST
path: "/api/extended_hours/opt_in"
tags: ["Account Management"]
---

# Enable or Disable Extended Hours Trading

`POST /api/extended_hours/opt_in`

## Request

- Base URL: `https://powered-by-bamboo-sandbox.investbamboo.com`
- URL: `https://powered-by-bamboo-sandbox.investbamboo.com/api/extended_hours/opt_in`
- Auth: none declared

This endpoint enables you to give your users the option to enable or disable Extended Hours trading for their accounts.

## Request body

- object
  - `extended_hours_status` boolean, required: Boolean value indicating the desired extended hours status: - `true` → Sets status to `ENABLED` - `false` → Sets status to `DISABLED`
  - `market` string, required: Market for which extended hours trading is being set.

## Response `200`

Extended hours status updated successfully

- object
  - `message` string
  - `extended_hours_status` 'ENABLED' | 'DISABLED'

## Other responses

- `404`: Resource not found
- `422`: Error response

---

[API](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api.md) - [All operations](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/investbamboo/apis/investbamboo-bamboo-api/revisions/063521e8d924?raw)
