# POST /trade-api/v2/portfolio/orders/{}/amend is deprecated

Kalshi API deprecated POST /trade-api/v2/portfolio/orders/{id}/amend without giving a shutdown date yet.

Kalshi announced on June 18, 2026, that the POST /trade-api/v2/portfolio/orders/{id}/amend endpoint is deprecated without a specific shutdown date. Kalshi API indicated that legacy mutation endpoints are targeted for deprecation between June 18 and June 25. Once shut down, requests made to this endpoint will fail.

## What to use instead

Use POST /trade-api/v2/portfolio/events/orders/{order_id}/amend (Amend Order V2) instead.

- API: Kalshi API (api.elections.kalshi.com)
- Kind: Endpoint removal
- Announced: June 18, 2026
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /trade-api/v2/portfolio/orders/{id}/amend`
- Source: [Announcement](https://docs.kalshi.com/changelog)
- Verified: November 6, 2026, against Kalshi API's own pages
- Page: https://www.okapi.bot/providers/kalshi-api/breaking-changes/post-trade-api-v2-portfolio-orders-amend-is-deprecated/

## Kalshi API's words

> Legacy /portfolio/orders mutation endpoints will be deprecated sometime between June 18 and June 25.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
