OrderState

View as MarkdownOpen in Claude

OrderState

FieldTypeDescription
statusstringThe order’s current status.
initMarginBeforedoubleThe account’s current initial margin.
maintMarginBeforedoubleThe account’s current maintenance margin.
equityWithLoanBeforedoubleThe account’s current equity with loan.
initMarginChangedoubleThe change of the account’s initial margin.
maintMarginChangedoubleThe change of the account’s maintenance margin.
equityWithLoanChangedoubleThe change of the account’s equity with loan.
initMarginAfterdoubleThe order’s impact on the account’s initial margin.
maintMarginAfterdoubleThe order’s impact on the account’s maintenance margin.
equityWithLoanAfterdoubleShows the impact the order would have on the account’s equity with loan.
commissionAndFeesdoubleAdditional order cost for fees and commissions
minCommissionAndFeesdoubleLowest possible commission and fee value for the order.
maxCommissionAndFeesdoubleHighest possible commission and fee value for the order.
commissionAndFeesCurrencystringType of currency representing commissions and fee values.
marginCurrencystringType of currency representing margin values.
initMarginBeforeOutsideRTHdoubleThe account’s expected initial margin outside of regular trading hours.
maintMarginBeforeOutsideRTHdoubleThe account’s expected maintenance margin outside of regular trading hours.
equityWithLoanBeforeOutsideRTHdoubleThe account’s expected equity with loan outside of regular trading hours.
initMarginChangeOutsideRTHdoubleThe expected change of the account’s initial margin outside of regular trading hours.
maintMarginChangeOutsideRTHdoubleThe expected change of the account’s maintenance margin outside of regular trading hours.
equityWithLoanChangeOutsideRTHdoubleThe expected change of the account’s equity with loan outside of regular trading hours.
initMarginAfterOutsideRTHdoubleThe order’s expected impact on the account’s initial margin outside of regular trading hours.
maintMarginAfterOutsideRTHdoubleThe order’s expected impact on the account’s maintenance margin outside of regular trading hours.
equityWithLoanAfterOutsideRTHdoubleShows the expected impact the order would have on the account’s equity with loan outside of regular trading hours.
suggestedSizestringSuggested size of the order based on account balances.
rejectReasonstringAudit trail details for why the order was rejected.
orderAllocationsOrderAllocationProto object containing order allocation behaviors.
warningTextstringIf the order is warranted, a descriptive message will be provided.
completedTimestringWhen the order was completed
completedStatusstringThe current status of the order. Supports “Inactive”, “PendingSubmit”, “PreSubmitted”, “Submitted”, “Filled”, “PendingCancel”, “PreCancelled”, “Cancelled”, “WarnState”