nexustrader.error

NexusTraderError

exception nexustrader.error.NexusTraderError(message)[source]

Bases: Exception

__init__(message)[source]
exception nexustrader.error.EngineBuildError(message)[source]

Bases: NexusTraderError

__init__(message)[source]
exception nexustrader.error.SubscriptionError(message)[source]

Bases: NexusTraderError

__init__(message)[source]
exception nexustrader.error.KlineSupportedError(message)[source]

Bases: NexusTraderError

__init__(message)[source]
exception nexustrader.error.StrategyBuildError(message)[source]

Bases: NexusTraderError

__init__(message)[source]
exception nexustrader.error.OrderError(message)[source]

Bases: NexusTraderError

__init__(message)[source]
exception nexustrader.error.PositionModeError(message)[source]

Bases: NexusTraderError

__init__(message)[source]
exception nexustrader.error.WsRequestNotSentError(message='WebSocket request not sent: connection unavailable')[source]

Bases: NexusTraderError

Raised when a WebSocket request could not be sent because the socket is not connected.

__init__(message='WebSocket request not sent: connection unavailable')[source]
exception nexustrader.error.WsAckTimeoutError(oid, timeout)[source]

Bases: NexusTraderError

Raised when no ACK is received from the exchange within the timeout window.

__init__(oid, timeout)[source]
exception nexustrader.error.WsAckRejectedError(oid, reason)[source]

Bases: NexusTraderError

Raised when the exchange explicitly rejects a WebSocket order/cancel request.

__init__(oid, reason)[source]