asynctradier.exceptions package

Module contents

exception asynctradier.exceptions.APINotAvailable(msg: str)[source]

Bases: Exception

Exception raised when the API is not available.

msg

The error message.

Type:

str

exception asynctradier.exceptions.BadRequestException(code: int, msg: str)[source]

Bases: Exception

Exception raised when a bad request is made.

code

The HTTP status code of the bad request.

Type:

int

msg

The error message.

Type:

str

exception asynctradier.exceptions.InvalidDateFormat(date: str)[source]

Bases: Exception

Exception raised when the date format is not valid.

date

The invalid date.

Type:

str

exception asynctradier.exceptions.InvalidExiprationDate(expiration: str)[source]

Bases: Exception

Exception raised when the expiration date is not valid.

expiration

The invalid expiration date.

Type:

str

exception asynctradier.exceptions.InvalidOptionType(option_type: str)[source]

Bases: Exception

Exception raised when the option type is not valid.

option_type

The invalid option type.

Type:

str

exception asynctradier.exceptions.InvalidParameter(msg: str)[source]

Bases: Exception

Exception raised when a parameter is not valid.

msg

The error message.

Type:

str

exception asynctradier.exceptions.InvalidStrikeType(strike: any)[source]

Bases: Exception

Exception raised when the strike type is not valid.

strike

The invalid strike type.

Type:

any

exception asynctradier.exceptions.MissingRequiredParameter(msg: str)[source]

Bases: Exception

Exception raised when a required parameter is missing.

msg

The error message.

Type:

str