unofficial_tabdeal_api.exceptions ================================= .. py:module:: unofficial_tabdeal_api.exceptions .. autoapi-nested-parse:: This module holds the custom exceptions. Exceptions ---------- .. autoapisummary:: unofficial_tabdeal_api.exceptions.Error unofficial_tabdeal_api.exceptions.AuthorizationError unofficial_tabdeal_api.exceptions.RequestError unofficial_tabdeal_api.exceptions.MarketNotFoundError unofficial_tabdeal_api.exceptions.MarginTradingNotActiveError unofficial_tabdeal_api.exceptions.NotEnoughBalanceError unofficial_tabdeal_api.exceptions.NotEnoughCreditAvailableError unofficial_tabdeal_api.exceptions.RequestedParametersInvalidError unofficial_tabdeal_api.exceptions.TransferAmountOverAccountBalanceError unofficial_tabdeal_api.exceptions.TransferFromMarginAssetToWalletNotPossibleError unofficial_tabdeal_api.exceptions.MarginPositionNotFoundError unofficial_tabdeal_api.exceptions.BreakEvenPriceNotFoundError unofficial_tabdeal_api.exceptions.OrderNotFoundInSpecifiedHistoryRangeError unofficial_tabdeal_api.exceptions.MarginOrderNotFoundInActiveOrdersError Module Contents --------------- .. py:exception:: Error(status_code) Bases: :py:obj:`Exception` Exception raised for an error. .. py:attribute:: status_code .. py:exception:: AuthorizationError(status_code) Bases: :py:obj:`Error` Exception raised when Authorization token is invalid or expired. .. py:exception:: RequestError(*, status_code, server_response) Bases: :py:obj:`Error` Exception raised when the server could not understand the request. .. py:attribute:: server_response .. py:exception:: MarketNotFoundError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when requested market is not found on Tabdeal platform. .. py:exception:: MarginTradingNotActiveError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when requested market is not available for margin trading on Tabdeal. .. py:exception:: NotEnoughBalanceError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when asset balance is insufficient to perform the requested order. .. py:exception:: NotEnoughCreditAvailableError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when requested borrow amount is over available credit. .. py:exception:: RequestedParametersInvalidError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when requested parameters are invalid. .. py:exception:: TransferAmountOverAccountBalanceError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when requested transfer amount is over the account available balance. .. py:exception:: TransferFromMarginAssetToWalletNotPossibleError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when requested transfer is not possible due to unknown reason. .. py:exception:: MarginPositionNotFoundError(*, status_code, server_response) Bases: :py:obj:`RequestError` Exception raised when can't set SL/TP because margin position is not found. .. py:exception:: BreakEvenPriceNotFoundError Bases: :py:obj:`Exception` Exception raised when break even price point is not found. .. py:exception:: OrderNotFoundInSpecifiedHistoryRangeError Bases: :py:obj:`Exception` Exception raised when order is not found in specified history range. .. py:exception:: MarginOrderNotFoundInActiveOrdersError Bases: :py:obj:`Exception` Exception raised when requested margin order is not in active orders list.