alienbrett / PyAlly

Ally Invest API Module for Python3
https://alienbrett.github.io/PyAlly/
MIT License
57 stars 28 forks source link

warning codes? #78

Open faangbait opened 1 year ago

faangbait commented 1 year ago

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: