Skip to main content

Module RejectCode

Module RejectCode 

Source
Expand description

Reject codes from exchange (matches cc_proto::RejectClass).

Constants§

AUTH
Authentication error (invalid API key/secret)
BAD_VENUE
Venue ID not in registered venue set (multi-venue)
DAILY_LOSS_LIMIT
Daily P&L loss limit breached — algo paused
EXCHANGE_BUSY
Exchange temporarily unavailable
INSUFFICIENT_BALANCE
Insufficient balance/funds
INVALID_PARAMS
Invalid parameters (price, qty, symbol)
KILL_SWITCH
Kill switch triggered
NETWORK
Network error
POSITION_LIMIT
Position limit exceeded
PRICE_DEVIATION
Fat-finger: price deviates too far from reference (best bid/ask)
RATE_LIMIT
Exchange rate limit hit
RISK
Risk check failed
STALE_VENUE
Target venue data is stale (multi-venue)
UNKNOWN
Unknown error

Functions§

to_str
Get human-readable description for a reject code.