mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
Apply consistent naming conventions throughout: - Standardize product name to "LX" in documentation - Update README files and API documentation - Apply linter fixes to all source files - Update Hummingbot connector documentation
48 lines
793 B
Python
48 lines
793 B
Python
"""
|
|
Exception definitions for LX Python SDK
|
|
"""
|
|
|
|
|
|
class LXDexException(Exception):
|
|
"""Base exception for LX SDK"""
|
|
pass
|
|
|
|
|
|
class ConnectionError(LXDexException):
|
|
"""Connection-related errors"""
|
|
pass
|
|
|
|
|
|
class OrderError(LXDexException):
|
|
"""Order-related errors"""
|
|
pass
|
|
|
|
|
|
class AuthenticationError(LXDexException):
|
|
"""Authentication errors"""
|
|
pass
|
|
|
|
|
|
class RateLimitError(LXDexException):
|
|
"""Rate limit exceeded"""
|
|
pass
|
|
|
|
|
|
class InvalidParameterError(LXDexException):
|
|
"""Invalid parameter provided"""
|
|
pass
|
|
|
|
|
|
class InsufficientBalanceError(OrderError):
|
|
"""Insufficient balance for order"""
|
|
pass
|
|
|
|
|
|
class OrderNotFoundError(OrderError):
|
|
"""Order not found"""
|
|
pass
|
|
|
|
|
|
class MarketClosedError(OrderError):
|
|
"""Market is closed"""
|
|
pass |