# Coinbase Commerce Trading API

**Canonical:** https://apis.io/apis/commerce-coinbase/commerce-coinbase-trading-api/  
**Provider:** Coinbase Commerce — https://apis.io/providers/commerce-coinbase/  
**Base URL:** https://api.commerce.coinbase.com  
**Documentation:** https://commerce.coinbase.com/docs/api

Coinbase Commerce Trading API is one of 13 APIs that [Coinbase Commerce](https://apis.io/providers/commerce-coinbase/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Trading. The published artifact set on APIs.io includes an OpenAPI specification.

The Trading API from Coinbase Commerce — 32 operation(s) for trading.

## Operations (32)

| Method | Path | Summary |
|---|---|---|
| GET | `/private/buy` | Get private buy |
| GET | `/private/cancel` | Get private cancel |
| GET | `/private/cancel_all` | Get private cancel all |
| GET | `/private/cancel_all_by_currency` | Get private cancel all by currency |
| GET | `/private/cancel_all_by_currency_pair` | Get private cancel all by currency pair |
| GET | `/private/cancel_all_by_instrument` | Get private cancel all by instrument |
| GET | `/private/cancel_all_by_kind_or_type` | Get private cancel all by kind or type |
| GET | `/private/cancel_by_label` | Get private cancel by label |
| GET | `/private/close_position` | Get private close position |
| GET | `/private/edit` | Get private edit |
| GET | `/private/edit_by_label` | Get private edit by label |
| GET | `/private/get_margins` | Get private get margins |
| GET | `/private/get_max_order_size` | Get private get max order size |
| GET | `/private/get_open_orders` | Get private get open orders |
| GET | `/private/get_open_orders_by_currency` | Get private get open orders by currency |
| GET | `/private/get_open_orders_by_instrument` | Get private get open orders by instrument |
| GET | `/private/get_open_orders_by_label` | Get private get open orders by label |
| GET | `/private/get_order_history_by_currency` | Get private get order history by currency |
| GET | `/private/get_order_history_by_instrument` | Get private get order history by instrument |
| GET | `/private/get_order_margin_by_ids` | Get private get order margin by ids |
| GET | `/private/get_order_state` | Get private get order state |
| GET | `/private/get_order_state_by_label` | Get private get order state by label |
| GET | `/private/get_settlement_history_by_currency` | Get private get settlement history by currency |
| GET | `/private/get_settlement_history_by_instrument` | Get private get settlement history by instrument |
| GET | `/private/get_trigger_order_history` | Get private get trigger order history |
| GET | `/private/get_user_trades_by_currency` | Get private get user trades by currency |
| GET | `/private/get_user_trades_by_currency_and_time` | Get private get user trades by currency and time |
| GET | `/private/get_user_trades_by_instrument` | Get private get user trades by instrument |
| GET | `/private/get_user_trades_by_instrument_and_time` | Get private get user trades by instrument and time |
| GET | `/private/get_user_trades_by_order` | Get private get user trades by order |
| GET | `/private/sell` | Get private sell |
| GET | `/private/set_leverage` | Get private set leverage |

## Machine-readable artifacts (1)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/commerce-coinbase/refs/heads/main/openapi/commerce-coinbase-trading-api-openapi.yml

## Other Coinbase Commerce APIs (12)

- [Coinbase Commerce Charges API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-charges-api/)
- [Coinbase Commerce Checkouts API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-checkouts-api/)
- [Coinbase Commerce Events API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-events-api/)
- [Coinbase Commerce Webhooks API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-webhooks-api/)
- [Coinbase Commerce Account Management API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-account-management-api/)
- [Coinbase Commerce Authentication API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-authentication-api/)
- [Coinbase Commerce Combo Books API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-combo-books-api/)
- [Coinbase Commerce Market Data API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-market-data-api/)
- [Coinbase Commerce Session Management API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-session-management-api/)
- [Coinbase Commerce Subscription Management API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-subscription-management-api/)
- [Coinbase Commerce Supporting API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-supporting-api/)
- [Coinbase Commerce Wallet API](https://apis.io/apis/commerce-coinbase/commerce-coinbase-wallet-api/)

## Tags

Trading

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/commerce-coinbase/commerce-coinbase-trading-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/commerce-coinbase/.
