PyAlly icon indicating copy to clipboard operation
PyAlly copied to clipboard

warning codes?

Open faangbait opened this issue 1 year ago • 0 comments

Can we compile a list of the (undocumented) warning codes? Here's what I've got so far, but I'm missing a few:


type WarningCode uint16

const (
	DuplicateOrder       WarningCode = 004 // Instrmt has a pending/open order
	UnsettledFunds       WarningCode = 233 // No closing until funds settle (free riding)
	HigherMarginReq      WarningCode = 255 // Margin calls at 50% instead of 30%
	NotMarginable        WarningCode = 367 // Cash trades only
	MktOrderWhileClosed  WarningCode = 466 // Fills at open; slippage risk
	ExchangeClosed       WarningCode = 548 // Extended hours trading (i think)
	ForeignSettlementFee WarningCode = 563 // Indicates a $50 fee surcharge
)

Apologies in advance for being in the wrong language and just an enum instead of having the warningtext. :tired_face:

faangbait avatar May 18 '23 05:05 faangbait