# HitBTC Margin Orders API

**Canonical:** https://apis.io/apis/hitbtc/hitbtc-margin-orders-api/  
**Provider:** HitBTC — https://apis.io/providers/hitbtc/  
**Base URL:** https://api.hitbtc.com/api/3  
**Documentation:** https://api.hitbtc.com/

HitBTC Margin Orders API is one of 61 APIs that [HitBTC](https://apis.io/providers/hitbtc/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 12 JSON Schema definitions. Tagged areas include Margin Orders. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and 12 JSON Schemas.

The Margin Orders API from HitBTC — 3 operation(s) for margin orders.

## Operations (10)

| Method | Path | Summary |
|---|---|---|
| GET | `/margin/order` | Get all margin orders |
| POST | `/margin/order` | Create a new margin order |
| DELETE | `/margin/order` | Cancel all margin orders |
| GET | `/margin/order/{clientOrderId}` | Get active margin order |
| PUT | `/margin/order/{clientOrderId}` | Create a new margin order |
| PATCH | `/margin/order/{clientOrderId}` | Replace margin order |
| DELETE | `/margin/order/{clientOrderId}` | Cancel order |
| GET | `/margin/order/{client_order_id}` | Get a margin order |
| PATCH | `/margin/order/{client_order_id}` | Replace a margin order |
| DELETE | `/margin/order/{client_order_id}` | Cancel a margin order |

## Machine-readable artifacts (15)

- **OpenAPI** — https://artifacts.apis.io/hitbtc/openapi/hitbtc-margin-orders-api-openapi.yml
- **Documentation** — https://api.hitbtc.com/
- **APIReference** — https://api.hitbtc.com/api/3/explore/
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-position-history-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-withdrawal-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-report-reason-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-subaccount-created-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-margin-params-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-margin-settings-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-history-order-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-wallet-transaction-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-user-order-info-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-market-data-currency-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-new-order-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/hitbtc/json-schema/hitbtc-trading-history-trade-schema.json

## Other HitBTC APIs (12)

- [HitBTC Account API](https://apis.io/apis/hitbtc/hitbtc-account-api/)
- [HitBTC Addresses API](https://apis.io/apis/hitbtc/hitbtc-addresses-api/)
- [HitBTC Airdrops API](https://apis.io/apis/hitbtc/hitbtc-airdrops-api/)
- [HitBTC Amount Locks API](https://apis.io/apis/hitbtc/hitbtc-amount-locks-api/)
- [HitBTC API Keys API](https://apis.io/apis/hitbtc/hitbtc-api-keys-api/)
- [HitBTC Candles API](https://apis.io/apis/hitbtc/hitbtc-candles-api/)
- [HitBTC Conversions API](https://apis.io/apis/hitbtc/hitbtc-conversions-api/)
- [HitBTC Crypto Address API](https://apis.io/apis/hitbtc/hitbtc-crypto-address-api/)
- [HitBTC Currencies API](https://apis.io/apis/hitbtc/hitbtc-currencies-api/)
- [HitBTC Currency API](https://apis.io/apis/hitbtc/hitbtc-currency-api/)
- [HitBTC Exchange Balances API](https://apis.io/apis/hitbtc/hitbtc-exchange-balances-api/)
- [HitBTC Funding History API](https://apis.io/apis/hitbtc/hitbtc-funding-history-api/)

## Tags

Margin Orders

---

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