Versions in this module Expand all Collapse all v1 v1.0.1 Sep 12, 2022 v1.0.0 Sep 12, 2022 Changes in this version + const ASK + const ASK_EFP_COMPUTATION + const ASK_EXCH + const ASK_OPTION_COMPUTATION + const ASK_SIZE + const ASK_YIELD + const AUCTION_IMBALANCE + const AUCTION_IMPROVEMENT + const AUCTION_MATCH + const AUCTION_PRICE + const AUCTION_TRANSPARENT + const AUCTION_UNSET + const AUCTION_VOLUME + const AVG_OPT_VOLUME + const AVG_VOLUME + const BID + const BID_EFP_COMPUTATION + const BID_EXCH + const BID_OPTION_COMPUTATION + const BID_SIZE + const BID_YIELD + const BOND_FACTOR_MULTIPLIER + const CLOSE + const CLOSE_EFP_COMPUTATION + const CLOSE_POS + const CONNECTED + const CONNECTING + const CREDITMAN_MARK_PRICE + const CREDITMAN_SLOW_MARK_PRICE + const CUSTOMER + const CUST_OPTION_COMPUTATION + const ClearingBroker + const DELAYED_ASK + const DELAYED_ASK_OPTION + const DELAYED_ASK_SIZE + const DELAYED_BID + const DELAYED_BID_OPTION + const DELAYED_BID_SIZE + const DELAYED_CLOSE + const DELAYED_HIGH + const DELAYED_LAST + const DELAYED_LAST_OPTION + const DELAYED_LAST_SIZE + const DELAYED_LAST_TIMESTAMP + const DELAYED_LOW + const DELAYED_MODEL_OPTION + const DELAYED_OPEN + const DELAYED_VOLUME + const DISCONNECTED + const FIRM + const FUNDAMENTAL_RATIOS + const FUTURES_OPEN_INTEREST + const HALTED + const HIGH + const HIGH_13_WEEK + const HIGH_26_WEEK + const HIGH_52_WEEK + const HIGH_EFP_COMPUTATION + const IB_DIVIDENDS + const INDEX_FUTURE_PREMIUM + const LAST + const LAST_EFP_COMPUTATION + const LAST_EXCH + const LAST_OPTION_COMPUTATION + const LAST_REG_TIME + const LAST_RTH_TRADE + const LAST_SIZE + const LAST_TIMESTAMP + const LAST_YIELD + const LOW + const LOW_13_WEEK + const LOW_26_WEEK + const LOW_52_WEEK + const LOW_EFP_COMPUTATION + const MARK_PRICE + const MAX_MSG_LEN + const MODEL_OPTION + const MaxClientVersion + const MaxRequests + const NEWS_TICK + const NOT_SET + const NO_VALID_ID + const OPEN + const OPEN_EFP_COMPUTATION + const OPEN_INTEREST + const OPEN_POS + const OPTION_ASK_EXCH + const OPTION_BID_EXCH + const OPTION_CALL_OPEN_INTEREST + const OPTION_CALL_VOLUME + const OPTION_HISTORICAL_VOL + const OPTION_IMPLIED_VOL + const OPTION_PUT_OPEN_INTEREST + const OPTION_PUT_VOLUME + const REDIRECT + const REGULATORY_IMBALANCE + const RT_HISTORICAL_VOL + const RT_TRD_VOLUME + const RT_VOLUME + const RequestInternal + const SAME_POS + const SHORTABLE + const SHORTABLE_SHARES + const SHORT_TERM_VOLUME_10_MIN + const SHORT_TERM_VOLUME_3_MIN + const SHORT_TERM_VOLUME_5_MIN + const TIME_FORMAT + const TRADE_COUNT + const TRADE_RATE + const ThirdParty + const UNKNOWN + const UNKNOWN_POS + const UNSETFLOAT + const UNSETINT + const VOLUME + const VOLUME_RATE + var ALREADY_CONNECTED = IbError + var BAD_LENGTH = IbError + var BAD_MESSAGE = IbError + var CONNECT_FAIL = IbError + var FAIL_CREATE_SOCK = IbError + var NOT_CONNECTED = IbError + var SOCKET_EXCEPTION = IbError + var SSL_FAIL = IbError + var UNKNOWN_ID = IbError + var UNSUPPORTED_VERSION = IbError + var UPDATE_TWS = IbError + func GetLogger() *zap.Logger + func InitDefault(o interface{}) + func SetAPILogger(cfg zap.Config, opts ...zap.Option) error + type Account struct + Name string + type AlgoParams struct + type BarData struct + Average float64 + BarCount int64 + Close float64 + Date string + High float64 + Low float64 + Open float64 + Volume float64 + func (b BarData) String() string + type ComboLeg struct + Action string + ContractID int64 + DesignatedLocation string + Exchange string + ExemptCode int64 + OpenClose int64 + Ratio int64 + ShortSaleSlot int64 + func NewComboLeg() ComboLeg + func (c ComboLeg) String() string + type ComboLegOpenClose int64 + type ComboLegShortSaleSlot int64 + type CommissionReport struct + Commission float64 + Currency string + ExecID string + RealizedPNL float64 + Yield float64 + YieldRedemptionDate int64 + func (cr CommissionReport) String() string + type Contract struct + ComboLegs []ComboLeg + ComboLegsDescription string + ContractID int64 + Currency string + DeltaNeutralContract *DeltaNeutralContract + Exchange string + Expiry string + IncludeExpired bool + LocalSymbol string + Multiplier string + PrimaryExchange string + Right string + SecurityID string + SecurityIDType string + SecurityType string + Strike float64 + Symbol string + TradingClass string + func (c Contract) String() string + type ContractCondition struct + ConID int64 + Exchange string + type ContractDescription struct + Contract Contract + DerivativeSecTypes []string + type ContractDetails struct + AggGroup int64 + BondType string + Callable bool + Category string + Contract Contract + ContractMonth string + Convertible bool + Coupon int64 + CouponType string + Cusip string + DescAppend string + EVMultiplier int64 + EVRule string + Industry string + IssueDate string + LastTradeTime string + LiquidHours string + LongName string + MarketName string + MarketRuleIDs string + Maturity string + MdSizeMultiplier int64 + MinTick float64 + NextOptionDate string + NextOptionPartial bool + NextOptionType string + Notes string + OrderTypes string + PriceMagnifier int64 + Putable bool + Ratings string + RealExpirationDate string + SecurityIDList []TagValue + StockType string + Subcategory string + TimezoneID string + TradingHours string + UnderContractID int64 + UnderSecurityType string + UnderSymbol string + ValidExchanges string + func (c ContractDetails) String() string + type DeltaNeutralContract struct + ContractID int64 + Delta float64 + Price float64 + func (c DeltaNeutralContract) String() string + type DepthMktDataDescription struct + AggGroup int64 + Exchange string + ListingExchange string + SecurityType string + ServiceDataType string + func (d DepthMktDataDescription) String() string + type Execution struct + AccountCode string + AveragePrice float64 + ClientID int64 + CumQty float64 + EVMultiplier float64 + EVRule string + Exchange string + ExecID string + LastLiquidity int64 + Liquidation int64 + ModelCode string + OrderID int64 + OrderRef string + PermID int64 + Price float64 + Shares float64 + Side string + Time string + func (e Execution) String() string + type ExecutionCondition struct + Exchange string + SecType string + Symbol string + type ExecutionFilter struct + AccountCode string + ClientID int64 + Exchange string + SecurityType string + Side string + Symbol string + Time string + type FamilyCode struct + AccountID string + FamilyCode string + func (f FamilyCode) String() string + type FiledType = int64 + const FLT + const INT + const STR + type HistogramData struct + Count int64 + Price float64 + func (hgd HistogramData) String() string + type HistoricalTick struct + Price float64 + Size int64 + Time int64 + func (h HistoricalTick) String() string + type HistoricalTickBidAsk struct + PriceAsk float64 + PriceBid float64 + SizeAsk int64 + SizeBid int64 + TickAttirbBidAsk TickAttribBidAsk + Time int64 + func (h HistoricalTickBidAsk) String() string + type HistoricalTickLast struct + Exchange string + Price float64 + Size int64 + SpecialConditions string + TickAttribLast TickAttribLast + Time int64 + func (h HistoricalTickLast) String() string + type IN = int64 + type IbClient struct + func NewIbClient(wrapper IbWrapper) *IbClient + func (ic *IbClient) CalculateImpliedVolatility(reqID int64, contract *Contract, optionPrice float64, underPrice float64, ...) + func (ic *IbClient) CalculateOptionPrice(reqID int64, contract *Contract, volatility float64, underPrice float64, ...) + func (ic *IbClient) CancelAccountSummary(reqID int64) + func (ic *IbClient) CancelAccountUpdatesMulti(reqID int64) + func (ic *IbClient) CancelCalculateOptionPrice(reqID int64) + func (ic *IbClient) CancelFundamentalData(reqID int64) + func (ic *IbClient) CancelHeadTimeStamp(reqID int64) + func (ic *IbClient) CancelHistogramData(reqID int64) + func (ic *IbClient) CancelHistoricalData(reqID int64) + func (ic *IbClient) CancelMktData(reqID int64) + func (ic *IbClient) CancelMktDepth(reqID int64, isSmartDepth bool) + func (ic *IbClient) CancelNewsBulletins() + func (ic *IbClient) CancelOrder(orderID int64) + func (ic *IbClient) CancelPnL(reqID int64) + func (ic *IbClient) CancelPnLSingle(reqID int64) + func (ic *IbClient) CancelPositions() + func (ic *IbClient) CancelPositionsMulti(reqID int64) + func (ic *IbClient) CancelRealTimeBars(reqID int64) + func (ic *IbClient) CancelScannerSubscription(reqID int64) + func (ic *IbClient) CancelTickByTickData(reqID int64) + func (ic *IbClient) ConnState() int + func (ic *IbClient) Connect(host string, port int, clientID int64) error + func (ic *IbClient) ConnectionTime() string + func (ic *IbClient) Disconnect() error + func (ic *IbClient) ExerciseOptions(reqID int64, contract *Contract, exerciseAction int, exerciseQuantity int, ...) + func (ic *IbClient) GetReqID() int64 + func (ic *IbClient) HandShake() error + func (ic *IbClient) IsConnected() bool + func (ic *IbClient) LoopUntilDone(fs ...func()) error + func (ic *IbClient) PlaceOrder(orderID int64, contract *Contract, order *Order) + func (ic *IbClient) QueryDisplayGroups(reqID int64) + func (ic *IbClient) ReplaceFA(faData int, cxml string) + func (ic *IbClient) ReqAccountSummary(reqID int64, groupName string, tags string) + func (ic *IbClient) ReqAccountUpdates(subscribe bool, accName string) + func (ic *IbClient) ReqAccountUpdatesMulti(reqID int64, account string, modelCode string, ledgerAndNLV bool) + func (ic *IbClient) ReqAllOpenOrders() + func (ic *IbClient) ReqAutoOpenOrders(autoBind bool) + func (ic *IbClient) ReqCompletedOrders(apiOnly bool) + func (ic *IbClient) ReqContractDetails(reqID int64, contract *Contract) + func (ic *IbClient) ReqCurrentTime() + func (ic *IbClient) ReqExecutions(reqID int64, execFilter ExecutionFilter) + func (ic *IbClient) ReqFamilyCodes() + func (ic *IbClient) ReqFundamentalData(reqID int64, contract *Contract, reportType string, ...) + func (ic *IbClient) ReqGlobalCancel() + func (ic *IbClient) ReqHeadTimeStamp(reqID int64, contract *Contract, whatToShow string, useRTH bool, ...) + func (ic *IbClient) ReqHistogramData(reqID int64, contract *Contract, useRTH bool, timePeriod string) + func (ic *IbClient) ReqHistoricalData(reqID int64, contract *Contract, endDateTime string, duration string, ...) + func (ic *IbClient) ReqHistoricalNews(reqID int64, contractID int64, providerCode string, startDateTime string, ...) + func (ic *IbClient) ReqHistoricalTicks(reqID int64, contract *Contract, startDateTime string, endDateTime string, ...) + func (ic *IbClient) ReqIDs() + func (ic *IbClient) ReqManagedAccts() + func (ic *IbClient) ReqMarketDataType(marketDataType int64) + func (ic *IbClient) ReqMarketRule(marketRuleID int64) + func (ic *IbClient) ReqMatchingSymbols(reqID int64, pattern string) + func (ic *IbClient) ReqMktData(reqID int64, contract *Contract, genericTickList string, snapshot bool, ...) + func (ic *IbClient) ReqMktDepth(reqID int64, contract *Contract, numRows int, isSmartDepth bool, ...) + func (ic *IbClient) ReqMktDepthExchanges() + func (ic *IbClient) ReqNewsArticle(reqID int64, providerCode string, articleID string, ...) + func (ic *IbClient) ReqNewsBulletins(allMsgs bool) + func (ic *IbClient) ReqNewsProviders() + func (ic *IbClient) ReqOpenOrders() + func (ic *IbClient) ReqPnL(reqID int64, account string, modelCode string) + func (ic *IbClient) ReqPnLSingle(reqID int64, account string, modelCode string, contractID int64) + func (ic *IbClient) ReqPositions() + func (ic *IbClient) ReqPositionsMulti(reqID int64, account string, modelCode string) + func (ic *IbClient) ReqRealTimeBars(reqID int64, contract *Contract, barSize int, whatToShow string, useRTH bool, ...) + func (ic *IbClient) ReqScannerParameters() + func (ic *IbClient) ReqScannerSubscription(reqID int64, subscription *ScannerSubscription, ...) + func (ic *IbClient) ReqSecDefOptParams(reqID int64, underlyingSymbol string, futFopExchange string, ...) + func (ic *IbClient) ReqSmartComponents(reqID int64, bboExchange string) + func (ic *IbClient) ReqSoftDollarTiers(reqID int64) + func (ic *IbClient) ReqTickByTickData(reqID int64, contract *Contract, tickType string, numberOfTicks int64, ...) + func (ic *IbClient) RequestFA(faData int) + func (ic *IbClient) Run() error + func (ic *IbClient) ServerVersion() Version + func (ic *IbClient) SetConnectionOptions(opts string) + func (ic *IbClient) SetContext(ctx context.Context) + func (ic *IbClient) SetServerLogLevel(logLevel int64) + func (ic *IbClient) SetWrapper(wrapper IbWrapper) + func (ic *IbClient) SubscribeToGroupEvents(reqID int64, groupID int) + func (ic *IbClient) UnsubscribeFromGroupEvents(reqID int64) + func (ic *IbClient) UpdateDisplayGroup(reqID int64, contractInfo string) + func (ic *IbClient) VerifyAndAuthMessage(apiData string, xyzResponse string) + func (ic *IbClient) VerifyAndAuthRequest(apiName string, apiVersion string, opaqueIsvKey string) + func (ic *IbClient) VerifyMessage(apiData string) + func (ic *IbClient) VerifyRequest(apiName string, apiVersion string) + type IbConnection struct + func (ibconn *IbConnection) Read(bs []byte) (int, error) + func (ibconn *IbConnection) Write(bs []byte) (int, error) + type IbError struct + func (ie IbError) Error() string + type IbWrapper interface + AccountDownloadEnd func(accName string) + AccountSummary func(reqID int64, account string, tag string, value string, currency string) + AccountSummaryEnd func(reqID int64) + AccountUpdateMulti func(reqID int64, account string, modleCode string, tag string, value string, ...) + AccountUpdateMultiEnd func(reqID int64) + BondContractDetails func(reqID int64, conDetails *ContractDetails) + CommissionReport func(commissionReport CommissionReport) + CompletedOrder func(contract *Contract, order *Order, orderState *OrderState) + CompletedOrdersEnd func() + ConnectAck func() + ConnectionClosed func() + ContractDetails func(reqID int64, conDetails *ContractDetails) + ContractDetailsEnd func(reqID int64) + CurrentTime func(t time.Time) + DeltaNeutralValidation func(reqID int64, deltaNeutralContract DeltaNeutralContract) + DisplayGroupList func(reqID int64, groups string) + DisplayGroupUpdated func(reqID int64, contractInfo string) + Error func(reqID int64, errCode int64, errString string) + ExecDetails func(reqID int64, contract *Contract, execution *Execution) + ExecDetailsEnd func(reqID int64) + FamilyCodes func(famCodes []FamilyCode) + FundamentalData func(reqID int64, data string) + HeadTimestamp func(reqID int64, headTimestamp string) + HistogramData func(reqID int64, histogram []HistogramData) + HistoricalData func(reqID int64, bar *BarData) + HistoricalDataEnd func(reqID int64, startDateStr string, endDateStr string) + HistoricalDataUpdate func(reqID int64, bar *BarData) + HistoricalNews func(reqID int64, time string, providerCode string, articleID string, ...) + HistoricalNewsEnd func(reqID int64, hasMore bool) + HistoricalTicks func(reqID int64, ticks []HistoricalTick, done bool) + HistoricalTicksBidAsk func(reqID int64, ticks []HistoricalTickBidAsk, done bool) + HistoricalTicksLast func(reqID int64, ticks []HistoricalTickLast, done bool) + ManagedAccounts func(accountsList []string) + MarketDataType func(reqID int64, marketDataType int64) + MarketRule func(marketRuleID int64, priceIncrements []PriceIncrement) + MktDepthExchanges func(depthMktDataDescriptions []DepthMktDataDescription) + NewsArticle func(reqID int64, articleType int64, articleText string) + NewsProviders func(newsProviders []NewsProvider) + NextValidID func(reqID int64) + OpenOrder func(orderID int64, contract *Contract, order *Order, orderState *OrderState) + OpenOrderEnd func() + OrderBound func(reqID int64, apiClientID int64, apiOrderID int64) + OrderStatus func(orderID int64, status string, filled float64, remaining float64, ...) + Pnl func(reqID int64, dailyPnL float64, unrealizedPnL float64, realizedPnL float64) + PnlSingle func(reqID int64, position int64, dailyPnL float64, unrealizedPnL float64, ...) + Position func(account string, contract *Contract, position float64, avgCost float64) + PositionEnd func() + PositionMulti func(reqID int64, account string, modelCode string, contract *Contract, ...) + PositionMultiEnd func(reqID int64) + RealtimeBar func(reqID int64, time int64, open float64, high float64, low float64, ...) + ReceiveFA func(faData int64, cxml string) + ReplaceFAEnd func(reqID int64, text string) + RerouteMktDataReq func(reqID int64, contractID int64, exchange string) + RerouteMktDepthReq func(reqID int64, contractID int64, exchange string) + ScannerData func(reqID int64, rank int64, conDetails *ContractDetails, distance string, ...) + ScannerDataEnd func(reqID int64) + ScannerParameters func(xml string) + SecurityDefinitionOptionParameter func(reqID int64, exchange string, underlyingContractID int64, tradingClass string, ...) + SecurityDefinitionOptionParameterEnd func(reqID int64) + SmartComponents func(reqID int64, smartComps []SmartComponent) + SoftDollarTiers func(reqID int64, tiers []SoftDollarTier) + SymbolSamples func(reqID int64, contractDescriptions []ContractDescription) + TickByTickAllLast func(reqID int64, tickType int64, time int64, price float64, size int64, ...) + TickByTickBidAsk func(reqID int64, time int64, bidPrice float64, askPrice float64, bidSize int64, ...) + TickByTickMidPoint func(reqID int64, time int64, midPoint float64) + TickEFP func(reqID int64, tickType int64, basisPoints float64, formattedBasisPoints string, ...) + TickGeneric func(reqID int64, tickType int64, value float64) + TickNews func(tickerID int64, timeStamp int64, providerCode string, articleID string, ...) + TickOptionComputation func(reqID int64, tickType int64, tickAttrib int64, impliedVol float64, ...) + TickPrice func(reqID int64, tickType int64, price float64, attrib TickAttrib) + TickReqParams func(tickerID int64, minTick float64, bboExchange string, snapshotPermissions int64) + TickSize func(reqID int64, tickType int64, size int64) + TickSnapshotEnd func(reqID int64) + TickString func(reqID int64, tickType int64, value string) + UpdateAccountTime func(accTime time.Time) + UpdateAccountValue func(tag string, val string, currency string, accName string) + UpdateMktDepth func(reqID int64, position int64, operation int64, side int64, price float64, ...) + UpdateMktDepthL2 func(reqID int64, position int64, marketMaker string, operation int64, side int64, ...) + UpdateNewsBulletin func(msgID int64, msgType int64, newsMessage string, originExchange string) + UpdatePortfolio func(contract *Contract, position float64, marketPrice float64, marketValue float64, ...) + VerifyAndAuthCompleted func(isSuccessful bool, err string) + VerifyAndAuthMessageAPI func(apiData string, xyzChallange string) + VerifyCompleted func(isSuccessful bool, err string) + VerifyMessageAPI func(apiData string) + type MarginCondition struct + Percent float64 + type MsgBuffer struct + func NewMsgBuffer(bs []byte) *MsgBuffer + func (m *MsgBuffer) Reset() + type NewsProvider struct + Code string + Name string + func (np NewsProvider) String() string + type OUT = int64 + type OperatorCondition struct + IsMore bool + type Order struct + Account string + Action string + ActiveStartTime string + ActiveStopTime string + AdjustableTrailingUnit int64 + AdjustedOrderType string + AdjustedStopLimitPrice float64 + AdjustedStopPrice float64 + AdjustedTrailingAmount float64 + AlgoID string + AlgoParams []TagValue + AlgoStrategy string + AllOrNone bool + AuctionStrategy int64 + AutoCancelDate string + AutoCancelParent bool + AuxPrice float64 + BasisPoints float64 + BasisPointsType int64 + BlockOrder bool + CashQty float64 + ClearingAccount string + ClearingIntent string + ClientID int64 + Conditions []OrderConditioner + ConditionsCancelOrder bool + ConditionsIgnoreRth bool + ContinuousUpdate bool + Delta float64 + DeltaNeutralAuxPrice float64 + DeltaNeutralClearingAccount string + DeltaNeutralClearingIntent string + DeltaNeutralContractID int64 + DeltaNeutralDesignatedLocation string + DeltaNeutralOpenClose string + DeltaNeutralOrderType string + DeltaNeutralSettlingFirm string + DeltaNeutralShortSale bool + DeltaNeutralShortSaleSlot int64 + DesignatedLocation string + DiscretionaryAmount float64 + DiscretionaryUpToLimitPrice bool + DisplaySize int64 + DontUseAutoPriceForHedge bool + Duration int64 + ETradeOnly bool + ExemptCode int64 + ExtOperator string + FAGroup string + FAMethod string + FAPercentage string + FAProfile string + FilledQuantity float64 + FirmQuoteOnly bool + GoodAfterTime string + GoodTillDate string + HedgeParam string + HedgeType string + Hidden bool + ImbalanceOnly bool + IsOmsContainer bool + IsPeggedChangeAmountDecrease bool + LimitPrice float64 + LimitPriceOffset float64 + Mifid2DecisionAlgo string + Mifid2DecisionMaker string + Mifid2ExecutionAlgo string + Mifid2ExecutionTrader string + MinQty int64 + ModelCode string + NBBOPriceCap float64 + NotHeld bool + NotSuppScaleNumComponents int64 + OCAGroup string + OCAType int64 + OpenClose string + OptOutSmartRouting bool + OrderComboLegs []OrderComboLeg + OrderID int64 + OrderMiscOptions []TagValue + OrderRef string + OrderType string + Origin int64 + OutsideRTH bool + OverridePercentageConstraints bool + ParentID int64 + ParentPermID int64 + PeggedChangeAmount float64 + PercentOffset float64 + PermID int64 + PostToAts int64 + RandomizePrice bool + RandomizeSize bool + RefFuturesConID int64 + ReferenceChangeAmount float64 + ReferenceContractID int64 + ReferenceExchangeID string + ReferencePriceType int64 + RouteMarketableToBbo bool + Rule80A string + ScaleAutoReset bool + ScaleInitFillQty int64 + ScaleInitLevelSize int64 + ScaleInitPosition int64 + ScalePriceAdjustInterval int64 + ScalePriceAdjustValue float64 + ScalePriceIncrement float64 + ScaleProfitOffset float64 + ScaleRandomPercent bool + ScaleSubsLevelSize int64 + ScaleTable string + SettlingFirm string + Shareholder string + ShortSaleSlot int64 + SmartComboRoutingParams []TagValue + SoftDollarTier SoftDollarTier + Solictied bool + StartingPrice float64 + StockRangeLower float64 + StockRangeUpper float64 + StockRefPrice float64 + SweepToFill bool + TIF string + TotalQuantity float64 + TrailStopPrice float64 + TrailingPercent float64 + Transmit bool + TriggerMethod int64 + TriggerPrice float64 + UsePriceMgmtAlgo bool + Volatility float64 + VolatilityType int64 + WhatIf bool + func NewLimitOrder(action string, lmtPrice float64, quantity float64) *Order + func NewMarketOrder(action string, quantity float64) *Order + func NewOrder() *Order + func (o Order) String() string + type OrderComboLeg struct + Price float64 + func (o OrderComboLeg) String() string + type OrderCondition struct + IsConjunctionConnection bool + func (oc OrderCondition) CondType() int64 + type OrderConditioner interface + CondType func() int64 + func InitOrderCondition(conType int64) (OrderConditioner, int) + type OrderState struct + Commission float64 + CommissionCurrency string + CompletedStatus string + CompletedTime string + EquityWithLoanAfter string + EquityWithLoanBefore string + EquityWithLoanChange string + InitialMarginAfter string + InitialMarginBefore string + InitialMarginChange string + MaintenanceMarginAfter string + MaintenanceMarginBefore string + MaintenanceMarginChange string + MaxCommission float64 + MinCommission float64 + Status string + WarningText string + func (state OrderState) String() string + type PercentChangeCondition struct + ChangePercent float64 + type PriceCondition struct + Price float64 + TriggerMethod int64 + type PriceIncrement struct + Increment float64 + LowEdge float64 + func (p PriceIncrement) String() string + type RealTimeBar struct + Close float64 + Count int64 + High float64 + Low float64 + Open float64 + Time int64 + Volume int64 + Wap float64 + func (rb RealTimeBar) String() string + type ScanData struct + Benchmark string + ContractDetails ContractDetails + Distance string + Legs string + Projection string + Rank int64 + func (s ScanData) String() string + type ScannerSubscription struct + AbovePrice float64 + AboveVolume int64 + AverageOptionVolumeAbove int64 + BelowPrice float64 + CouponRateAbove float64 + CouponRateBelow float64 + ExcludeConvertible bool + Instrument string + LocationCode string + MarketCapAbove float64 + MarketCapBelow float64 + MaturityDateAbove string + MaturityDateBelow string + MoodyRatingAbove string + MoodyRatingBelow string + NumberOfRows int64 + ScanCode string + ScannerSettingPairs string + SpRatingAbove string + SpRatingBelow string + StockTypeFilter string + func NewScannerSubscription() *ScannerSubscription + func (s ScannerSubscription) String() string + type SmartComponent struct + BitNumber int64 + Exchange string + ExchangeLetter string + func (s SmartComponent) String() string + type SoftDollarTier struct + DisplayName string + Name string + Value string + func (s SoftDollarTier) String() string + type TagValue struct + Tag string + Value string + func (tv TagValue) String() string + type TickAttrib struct + CanAutoExecute bool + PastLimit bool + PreOpen bool + func (t TickAttrib) String() string + type TickAttribBidAsk struct + AskPastHigh bool + BidPastLow bool + func (t TickAttribBidAsk) String() string + type TickAttribLast struct + PastLimit bool + Unreported bool + func (t TickAttribLast) String() string + type TimeCondition struct + Time string + type Version = int + const MAX_CLIENT_VER + const MIN_CLIENT_VER + type VolumeCondition struct + Volume int64 + type Wrapper struct + func (w *Wrapper) GetNextOrderID() (i int64) + func (w *Wrapper) NextValidID(reqID int64) + func (w Wrapper) AccountDownloadEnd(accName string) + func (w Wrapper) AccountSummary(reqID int64, account string, tag string, value string, currency string) + func (w Wrapper) AccountSummaryEnd(reqID int64) + func (w Wrapper) AccountUpdateMulti(reqID int64, account string, modelCode string, tag string, value string, ...) + func (w Wrapper) AccountUpdateMultiEnd(reqID int64) + func (w Wrapper) BondContractDetails(reqID int64, conDetails *ContractDetails) + func (w Wrapper) CommissionReport(commissionReport CommissionReport) + func (w Wrapper) CompletedOrder(contract *Contract, order *Order, orderState *OrderState) + func (w Wrapper) CompletedOrdersEnd() + func (w Wrapper) ConnectAck() + func (w Wrapper) ConnectionClosed() + func (w Wrapper) ContractDetails(reqID int64, conDetails *ContractDetails) + func (w Wrapper) ContractDetailsEnd(reqID int64) + func (w Wrapper) CurrentTime(t time.Time) + func (w Wrapper) DeltaNeutralValidation(reqID int64, deltaNeutralContract DeltaNeutralContract) + func (w Wrapper) DisplayGroupList(reqID int64, groups string) + func (w Wrapper) DisplayGroupUpdated(reqID int64, contractInfo string) + func (w Wrapper) Error(reqID int64, errCode int64, errString string) + func (w Wrapper) ExecDetails(reqID int64, contract *Contract, execution *Execution) + func (w Wrapper) ExecDetailsEnd(reqID int64) + func (w Wrapper) FamilyCodes(famCodes []FamilyCode) + func (w Wrapper) FundamentalData(reqID int64, data string) + func (w Wrapper) HeadTimestamp(reqID int64, headTimestamp string) + func (w Wrapper) HistogramData(reqID int64, histogram []HistogramData) + func (w Wrapper) HistoricalData(reqID int64, bar *BarData) + func (w Wrapper) HistoricalDataEnd(reqID int64, startDateStr string, endDateStr string) + func (w Wrapper) HistoricalDataUpdate(reqID int64, bar *BarData) + func (w Wrapper) HistoricalNews(reqID int64, time string, providerCode string, articleID string, ...) + func (w Wrapper) HistoricalNewsEnd(reqID int64, hasMore bool) + func (w Wrapper) HistoricalTicks(reqID int64, ticks []HistoricalTick, done bool) + func (w Wrapper) HistoricalTicksBidAsk(reqID int64, ticks []HistoricalTickBidAsk, done bool) + func (w Wrapper) HistoricalTicksLast(reqID int64, ticks []HistoricalTickLast, done bool) + func (w Wrapper) ManagedAccounts(accountsList []string) + func (w Wrapper) MarketDataType(reqID int64, marketDataType int64) + func (w Wrapper) MarketRule(marketRuleID int64, priceIncrements []PriceIncrement) + func (w Wrapper) MktDepthExchanges(depthMktDataDescriptions []DepthMktDataDescription) + func (w Wrapper) NewsArticle(reqID int64, articleType int64, articleText string) + func (w Wrapper) NewsProviders(newsProviders []NewsProvider) + func (w Wrapper) OpenOrder(orderID int64, contract *Contract, order *Order, orderState *OrderState) + func (w Wrapper) OpenOrderEnd() + func (w Wrapper) OrderBound(reqID int64, apiClientID int64, apiOrderID int64) + func (w Wrapper) OrderStatus(orderID int64, status string, filled float64, remaining float64, ...) + func (w Wrapper) Pnl(reqID int64, dailyPnL float64, unrealizedPnL float64, realizedPnL float64) + func (w Wrapper) PnlSingle(reqID int64, position int64, dailyPnL float64, unrealizedPnL float64, ...) + func (w Wrapper) Position(account string, contract *Contract, position float64, avgCost float64) + func (w Wrapper) PositionEnd() + func (w Wrapper) PositionMulti(reqID int64, account string, modelCode string, contract *Contract, ...) + func (w Wrapper) PositionMultiEnd(reqID int64) + func (w Wrapper) RealtimeBar(reqID int64, time int64, open float64, high float64, low float64, ...) + func (w Wrapper) ReceiveFA(faData int64, cxml string) + func (w Wrapper) ReplaceFAEnd(reqID int64, text string) + func (w Wrapper) RerouteMktDataReq(reqID int64, contractID int64, exchange string) + func (w Wrapper) RerouteMktDepthReq(reqID int64, contractID int64, exchange string) + func (w Wrapper) ScannerData(reqID int64, rank int64, conDetails *ContractDetails, distance string, ...) + func (w Wrapper) ScannerDataEnd(reqID int64) + func (w Wrapper) ScannerParameters(xml string) + func (w Wrapper) SecurityDefinitionOptionParameter(reqID int64, exchange string, underlyingContractID int64, tradingClass string, ...) + func (w Wrapper) SecurityDefinitionOptionParameterEnd(reqID int64) + func (w Wrapper) SmartComponents(reqID int64, smartComps []SmartComponent) + func (w Wrapper) SoftDollarTiers(reqID int64, tiers []SoftDollarTier) + func (w Wrapper) SymbolSamples(reqID int64, contractDescriptions []ContractDescription) + func (w Wrapper) TickByTickAllLast(reqID int64, tickType int64, time int64, price float64, size int64, ...) + func (w Wrapper) TickByTickBidAsk(reqID int64, time int64, bidPrice float64, askPrice float64, bidSize int64, ...) + func (w Wrapper) TickByTickMidPoint(reqID int64, time int64, midPoint float64) + func (w Wrapper) TickEFP(reqID int64, tickType int64, basisPoints float64, formattedBasisPoints string, ...) + func (w Wrapper) TickGeneric(reqID int64, tickType int64, value float64) + func (w Wrapper) TickNews(tickerID int64, timeStamp int64, providerCode string, articleID string, ...) + func (w Wrapper) TickOptionComputation(reqID int64, tickType int64, tickAttrib int64, impliedVol float64, ...) + func (w Wrapper) TickPrice(reqID int64, tickType int64, price float64, attrib TickAttrib) + func (w Wrapper) TickReqParams(reqID int64, minTick float64, bboExchange string, snapshotPermissions int64) + func (w Wrapper) TickSize(reqID int64, tickType int64, size int64) + func (w Wrapper) TickSnapshotEnd(reqID int64) + func (w Wrapper) TickString(reqID int64, tickType int64, value string) + func (w Wrapper) UpdateAccountTime(accTime time.Time) + func (w Wrapper) UpdateAccountValue(tag string, value string, currency string, account string) + func (w Wrapper) UpdateMktDepth(reqID int64, position int64, operation int64, side int64, price float64, ...) + func (w Wrapper) UpdateMktDepthL2(reqID int64, position int64, marketMaker string, operation int64, side int64, ...) + func (w Wrapper) UpdateNewsBulletin(msgID int64, msgType int64, newsMessage string, originExch string) + func (w Wrapper) UpdatePortfolio(contract *Contract, position float64, marketPrice float64, marketValue float64, ...) + func (w Wrapper) VerifyAndAuthCompleted(isSuccessful bool, err string) + func (w Wrapper) VerifyAndAuthMessageAPI(apiData string, xyzChallange string) + func (w Wrapper) VerifyCompleted(isSuccessful bool, err string) + func (w Wrapper) VerifyMessageAPI(apiData string)