Connectors

Get Trading Rules

Changed on

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

get/connectors/{connector_name}/trading-rules

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/connectors/{connector_name}/trading-rules
  • Auth
    HTTP basic

Path parameters

connector_namestring required

Query parameters

trading_pairsstring[] nullable

Filter by specific trading pairs

Response

Successful Response

unknown required

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the response's body type changed from object to no type for status