# Gate API v4 — Spot & Margin

**Canonical:** https://apis.io/apis/gate-io/gate-api-v4-spot-margin/  
**Provider:** Gate.io — https://apis.io/providers/gate-io/  
**Base URL:** https://api.gateio.ws/api/v4  
**Documentation:** https://www.gate.com/docs/developers/apiv4/en/

Gate API v4 — Spot & Margin is one of 5 APIs that [Gate.io](https://apis.io/providers/gate-io/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Spot Trading, Margin Trading, and Order. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

Public and authenticated REST endpoints for spot and margin trading, including order placement, cancellation, order-book queries, trade history, and account balance management.

## Machine-readable artifacts (3)

- **Documentation** — https://www.gate.com/docs/developers/apiv4/en/
- **OpenAPI** — https://raw.githubusercontent.com/gateio/rest-v4/master/swagger.json
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/gate-io/refs/heads/main/apis.yml

## Other Gate.io APIs (4)

- [Gate API v4 — Futures & Perpetuals](https://apis.io/apis/gate-io/gate-api-v4-futures-perpetuals/)
- [Gate API v4 — Options](https://apis.io/apis/gate-io/gate-api-v4-options/)
- [Gate API v4 — Wallet & Account](https://apis.io/apis/gate-io/gate-api-v4-wallet-account/)
- [Gate WebSocket API v4](https://apis.io/apis/gate-io/gate-websocket-api-v4/)

## Tags

Spot Trading, Margin Trading, Order

---

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