---
title: "Get Trading Rules"
method: GET
path: "/connectors/{connector_name}/trading-rules"
tags: ["Connectors"]
---

# Get Trading Rules

`GET /connectors/{connector_name}/trading-rules`

Get trading rules for a connector, optionally filtered by trading pairs.

This endpoint uses the MarketDataService to access non-trading connector instances,
which means no authentication or account setup is required.

Args:
    request: FastAPI request object
    connector_name: Name of the connector (e.g., 'binance', 'binance_perpetual')
    trading_pairs: Optional list of trading pairs to filter by (e.g., ['BTC-USDT', 'ETH-USDT'])

Returns:
    Dictionary mapping trading pairs to their trading rules

Raises:
    HTTPException: 404 if connector not found, 500 for other errors

## Path parameters

- `connector_name` string, required

## Query parameters

- `trading_pairs` string[], nullable — Filter by specific trading pairs

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-08** `92703f48a69e` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-01-18** `2ad95b6a84b2` — 1 breaking
  - the response's body type changed from `object` to no type for status `200`
- **2026-01-18** `576ec8539f76` — 1 breaking
  - the response's body type changed from no type to `object` for status `200`
- **2025-12-20** `1005bcd47280` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hummingbot/apis/hummingbot-api/changes/connectors/:connector_name/trading-rules/get.md)

---

[API](https://skmtc.dev/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.dev/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/5347fe79537f/schema)
