PyAlly
PyAlly copied to clipboard
warning codes?
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: