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