Package com. seansoper. batil. brokers. etrade. api
Classes that map nearly 1-to-1 against the E*TRADE API.
Types
Account
Link copied to clipboard
data class Account(accountId: String, accountIdKey: String, accountType: AccountType, institutionType: String?, closedDateRaw: Int, mode: AccountMode?, description: String?, name: String?, status: AccountStatus?)
Content copied to clipboard
AccountBalance
Link copied to clipboard
data class AccountBalance(accountId: String?, asOfDate: Int?, dayTraderStatus: String?, accountMode: AccountMode?, accountType: AccountType?, institutionType: InstitutionType?, optionLevel: OptionLevel, quoteModeRaw: Int, description: String?, cash: AccountCash, balances: ComputedBalance)
Content copied to clipboard
AccountCash
Link copied to clipboard
data class AccountCash(fundsForOpenOrdersCash: Float?, moneyMktBalance: Float?)
Content copied to clipboard
AccountList
Link copied to clipboard
AccountListResponse
Link copied to clipboard
AccountMode
Link copied to clipboard
AccountPortfolio
Link copied to clipboard
data class AccountPortfolio(accountId: String, next: String?, totalPages: Int?, nextPageNo: String?, positions: List<PortfolioPosition>)
Content copied to clipboard
AccountRoot
Link copied to clipboard
AccountsApi
Link copied to clipboard
interface AccountsApi
Content copied to clipboard
AccountStatus
Link copied to clipboard
AccountType
Link copied to clipboard
AlertDetailsResponse
Link copied to clipboard
AlertsResponse
Link copied to clipboard
AlertsResponseEnvelope
Link copied to clipboard
BalanceResponse
Link copied to clipboard
CancelOrderRequest
Link copied to clipboard
CancelOrderRequestEnvelope
Link copied to clipboard
CancelOrderResponse
Link copied to clipboard
data class CancelOrderResponse(accountId: String, orderId: Long, cancelTime: Instant, messages: MessagesResponse?)
Content copied to clipboard
CancelOrderResponseEnvelope
Link copied to clipboard
CompleteView
Link copied to clipboard
data class CompleteView(priceAdjustedFlag: Boolean?, price: Float?, adjPrice: Float?, change: Float?, changePct: Float?, prevClose: Float?, adjPrevClose: Float?, volume: Float?, lastTrade: Float?, lastTradeTime: Int?, adjLastTrade: Float?, symbolDescription: String?, perform1Month: Float?, perform3Month: Float?, perform6Month: Float?, perform12Month: Float?, prevDayVolume: Int?, tenDayVolume: Int?, beta: Float?, sv10DaysAvg: Float?, sv20DaysAvg: Float?, sv1MonAvg: Float?, sv2MonAvg: Float?, sv3MonAvg: Float?, sv4MonAvg: Float?, sv6MonAvg: Float?, week52High: Float?, week52Low: Float?, week52Range: String?, marketCap: Float?, daysRange: String?, delta52WkHigh: Float?, delta52WkLow: Float?, currency: String?, exchange: String?, marginable: Boolean?, bid: Float?, ask: Float?, bidAskSpread: Float?, bidSize: Int?, askSize: Int?, open: Float?, delta: Float?, gamma: Float?, ivPct: Float?, rho: Float?, theta: Float?, vega: Float?, premium: Float?, daysToExpiration: Int?, intrinsicValue: Float?, openInterest: Float?, optionsAdjustedFlag: Boolean?, deliverablesStr: String?, optionMultiplier: Float?, baseSymbolAndPrice: String?, estEarnings: Float?, eps: Float?, peRatio: Float?, annualDividend: Float?, dividend: Float?, divYield: Float?, divPayDate: Int?, exDividendDate: Int?, cusip: String?, quoteStatus: QuoteMode?)
Content copied to clipboard
ComputedBalance
Link copied to clipboard
data class ComputedBalance(cashAvailableForInvestment: Float?, cashAvailableForWithdrawal: Float?, totalAvailableForWithdrawal: Float?, netCash: Float?, cashBalance: Float?, settledCashForInvestment: Float?, unSettledCashForInvestment: Float?, fundsWithheldFromPurchasePower: Float?, fundsWithheldFromWithdrawal: Float?, marginBuyingPower: Float?, cashBuyingPower: Float?, dtMarginBuyingPower: Float?, dtCashBuyingPower: Float?, marginBalance: Float?, shortAdjustBalance: Float?, regtEquity: Float?, regtEquityPercent: Float?, accountBalance: Float?, openCalls: OpenCalls, realTimeValues: RealTimeValues)
Content copied to clipboard
ConditionFollowPrice
Link copied to clipboard
ConditionType
Link copied to clipboard
DeleteAlertsEnvelope
Link copied to clipboard
DeleteAlertsResponse
Link copied to clipboard
Event
Link copied to clipboard
data class Event(name: OrderEventType?, dateTime: Int?, orderNumber: Int?, instrument: Instrument)
Content copied to clipboard
EventsResponse
Link copied to clipboard
ExecutionGuaranteeType
Link copied to clipboard
FailedAlerts
Link copied to clipboard
FundamentalView
Link copied to clipboard
InstitutionType
Link copied to clipboard
Instrument
Link copied to clipboard
data class Instrument(product: Product?, symbolDescription: String?, orderAction: OrderActionType?, quantityType: QuantityType?, quantity: Float?, cancelQuantity: Float?, orderedQuantity: Float?, filledQuantity: Float?, averageExecutionPrice: Float?, estimatedCommission: Float?, estimatedFees: Float?, bid: Float?, ask: Float?, lastprice: Float?, currency: String?, lots: LotsResponse?, mfQuantity: MutualFundQuantity?, osiKey: String?, mfTransaction: String?, reserveOrder: Boolean?, reserveQuantity: Float?)
Content copied to clipboard
LookupData
Link copied to clipboard
LookupDataResponse
Link copied to clipboard
LookupResult
Link copied to clipboard
data class LookupResult(symbol: String?, description: String?, type: String?)
Content copied to clipboard
LotsResponse
Link copied to clipboard
Margin
Link copied to clipboard
data class Margin(nonMarginable: MarginBalances?, marginable: MarginBalances?)
Content copied to clipboard
MarginBalances
Link copied to clipboard
MarginLevel
Link copied to clipboard
Message
Link copied to clipboard
MessagesResponse
Link copied to clipboard
MessageType
Link copied to clipboard
MutualFundQuantity
Link copied to clipboard
data class MutualFundQuantity(cash: Float?, margin: Float?, cusip: String?)
Content copied to clipboard
OptionCategory
Link copied to clipboard
OptionChainResponse
Link copied to clipboard
data class OptionChainResponse(timeStamp: Instant, quoteType: QuoteStatus, nearPrice: Float, pairs: List<OptionPair>)
Content copied to clipboard
OptionChainRoot
Link copied to clipboard
OptionDetails
Link copied to clipboard
data class OptionDetails(optionCategory: OptionCategory?, optionRootSymbol: String?, timeStamp: Instant?, adjustedFlag: Boolean?, displaySymbol: String?, optionType: OptionType?, strikePrice: Float?, symbol: String?, bid: Float?, ask: Float?, bidSize: Int?, askSize: Int?, inTheMoney: Boolean?, volume: Int?, openInterest: Int?, netChange: Float?, lastPrice: Float?, quoteDetail: String?, osiKey: String?, greeks: OptionGreeks)
Content copied to clipboard
OptionExpirationDate
Link copied to clipboard
data class OptionExpirationDate(year: Int, month: Int, day: Int, expiryType: OptionExpirationType)
Content copied to clipboard
OptionExpirationType
Link copied to clipboard
OptionExpireDateResponse
Link copied to clipboard
OptionExpireDateResponseEnvelope
Link copied to clipboard
data class OptionExpireDateResponseEnvelope(response: OptionExpireDateResponse)
Content copied to clipboard
OptionGreeks
Link copied to clipboard
OptionLevel
Link copied to clipboard
OptionPair
Link copied to clipboard
OptionsWatchView
Link copied to clipboard
OptionType
Link copied to clipboard
Order
Link copied to clipboard
data class Order(orderId: Int, details: String?, orderType: OrderType?, totalOrderValue: Float?, totalCommission: Float?, orderDetail: List<OrderDetail>?, events: EventsResponse?)
Content copied to clipboard
OrderActionType
Link copied to clipboard
OrderDetail
Link copied to clipboard
data class OrderDetail(orderNumber: Int?, accountId: String?, previewTime: Instant?, placedTime: Instant?, executedTime: Instant?, orderValue: Float?, status: OrderStatus?, orderType: OrderType?, orderTerm: OrderTerm?, priceType: OrderPriceType?, priceValue: String?, limitPrice: Float?, stopPrice: Float?, stopLimitPrice: Float?, offsetType: OrderOffsetType?, offsetValue: Float?, marketSession: MarketSession?, routingDestination: RoutingDestination?, bracketedLimitPrice: Float?, initialStopPrice: Float?, trailPrice: Float?, triggerPrice: Float?, conditionPrice: Float?, conditionSymbol: String?, conditionType: ConditionType?, conditionFollowPrice: ConditionFollowPrice?, conditionSecurityType: String?, replacedByOrderId: Int?, replacesOrderId: Int?, allOrNone: Boolean?, previewId: Int?, instruments: List<Instrument>?, messages: MessagesResponse?, preClearanceCode: String?, overrideRestrictedCd: Int?, investmentAmount: Float?, positionQuantity: PositionQuantityType?, aipFlag: Boolean?, egQual: ExecutionGuaranteeType?, reInvestOption: ReinvestOptionType?, estimatedCommission: Float?, estimatedFees: Float?, estimatedTotalAmount: Float?, netPrice: Float?, netBid: Float?, netAsk: Float?, gcd: Int?, ratio: String?, mfpriceType: String?)
Content copied to clipboard
OrderEventType
Link copied to clipboard
OrderOffsetType
Link copied to clipboard
OrderPriceType
Link copied to clipboard
OrdersResponse
Link copied to clipboard
data class OrdersResponse(marker: String?, next: String?, orders: List<Order>?, messages: MessagesResponse?)
Content copied to clipboard
OrdersResponseEnvelope
Link copied to clipboard
PlaceOrderRequest
Link copied to clipboard
data class PlaceOrderRequest(orderType: OrderType, clientOrderId: String, orders: List<PreviewOrder>, previewIds: List<PreviewId>)
Content copied to clipboard
PlaceOrderRequestEnvelope
Link copied to clipboard
PlaceOrderResponse
Link copied to clipboard
data class PlaceOrderResponse(orderType: OrderType, orderIds: List<OrderId>, orders: List<OrderDetail>, dstFlag: Boolean, placedTime: Instant, accountId: String, marginLevel: MarginLevel?, optionLevel: OptionLevel?)
Content copied to clipboard
PlaceOrderResponseEnvelope
Link copied to clipboard
Portfolio
Link copied to clipboard
data class Portfolio(totals: PortfolioTotals?, accountPortfolio: List<AccountPortfolio>)
Content copied to clipboard
PortfolioMargin
Link copied to clipboard
data class PortfolioMargin(houseExcessEquityNew: Float?, pmEligible: Boolean?, houseExcessEquityCurr: Float?, houseExcessEquityChange: Float?)
Content copied to clipboard
PortfolioPosition
Link copied to clipboard
data class PortfolioPosition(positionId: Long, accountId: String?, product: Product?, osiKey: String?, symbolDescription: String?, dateAcquired: Instant?, pricePaid: Float?, price: Float?, commissions: Float?, otherFees: Float?, quantity: Float?, positionIndicator: PositionIndicatorType?, positionType: String?, change: Float?, changePct: Float?, daysGain: Float?, daysGainPct: Float?, marketValue: Float?, totalCost: Float?, totalGain: Float?, totalGainPct: Float?, pctOfPortfolio: Float?, costPerShare: Float?, todayCommissions: Float?, todayFees: Float?, todayPricePaid: Float?, todayQuantity: Float?, quotestatus: String?, dateTimeUTC: Int?, adjPrevClose: Float?, performance: PerformanceView?, fundamental: FundamentalView?, optionsWatch: OptionsWatchView?, quick: QuickView?, complete: CompleteView?, lotsDetails: String?, quoteDetails: String?, positionLot: List<PositionLot>?)
Content copied to clipboard
PortfolioResponse
Link copied to clipboard
PortfolioTotals
Link copied to clipboard
PositionIndicatorType
Link copied to clipboard
PositionLot
Link copied to clipboard
data class PositionLot(positionId: Int?, positionLotId: Int?, price: Float?, termCode: Int?, daysGain: Float?, daysGainPct: Float?, marketValue: Float?, totalCost: Float?, totalCostForGainPct: Float?, totalGain: Float?, lotSourceCode: Int?, originalQty: Float?, remainingQty: Float?, availableQty: Float?, orderNo: Int?, legNo: Int?, acquiredDate: Int?, locationCode: Int?, exchangeRate: Float?, settlementCurrency: String?, paymentCurrency: String?, adjPrice: Float?, commPerShare: Float?, feesPerShare: Float?, premiumAdj: Float?, shortType: Int?)
Content copied to clipboard
PositionQuantityType
Link copied to clipboard
PreviewOrderResponse
Link copied to clipboard
data class PreviewOrderResponse(orderType: OrderType, totalOrderValue: Float?, totalCommission: Float?, orders: List<OrderDetail>, previewIds: List<PreviewId>, marginLevel: MarginLevel?, optionLevel: OptionLevel?, margin: Margin?)
Content copied to clipboard
PreviewOrderResponseEnvelope
Link copied to clipboard
PreviewRequestEnvelope
Link copied to clipboard
ProductId
Link copied to clipboard
ProductType
Link copied to clipboard
QuantityType
Link copied to clipboard
QuoteData
Link copied to clipboard
data class QuoteData(dateTime: GregorianCalendar, quoteStatus: QuoteStatus, ahFlag: Boolean, product: Product, tickerData: TickerData)
Content copied to clipboard
QuoteResponse
Link copied to clipboard
QuoteStatus
Link copied to clipboard
RealTimeValues
Link copied to clipboard
ReinvestOptionType
Link copied to clipboard
RoutingDestination
Link copied to clipboard
SecurityType
Link copied to clipboard
TickerData
Link copied to clipboard
data class TickerData(adjustedFlag: Boolean?, annualDividend: Float?, ask: Float?, askExchange: String?, askSize: Int?, askTime: String?, bid: Float?, bidExchange: String?, bidSize: Int?, bidTime: String?, changeClose: Float?, changeClosePercentage: Float?, companyName: String?, daysToExpiration: Int?, dirLast: String?, dividend: Float?, eps: Float?, estEarnings: Float?, exDividendDate: Int?, exchgLastTrade: String?, fsi: String?, high: Float?, high52: Float?, highAsk: Float?, highBid: Float?, lastTrade: Float?, low: Float?, low52: Float?, lowAsk: Float?, lowBid: Float?, numberOfTrades: Int?, open: Float?, openInterest: Int?, optionStyle: String?, optionUnderlier: String?, optionUnderlierExchange: String?, previousClose: Float?, previousDayVolume: Int?, primaryExchange: String?, symbolDescription: String?, todayClose: Float?, totalVolume: Int?, upc: Int?, volume10Day: Int?, cashDeliverable: Float?, marketCap: Float?, sharesOutstanding: Float?, nextEarningDate: String?, beta: Float?, yield: Float?, declaredDividend: Float?, dividendPayableDate: Int?, pe: Float?, marketCloseBidSize: Int?, marketCloseAskSize: Int?, marketCloseVolume: Int?, week52LowDate: Int?, week52HiDate: Int?, intrinsicValue: Float?, timePremium: Float?, optionMultiplier: Float?, contractSize: Float?, expirationDate: Int?, optionPreviousBidPrice: Float?, optionPreviousAskPrice: Float?, osiKey: String?, timeOfLastTrade: Int?, averageVolume: Int?)
Content copied to clipboard
TickerDataResponse
Link copied to clipboard
Transaction
Link copied to clipboard
data class Transaction(transactionId: TransactionId, accountId: String?, transactionDate: Instant?, postDate: Instant?, amount: Float?, description: String?, transactionType: String?, trade: TransactionTrade)
Content copied to clipboard
TransactionDetailsResponse
Link copied to clipboard
TransactionId
Link copied to clipboard
TransactionListResponse
Link copied to clipboard
TransactionResponse
Link copied to clipboard
data class TransactionResponse(marker: String?, moreTransactions: Boolean, transactionCount: Int, totalCount: Int, transactions: List<Transaction>)
Content copied to clipboard
TransactionTrade
Link copied to clipboard