Versions in this module Expand all Collapse all v1 v1.0.0 Dec 11, 2024 Changes in this version + const BidAskTriggerMethod + const DEFAULT_LEVEL + const DefaultTriggerMethod + const DoubleBidAskTriggerMethod + const DoubleLastTriggerMethod + const INFINITY_STRING + const LastBidAskTriggerMethod + const LastTriggerMethod + const MAX_MSG_LEN + const MidPointTriggerMethod + const NO_ROW_NUMBER_SPECIFIED + const NO_VALID_ID + const UNSET_FLOAT + const UNSET_INT + const UNSET_LONG + var ALREADY_CONNECTED = CodeMsgPair + var BAD_LENGTH = CodeMsgPair + var BAD_MESSAGE = CodeMsgPair + var COMPETE_AGAINST_BEST_OFFSET_UP_TO_MID = INFINITY_FLOAT + var CONNECT_FAIL = CodeMsgPair + var FAIL_CREATE_SOCK = CodeMsgPair + var FA_PROFILE_NOT_SUPPORTED = CodeMsgPair + var INFINITY_FLOAT float64 = math.Inf(1) + var INVALID_SYMBOL = CodeMsgPair + var NOT_CONNECTED = CodeMsgPair + var ONE = Decimal(fixed.NewF(1)) + var SOCKET_EXCEPTION = CodeMsgPair + var SSL_FAIL = CodeMsgPair + var UNKNOWN_ID = CodeMsgPair + var UNSET_DECIMAL = Decimal(fixed.NaN) + var UNSUPPORTED_VERSION = CodeMsgPair + var UPDATE_TWS = CodeMsgPair + var ZERO = Decimal(fixed.ZERO) + func DecimalMaxString(val Decimal) string + func DecimalToString(d Decimal) string + func EReader(ctx context.Context, client *EClient, scanner *bufio.Scanner, ...) + func FAUpdatedGroup() string + func FillAccumulateDistributeParams(baseOrder *Order, componentSize, timeBetweenOrders int64, ...) + func FillAdaptiveParams(baseOrder *Order, priority string) + func FillArrivalPriceParams(baseOrder *Order, maxPctVol float64, riskAversion, startTime, endTime string, ...) + func FillBalanceImpactRiskParams(baseOrder *Order, maxPctVol float64, riskAversion string, forceCompletion bool) + func FillCSFBInlineParams(baseOrder *Order, startTime, endTime, execStyle string, ...) + func FillClosePriceParams(baseOrder *Order, maxPctVol float64, riskAversion, startTime string, ...) + func FillDarkIceParams(baseOrder *Order, displaySize int64, startTime, endTime string, ...) + func FillJefferiesVWAPParams(baseOrder *Order, startTime, endTime string, ...) + func FillMinImpactParams(baseOrder *Order, maxPctVol float64) + func FillPctVolParams(baseOrder *Order, pctVol float64, startTime, endTime string, noTakeLiq bool) + func FillPriceVariantPctVolParams(baseOrder *Order, pctVol, deltaPctVol, minPctVol4Px, maxPctVol4Px float64, ...) + func FillSizeVariantPctVolParams(baseOrder *Order, startPctVol, endPctVol float64, startTime, endTime string, ...) + func FillTimeVariantPctVolParams(baseOrder *Order, startPctVol, endPctVol float64, startTime, endTime string, ...) + func FillTwapParams(baseOrder *Order, strategyType string, startTime, endTime string, ...) + func FillVwapParams(baseOrder *Order, maxPctVol float64, startTime, endTime string, ...) + func FloatMaxString(val float64) string + func GetAllTags() string + func GetTimeStrFromMillis(timestamp int64) string + func IntMaxString(val int64) string + func IsPrice(tickType TickType) bool + func Logger() *zerolog.Logger + func LongMaxString(val int64) string + func OneCancelsAll(ocaGroup string, ocaOrder *Order, ocaType int64) + func SetConsoleWriter() + func SetLogLevel(logLevel int) + func TickName(t TickType) string + type Account struct + Amount string + ID string + XMLName xml.Name + type AccountSummaryTags = string + const AccountType + const AccruedCash + const AvailableFunds + const BuyingPower + const Cushion + const DayTradesRemaining + const EquityWithLoanValue + const ExcessLiquidity + const FullAvailableFunds + const FullExcessLiquidity + const FullInitMarginReq + const FullMaintMarginReq + const GrossPositionValue + const HighestSeverity + const InitMarginReq + const Leverage + const LookAheadAvailableFunds + const LookAheadExcessLiquidity + const LookAheadInitMarginReq + const LookAheadMaintMarginReq + const LookAheadNextChange + const MaintMarginReq + const NetLiquidation + const PreviousEquityWithLoanValue + const ReqTEquity + const ReqTMargin + const SMA + const SettledCash + const TotalCashValue + type AuctionStrategy = int64 + const AUCTION_IMPROVEMENT + const AUCTION_MATCH + const AUCTION_TRANSPARENT + const AUCTION_UNSET + type Bar struct + BarCount int64 + Close float64 + Date string + High float64 + Low float64 + Open float64 + Volume Decimal + Wap Decimal + func NewBar() Bar + func (b Bar) String() string + type CodeMsgPair struct + Code int64 + Msg string + func (cmp CodeMsgPair) Equal(other CodeMsgPair) bool + func (cmp CodeMsgPair) Error() string + type ComboLeg struct + Action string + ConID int64 + DesignatedLocation string + Exchange string + ExemptCode int64 + OpenClose int64 + Ratio int64 + ShortSaleSlot int64 + func NewComboLeg() ComboLeg + func (c ComboLeg) String() string + type CommissionReport struct + Commission float64 + Currency string + ExecID string + RealizedPNL float64 + Yield float64 + YieldRedemptionDate int64 + func NewCommissionReport() CommissionReport + func (cr CommissionReport) String() string + type ConnState int + const CONNECTED + const CONNECTING + const DISCONNECTED + const REDIRECT + func (cs ConnState) String() string + type Connection struct + func (c *Connection) IsConnected() bool + func (c *Connection) Read(bs []byte) (int, error) + func (c *Connection) Write(bs []byte) (int, error) + type Contract struct + ComboLegs []ComboLeg + ComboLegsDescrip string + ConID int64 + Currency string + DeltaNeutralContract *DeltaNeutralContract + Description string + Exchange string + IncludeExpired bool + IssuerID string + LastTradeDate string + LastTradeDateOrContractMonth string + LocalSymbol string + Multiplier string + PrimaryExchange string + Right string + SecID string + SecIDType string + SecType string + Strike float64 + Symbol string + TradingClass string + func BTbroadtapeNewsFeed() *Contract + func BZbroadtapeNewsFeed() *Contract + func Bond() *Contract + func BondWithCusip() *Contract + func ByConId() *Contract + func ByFIGI() *Contract + func ByISIN() *Contract + func ByIssuerId() *Contract + func CFD() *Contract + func CSFBContract() *Contract + func CashCFD() *Contract + func Commodity() *Contract + func ContAndExpiringFut() *Contract + func ContFut() *Contract + func CryptoContract() *Contract + func DutchWarrant() *Contract + func ETF() *Contract + func EurGbpFx() *Contract + func EuropeanStock() *Contract + func EuropeanStockCFD() *Contract + func FLYbroadtapeNewsFeed() *Contract + func Fund() *Contract + func FutureComboContract() *Contract + func FutureWithLocalSymbol() *Contract + func FutureWithMultiplier() *Contract + func FuturesOnOptions() *Contract + func HKStk() *Contract + func IBKRATSContract() *Contract + func IBKRStk() *Contract + func IBMBond() *Contract + func IBMUSStockAtSmart() *Contract + func Index() *Contract + func InterCmdtyFuturesContract() *Contract + func JefferiesContract() *Contract + func MutualFund() *Contract + func NewContract() *Contract + func NewsFeedForQuery() *Contract + func OptionAtBox() *Contract + func OptionAtIse() *Contract + func OptionComboContract() *Contract + func OptionForQuery() *Contract + func OptionWithLocalSymbol() *Contract + func OptionWithTradingClass() *Contract + func SimpleFuture() *Contract + func SmartFutureComboContract() *Contract + func StockComboContract() *Contract + func StockWithIPOPrice() *Contract + func USOptionContract() *Contract + func USStock() *Contract + func USStockAtSmart() *Contract + func USStockCFD() *Contract + func USStockWithPrimaryExch() *Contract + func Warrants() *Contract + func WrongContract() *Contract + func (c *Contract) Equal(other *Contract) bool + func (c Contract) String() string + type ContractCondition struct + ConID int64 + Exchange string + func (oc ContractCondition) String() string + func (oc ContractCondition) Type() OrderConditionType + type ContractDescription struct + Contract Contract + DerivativeSecTypes []string + func NewContractDescription() ContractDescription + type ContractDetails struct + AggGroup int64 + BondType string + Callable bool + Category string + Contract Contract + ContractMonth string + Convertible bool + Coupon float64 + CouponType string + Cusip string + DescAppend string + EVMultiplier int64 + EVRule string + FundAssetType FundAssetType + FundBackLoad string + FundBackLoadTimeInterval string + FundBlueSkyStates string + FundBlueSkyTerritories string + FundClosed bool + FundClosedForNewInvestors bool + FundClosedForNewMoney bool + FundDistributionPolicyIndicator FundDistributionPolicyIndicator + FundFamily string + FundFrontLoad string + FundManagementFee string + FundMinimumInitialPurchase string + FundName string + FundNotifyAmount string + FundSubsequentMinimumPurchase string + FundType string + Industry string + IneligibilityReasonList []IneligibilityReason + IssueDate string + LastTradeTime string + LiquidHours string + LongName string + MarketName string + MarketRuleIDs string + Maturity string + MinSize Decimal + MinTick float64 + NextOptionDate string + NextOptionPartial bool + NextOptionType string + Notes string + OrderTypes string + PriceMagnifier int64 + Putable bool + Ratings string + RealExpirationDate string + SecIDList []TagValue + SizeIncrement Decimal + StockType string + Subcategory string + SuggestedSizeIncrement Decimal + TimeZoneID string + TradingHours string + UnderConID int64 + UnderSecType string + UnderSymbol string + ValidExchanges string + func NewContractDetails() *ContractDetails + func (c ContractDetails) String() string + type Decimal fixed.Fixed + func StringToDecimal(s string) Decimal + func StringToDecimalErr(s string) (Decimal, error) + func (d *Decimal) UnmarshalBinary(data []byte) error + func (d Decimal) Float() float64 + func (d Decimal) Int() int64 + func (d Decimal) MarshalBinary() ([]byte, error) + func (d Decimal) String() string + type DeltaNeutralContract struct + ConID int64 + Delta float64 + Price float64 + func NewDeltaNeutralContract() DeltaNeutralContract + func (c DeltaNeutralContract) String() string + type DepthMktDataDescription struct + AggGroup int64 + Exchange string + ListingExch string + SecType string + ServiceDataType string + func NewDepthMktDataDescription() DepthMktDataDescription + func (d DepthMktDataDescription) String() string + type EClient struct + Cancel context.CancelFunc + Ctx context.Context + func NewEClient(wrapper EWrapper) *EClient + func (c *EClient) CalculateImpliedVolatility(reqID int64, contract *Contract, optionPrice float64, underPrice float64, ...) + func (c *EClient) CalculateOptionPrice(reqID int64, contract *Contract, volatility float64, underPrice float64, ...) + func (c *EClient) CancelAccountSummary(reqID int64) + func (c *EClient) CancelAccountUpdatesMulti(reqID int64) + func (c *EClient) CancelCalculateImpliedVolatility(reqID int64) + func (c *EClient) CancelCalculateOptionPrice(reqID int64) + func (c *EClient) CancelFundamentalData(reqID int64) + func (c *EClient) CancelHeadTimeStamp(reqID int64) + func (c *EClient) CancelHistogramData(reqID int64) + func (c *EClient) CancelHistoricalData(reqID int64) + func (c *EClient) CancelMktData(reqID TickerID) + func (c *EClient) CancelMktDepth(reqID int64, isSmartDepth bool) + func (c *EClient) CancelNewsBulletins() + func (c *EClient) CancelOrder(orderID OrderID, orderCancel OrderCancel) + func (c *EClient) CancelPnL(reqID int64) + func (c *EClient) CancelPnLSingle(reqID int64) + func (c *EClient) CancelPositions() + func (c *EClient) CancelPositionsMulti(reqID int64) + func (c *EClient) CancelRealTimeBars(reqID int64) + func (c *EClient) CancelScannerSubscription(reqID int64) + func (c *EClient) CancelTickByTickData(reqID int64) + func (c *EClient) CancelWshEventData(reqID int64) + func (c *EClient) CancelWshMetaData(reqID int64) + func (c *EClient) Connect(host string, port int, clientID int64) error + func (c *EClient) Disconnect() error + func (c *EClient) ExerciseOptions(reqID TickerID, contract *Contract, exerciseAction int, exerciseQuantity int, ...) + func (c *EClient) IsConnected() bool + func (c *EClient) PlaceOrder(orderID OrderID, contract *Contract, order *Order) + func (c *EClient) QueryDisplayGroups(reqID int64) + func (c *EClient) ReplaceFA(reqID int64, faDataType FaDataType, cxml string) + func (c *EClient) ReqAccountSummary(reqID int64, groupName string, tags string) + func (c *EClient) ReqAccountUpdates(subscribe bool, accountName string) + func (c *EClient) ReqAccountUpdatesMulti(reqID int64, account string, modelCode string, ledgerAndNLV bool) + func (c *EClient) ReqAllOpenOrders() + func (c *EClient) ReqAutoOpenOrders(autoBind bool) + func (c *EClient) ReqCompletedOrders(apiOnly bool) + func (c *EClient) ReqContractDetails(reqID int64, contract *Contract) + func (c *EClient) ReqCurrentTime() + func (c *EClient) ReqExecutions(reqID int64, execFilter ExecutionFilter) + func (c *EClient) ReqFamilyCodes() + func (c *EClient) ReqFundamentalData(reqID int64, contract *Contract, reportType string, ...) + func (c *EClient) ReqGlobalCancel(orderCancel OrderCancel) + func (c *EClient) ReqHeadTimeStamp(reqID int64, contract *Contract, whatToShow string, useRTH bool, ...) + func (c *EClient) ReqHistogramData(reqID int64, contract *Contract, useRTH bool, timePeriod string) + func (c *EClient) ReqHistoricalData(reqID int64, contract *Contract, endDateTime string, duration string, ...) + func (c *EClient) ReqHistoricalNews(reqID int64, contractID int64, providerCode string, startDateTime string, ...) + func (c *EClient) ReqHistoricalTicks(reqID int64, contract *Contract, startDateTime string, endDateTime string, ...) + func (c *EClient) ReqIDs(numIds int64) + func (c *EClient) ReqManagedAccts() + func (c *EClient) ReqMarketDataType(marketDataType int64) + func (c *EClient) ReqMarketRule(marketRuleID int64) + func (c *EClient) ReqMatchingSymbols(reqID int64, pattern string) + func (c *EClient) ReqMktData(reqID TickerID, contract *Contract, genericTickList string, snapshot bool, ...) + func (c *EClient) ReqMktDepth(reqID int64, contract *Contract, numRows int, isSmartDepth bool, ...) + func (c *EClient) ReqMktDepthExchanges() + func (c *EClient) ReqNewsArticle(reqID int64, providerCode string, articleID string, ...) + func (c *EClient) ReqNewsBulletins(allMsgs bool) + func (c *EClient) ReqNewsProviders() + func (c *EClient) ReqOpenOrders() + func (c *EClient) ReqPnL(reqID int64, account string, modelCode string) + func (c *EClient) ReqPnLSingle(reqID int64, account string, modelCode string, contractID int64) + func (c *EClient) ReqPositions() + func (c *EClient) ReqPositionsMulti(reqID int64, account string, modelCode string) + func (c *EClient) ReqRealTimeBars(reqID int64, contract *Contract, barSize int, whatToShow string, useRTH bool, ...) + func (c *EClient) ReqScannerParameters() + func (c *EClient) ReqScannerSubscription(reqID int64, subscription *ScannerSubscription, ...) + func (c *EClient) ReqSecDefOptParams(reqID int64, underlyingSymbol string, futFopExchange string, ...) + func (c *EClient) ReqSmartComponents(reqID int64, bboExchange string) + func (c *EClient) ReqSoftDollarTiers(reqID int64) + func (c *EClient) ReqTickByTickData(reqID int64, contract *Contract, tickType string, numberOfTicks int64, ...) + func (c *EClient) ReqUserInfo(reqID int64) + func (c *EClient) ReqWshEventData(reqID int64, wshEventData WshEventData) + func (c *EClient) ReqWshMetaData(reqID int64) + func (c *EClient) RequestFA(faDataType FaDataType) + func (c *EClient) ServerVersion() Version + func (c *EClient) SetConnectionOptions(opts string) + func (c *EClient) SetServerLogLevel(logLevel int64) + func (c *EClient) SubscribeToGroupEvents(reqID int64, groupID int) + func (c *EClient) TWSConnectionTime() string + func (c *EClient) UnsubscribeFromGroupEvents(reqID int64) + func (c *EClient) UpdateDisplayGroup(reqID int64, contractInfo string) + func (c *EClient) VerifyAndAuthMessage(apiData string, xyzResponse string) + func (c *EClient) VerifyAndAuthRequest(apiName string, apiVersion string, opaqueIsvKey string) + func (c *EClient) VerifyMessage(apiData string) + func (c *EClient) VerifyRequest(apiName string, apiVersion string) + type EDecoder struct + type EWrapper interface + AccountDownloadEnd func(accountName 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, key string, value string, ...) + AccountUpdateMultiEnd func(reqID int64) + BondContractDetails func(reqID int64, contractDetails *ContractDetails) + CommissionReport func(commissionReport CommissionReport) + CompletedOrder func(contract *Contract, order *Order, orderState *OrderState) + CompletedOrdersEnd func() + ConnectAck func() + ConnectionClosed func() + ContractDetails func(reqID int64, contractDetails *ContractDetails) + ContractDetailsEnd func(reqID int64) + CurrentTime func(t int64) + DeltaNeutralValidation func(reqID int64, deltaNeutralContract DeltaNeutralContract) + DisplayGroupList func(reqID int64, groups string) + DisplayGroupUpdated func(reqID int64, contractInfo string) + Error func(reqID TickerID, errTime int64, errCode int64, errString string, ...) + ExecDetails func(reqID int64, contract *Contract, execution *Execution) + ExecDetailsEnd func(reqID int64) + FamilyCodes func(familyCodes []FamilyCode) + FundamentalData func(reqID TickerID, data string) + HeadTimestamp func(reqID int64, headTimestamp string) + HistogramData func(reqID int64, data []HistogramData) + HistoricalData func(reqID int64, bar *Bar) + HistoricalDataEnd func(reqID int64, startDateStr string, endDateStr string) + HistoricalDataUpdate func(reqID int64, bar *Bar) + HistoricalNews func(requestID int64, time string, providerCode string, articleID string, ...) + HistoricalNewsEnd func(requestID int64, hasMore bool) + HistoricalSchedule func(reqID int64, startDarteTime, endDateTime, timeZone string, ...) + 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 TickerID, marketDataType int64) + MarketRule func(marketRuleID int64, priceIncrements []PriceIncrement) + MktDepthExchanges func(depthMktDataDescriptions []DepthMktDataDescription) + NewsArticle func(requestID int64, articleType int64, articleText string) + NewsProviders func(newsProviders []NewsProvider) + NextValidID func(reqID int64) + OpenOrder func(orderID OrderID, contract *Contract, order *Order, orderState *OrderState) + OpenOrderEnd func() + OrderBound func(permID int64, clientID int64, orderID int64) + OrderStatus func(orderID OrderID, status string, filled Decimal, remaining Decimal, ...) + Pnl func(reqID int64, dailyPnL float64, unrealizedPnL float64, realizedPnL float64) + PnlSingle func(reqID int64, pos Decimal, dailyPnL float64, unrealizedPnL float64, ...) + Position func(account string, contract *Contract, position Decimal, avgCost float64) + PositionEnd func() + PositionMulti func(reqID int64, account string, modelCode string, contract *Contract, pos Decimal, ...) + PositionMultiEnd func(reqID int64) + RealtimeBar func(reqID TickerID, time int64, open float64, high float64, low float64, ...) + ReceiveFA func(faDataType FaDataType, cxml string) + ReplaceFAEnd func(reqID int64, text string) + RerouteMktDataReq func(reqID int64, conID int64, exchange string) + RerouteMktDepthReq func(reqID int64, conID int64, exchange string) + ScannerData func(reqID int64, rank int64, contractDetails *ContractDetails, distance string, ...) + ScannerDataEnd func(reqID int64) + ScannerParameters func(xml string) + SecurityDefinitionOptionParameter func(reqID int64, exchange string, underlyingConID int64, tradingClass string, ...) + SecurityDefinitionOptionParameterEnd func(reqID int64) + SmartComponents func(reqID int64, smartComponents []SmartComponent) + SoftDollarTiers func(reqID int64, tiers []SoftDollarTier) + SymbolSamples func(reqID int64, contractDescriptions []ContractDescription) + TickByTickAllLast func(reqID int64, tickType int64, time int64, price float64, size Decimal, ...) + TickByTickBidAsk func(reqID int64, time int64, bidPrice float64, askPrice float64, bidSize Decimal, ...) + TickByTickMidPoint func(reqID int64, time int64, midPoint float64) + TickEFP func(reqID TickerID, tickType TickType, basisPoints float64, ...) + TickGeneric func(reqID TickerID, tickType TickType, value float64) + TickNews func(TickerID TickerID, timeStamp int64, providerCode string, articleID string, ...) + TickOptionComputation func(reqID TickerID, tickType TickType, tickAttrib int64, impliedVol float64, ...) + TickPrice func(reqID TickerID, tickType TickType, price float64, attrib TickAttrib) + TickReqParams func(TickerID TickerID, minTick float64, bboExchange string, ...) + TickSize func(reqID TickerID, tickType TickType, size Decimal) + TickSnapshotEnd func(reqID int64) + TickString func(reqID TickerID, tickType TickType, value string) + UpdateAccountTime func(timeStamp string) + UpdateAccountValue func(tag string, val string, currency string, accountName string) + UpdateMktDepth func(TickerID TickerID, position int64, operation int64, side int64, price float64, ...) + UpdateMktDepthL2 func(TickerID TickerID, position int64, marketMaker string, operation int64, ...) + UpdateNewsBulletin func(msgID int64, msgType int64, newsMessage string, originExch string) + UpdatePortfolio func(contract *Contract, position Decimal, marketPrice float64, marketValue float64, ...) + UserInfo func(reqID int64, whiteBrandingId string) + VerifyAndAuthCompleted func(isSuccessful bool, errorText string) + VerifyAndAuthMessageAPI func(apiData string, xyzChallange string) + VerifyCompleted func(isSuccessful bool, errorText string) + VerifyMessageAPI func(apiData string) + WinError func(text string, lastError int64) + WshEventData func(reqID int64, dataJson string) + WshMetaData func(reqID int64, dataJson string) + type Execution struct + AcctNumber string + AvgPrice float64 + ClientID int64 + CumQty Decimal + EVMultiplier float64 + EVRule string + Exchange string + ExecID string + LastLiquidity int64 + Liquidation int64 + ModelCode string + OrderID int64 + OrderRef string + PendingPriceRevision bool + PermID int64 + Price float64 + Shares Decimal + Side string + Time string + func NewExecution() *Execution + func (e Execution) String() string + type ExecutionCondition struct + Exchange string + SecType string + Symbol string + func NewExecutionCondition(symbol string, secType string, exchange string, isConjunction bool) *ExecutionCondition + func (ec ExecutionCondition) String() string + func (oc ExecutionCondition) Type() OrderConditionType + type ExecutionFilter struct + AcctCode string + ClientID int64 + Exchange string + SecType string + Side string + Symbol string + Time string + type FaDataType int64 + const ALIASES + const GROUPS + func (fa FaDataType) String() string + type FamilyCode struct + AccountID string + FamilyCodeStr string + func NewFamilyCode() FamilyCode + func (f FamilyCode) String() string + type FundAssetType string + const FundAssetTypeAlternative + const FundAssetTypeEquity + const FundAssetTypeFixedIncome + const FundAssetTypeGuaranteed + const FundAssetTypeMoneyMarket + const FundAssetTypeMultiAsset + const FundAssetTypeNone + const FundAssetTypeOthers + const FundAssetTypeSector + type FundDistributionPolicyIndicator string + const FundDistributionPolicyIndicatorAccumulationFund + const FundDistributionPolicyIndicatorIncomeFund + const FundDistributionPolicyIndicatorNone + type Group struct + DefaultMethod string + ListOfAccounts ListOfAccounts + Name string + XMLName xml.Name + type HistogramData struct + Price float64 + Size Decimal + func NewHistogramData() HistogramData + func (hd HistogramData) String() string + type HistoricalSession struct + EndDateTime string + RefDate string + StartDateTime string + func NewHistoricalSession() HistoricalSession + func (h HistoricalSession) String() string + type HistoricalTick struct + Price float64 + Size Decimal + Time int64 + func NewHistoricalTick() HistoricalTick + func (h HistoricalTick) String() string + type HistoricalTickBidAsk struct + PriceAsk float64 + PriceBid float64 + SizeAsk Decimal + SizeBid Decimal + TickAttirbBidAsk TickAttribBidAsk + Time int64 + func NewHistoricalTickBidAsk() HistoricalTickBidAsk + func (h HistoricalTickBidAsk) String() string + type HistoricalTickLast struct + Exchange string + Price float64 + Size Decimal + SpecialConditions string + TickAttribLast TickAttribLast + Time int64 + func NewHistoricalTickLast() HistoricalTickLast + func (h HistoricalTickLast) String() string + func (h HistoricalTickLast) Timestamp() time.Time + type IN = int64 + const ACCOUNT_SUMMARY + const ACCOUNT_SUMMARY_END + const ACCOUNT_UPDATE_MULTI + const ACCOUNT_UPDATE_MULTI_END + const ACCT_DOWNLOAD_END + const ACCT_UPDATE_TIME + const ACCT_VALUE + const BOND_CONTRACT_DATA + const COMMISSION_REPORT + const COMPLETED_ORDER + const COMPLETED_ORDERS_END + const CONTRACT_DATA + const CONTRACT_DATA_END + const CURRENT_TIME + const DELTA_NEUTRAL_VALIDATION + const DISPLAY_GROUP_LIST + const DISPLAY_GROUP_UPDATED + const ERR_MSG + const EXECUTION_DATA + const EXECUTION_DATA_END + const FAMILY_CODES + const FUNDAMENTAL_DATA + const HEAD_TIMESTAMP + const HISTOGRAM_DATA + const HISTORICAL_DATA + const HISTORICAL_DATA_UPDATE + const HISTORICAL_NEWS + const HISTORICAL_NEWS_END + const HISTORICAL_SCHEDULE + const HISTORICAL_TICKS + const HISTORICAL_TICKS_BID_ASK + const HISTORICAL_TICKS_LAST + const MANAGED_ACCTS + const MARKET_DATA_TYPE + const MARKET_DEPTH + const MARKET_DEPTH_L2 + const MARKET_RULE + const MKT_DEPTH_EXCHANGES + const NEWS_ARTICLE + const NEWS_BULLETINS + const NEWS_PROVIDERS + const NEXT_VALID_ID + const OPEN_ORDER + const OPEN_ORDER_END + const ORDER_BOUND + const ORDER_STATUS + const PNL + const PNL_SINGLE + const PORTFOLIO_VALUE + const POSITION_DATA + const POSITION_END + const POSITION_MULTI + const POSITION_MULTI_END + const REAL_TIME_BARS + const RECEIVE_FA + const REPLACE_FA_END + const REROUTE_MKT_DATA_REQ + const REROUTE_MKT_DEPTH_REQ + const SCANNER_DATA + const SCANNER_PARAMETERS + const SECURITY_DEFINITION_OPTION_PARAMETER + const SECURITY_DEFINITION_OPTION_PARAMETER_END + const SMART_COMPONENTS + const SOFT_DOLLAR_TIERS + const SYMBOL_SAMPLES + const TICK_BY_TICK + const TICK_EFP + const TICK_GENERIC + const TICK_NEWS + const TICK_OPTION_COMPUTATION + const TICK_PRICE + const TICK_REQ_PARAMS + const TICK_SIZE + const TICK_SNAPSHOT_END + const TICK_STRING + const USER_INFO + const VERIFY_AND_AUTH_COMPLETED + const VERIFY_AND_AUTH_MESSAGE_API + const VERIFY_COMPLETED + const VERIFY_MESSAGE_API + const WSH_EVENT_DATA + const WSH_META_DATA + type IneligibilityReason struct + Description string + ID string + type LegOpenClose int64 + const CLOSE_POS + const OPEN_POS + const SAME_POS + const UNKNOWN_POS + type ListOfAccounts struct + Accounts []Account + VarName string + XMLName xml.Name + type ListOfGroups struct + Groups []Group + XMLName xml.Name + type MarginCondition struct + Percent int64 + func NewMarginCondition(percent int64, isMore bool, isConjunction bool) *MarginCondition + func (oc MarginCondition) String() string + func (oc MarginCondition) Type() OrderConditionType + type MarketDataType int64 + const DELAYED + const DELAYED_FROZEN + const FROZEN + const REALTIME + func (mdt MarketDataType) String() string + type MsgBuffer struct + func NewMsgBuffer(bs []byte) *MsgBuffer + func (m *MsgBuffer) Reset() + type NewsProvider struct + Code string + Name string + func NewNewsProvider() NewsProvider + func (np NewsProvider) String() string + type OUT = int64 + const CANCEL_ACCOUNT_SUMMARY + const CANCEL_ACCOUNT_UPDATES_MULTI + const CANCEL_CALC_IMPLIED_VOLAT + const CANCEL_CALC_OPTION_PRICE + const CANCEL_FUNDAMENTAL_DATA + const CANCEL_HEAD_TIMESTAMP + const CANCEL_HISTOGRAM_DATA + const CANCEL_HISTORICAL_DATA + const CANCEL_MKT_DATA + const CANCEL_MKT_DEPTH + const CANCEL_NEWS_BULLETINS + const CANCEL_ORDER + const CANCEL_PNL + const CANCEL_PNL_SINGLE + const CANCEL_POSITIONS + const CANCEL_POSITIONS_MULTI + const CANCEL_REAL_TIME_BARS + const CANCEL_SCANNER_SUBSCRIPTION + const CANCEL_TICK_BY_TICK_DATA + const CANCEL_WSH_EVENT_DATA + const CANCEL_WSH_META_DATA + const EXERCISE_OPTIONS + const PLACE_ORDER + const QUERY_DISPLAY_GROUPS + const REPLACE_FA + const REQ_ACCOUNT_SUMMARY + const REQ_ACCOUNT_UPDATES_MULTI + const REQ_ACCT_DATA + const REQ_ALL_OPEN_ORDERS + const REQ_AUTO_OPEN_ORDERS + const REQ_CALC_IMPLIED_VOLAT + const REQ_CALC_OPTION_PRICE + const REQ_COMPLETED_ORDERS + const REQ_CONTRACT_DATA + const REQ_CURRENT_TIME + const REQ_EXECUTIONS + const REQ_FA + const REQ_FAMILY_CODES + const REQ_FUNDAMENTAL_DATA + const REQ_GLOBAL_CANCEL + const REQ_HEAD_TIMESTAMP + const REQ_HISTOGRAM_DATA + const REQ_HISTORICAL_DATA + const REQ_HISTORICAL_NEWS + const REQ_HISTORICAL_TICKS + const REQ_IDS + const REQ_MANAGED_ACCTS + const REQ_MARKET_DATA_TYPE + const REQ_MARKET_RULE + const REQ_MATCHING_SYMBOLS + const REQ_MKT_DATA + const REQ_MKT_DEPTH + const REQ_MKT_DEPTH_EXCHANGES + const REQ_NEWS_ARTICLE + const REQ_NEWS_BULLETINS + const REQ_NEWS_PROVIDERS + const REQ_OPEN_ORDERS + const REQ_PNL + const REQ_PNL_SINGLE + const REQ_POSITIONS + const REQ_POSITIONS_MULTI + const REQ_REAL_TIME_BARS + const REQ_SCANNER_PARAMETERS + const REQ_SCANNER_SUBSCRIPTION + const REQ_SEC_DEF_OPT_PARAMS + const REQ_SMART_COMPONENTS + const REQ_SOFT_DOLLAR_TIERS + const REQ_TICK_BY_TICK_DATA + const REQ_USER_INFO + const REQ_WSH_EVENT_DATA + const REQ_WSH_META_DATA + const SET_SERVER_LOGLEVEL + const START_API + const SUBSCRIBE_TO_GROUP_EVENTS + const UNSUBSCRIBE_FROM_GROUP_EVENTS + const UPDATE_DISPLAY_GROUP + const VERIFY_AND_AUTH_MESSAGE + const VERIFY_AND_AUTH_REQUEST + const VERIFY_MESSAGE + const VERIFY_REQUEST + type OperatorCondition struct + IsMore bool + func (oc OperatorCondition) String() string + func (oc OperatorCondition) Type() OrderConditionType + type Order struct + Account string + Action string + ActiveStartTime string + ActiveStopTime string + AdjustableTrailingUnit int64 + AdjustedOrderType string + AdjustedStopLimitPrice float64 + AdjustedStopPrice float64 + AdjustedTrailingAmount float64 + AdvancedErrorOverride string + AlgoID string + AlgoParams []TagValue + AlgoStrategy string + AllOrNone bool + AuctionStrategy AuctionStrategy + AutoCancelDate string + AutoCancelParent bool + AuxPrice float64 + BasisPoints float64 + BasisPointsType int64 + BlockOrder bool + BondAccruedInterest string + CashQty float64 + ClearingAccount string + ClearingIntent string + ClientID int64 + CompeteAgainstBestOffset float64 + Conditions []OrderCondition + ConditionsCancelOrder bool + ConditionsIgnoreRth bool + ContinuousUpdate bool + CustomerAccount string + Delta float64 + DeltaNeutralAuxPrice float64 + DeltaNeutralClearingAccount string + DeltaNeutralClearingIntent string + DeltaNeutralConID int64 + DeltaNeutralDesignatedLocation string + DeltaNeutralOpenClose string + DeltaNeutralOrderType string + DeltaNeutralSettlingFirm string + DeltaNeutralShortSale bool + DeltaNeutralShortSaleSlot int64 + DesignatedLocation string + DiscretionaryAmt float64 + DiscretionaryUpToLimitPrice bool + DisplaySize int64 + DontUseAutoPriceForHedge bool + Duration int64 + ExemptCode int64 + ExtOperator string + FAGroup string + FAMethod string + FAPercentage string + FilledQuantity Decimal + GoodAfterTime string + GoodTillDate string + HedgeParam string + HedgeType string + Hidden bool + ImbalanceOnly bool + IncludeOvernight bool + IsOmsContainer bool + IsPeggedChangeAmountDecrease bool + LmtPrice float64 + LmtPriceOffset float64 + ManualOrderIndicator int64 + ManualOrderTime string + MidOffsetAtHalf float64 + MidOffsetAtWhole float64 + Mifid2DecisionAlgo string + Mifid2DecisionMaker string + Mifid2ExecutionAlgo string + Mifid2ExecutionTrader string + MinCompeteSize int64 + MinQty int64 + MinTradeQty int64 + ModelCode string + NotHeld bool + 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 + ProfessionalCustomer bool + 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 Decimal + TrailStopPrice float64 + TrailingPercent float64 + Transmit bool + TriggerMethod int64 + TriggerPrice float64 + UsePriceMgmtAlgo bool + Volatility float64 + VolatilityType int64 + WhatIf bool + func AtAuction(action string, quantity Decimal, price float64) *Order + func AttachAdjustableToStop(parent *Order, attachedOrderStopPrice float64, triggerPrice float64, ...) *Order + func AttachAdjustableToStopLimit(parent *Order, attachedOrderStopPrice float64, triggerPrice float64, ...) *Order + func AttachAdjustableToTrail(parent *Order, attachedOrderStopPrice float64, triggerPrice float64, ...) *Order + func AuctionLimit(action string, quantity Decimal, price float64, auctionStrategy int64) *Order + func AuctionPeggedToStock(action string, quantity Decimal, startingPrice float64, delta float64) *Order + func AuctionRelative(action string, quantity Decimal, offset float64) *Order + func Block(action string, quantity Decimal, price float64) *Order + func BoxTop(action string, quantity Decimal) *Order + func BracketOrder(parentOrderId int64, action string, quantity Decimal, limitPrice float64, ...) (parent, takeProfit, stopLoss *Order) + func ComboLimitOrder(action string, quantity Decimal, limitPrice float64, nonGuaranteed bool) *Order + func ComboMarketOrder(action string, quantity Decimal, nonGuaranteed bool) *Order + func Discretionary(action string, quantity Decimal, price float64, discretionaryAmount float64) *Order + func LimitIBKRATS(action string, quantity Decimal, limitPrice float64) *Order + func LimitIfTouched(action string, quantity Decimal, limitPrice float64, triggerPrice float64) *Order + func LimitOnClose(action string, quantity Decimal, limitPrice float64) *Order + func LimitOnOpen(action string, quantity Decimal, limitPrice float64) *Order + func LimitOrder(action string, quantity Decimal, limitPrice float64) *Order + func LimitOrderForComboWithLegPrices(action string, quantity Decimal, legPrices []float64, nonGuaranteed bool) *Order + func LimitOrderWithCashQty(action string, limitPrice float64, cashQty float64) *Order + func LimitOrderWithCmeTaggingFields(action string, quantity Decimal, limitPrice float64, extOperator string, ...) *Order + func LimitOrderWithCustomerAccount(action string, quantity Decimal, limitPrice float64, customerAccount string) *Order + func LimitOrderWithIncludeOvernight(action string, quantity Decimal, limitPrice float64) *Order + func LimitOrderWithManualOrderTime(action string, quantity Decimal, limitPrice float64, manualOrderTime string) *Order + func MarketFHedge(parentOrderId int64, action string) *Order + func MarketIfTouched(action string, quantity Decimal, price float64) *Order + func MarketOnClose(action string, quantity Decimal) *Order + func MarketOnOpen(action string, quantity Decimal) *Order + func MarketOrder(action string, quantity Decimal) *Order + func MarketToLimit(action string, quantity Decimal) *Order + func MarketWithProtection(action string, quantity Decimal) *Order + func MidpointMatch(action string, quantity Decimal) *Order + func Midprice(action string, quantity Decimal, priceCap float64) *Order + func NewOrder() *Order + func PassiveRelative(action string, quantity Decimal, offset float64) *Order + func PegBestOrder(action string, quantity Decimal, limitPrice float64, minTradeQty int64, ...) *Order + func PegBestUpToMidOrder(action string, quantity Decimal, limitPrice float64, minTradeQty int64, ...) *Order + func PegMidOrder(action string, quantity Decimal, limitPrice float64, minTradeQty int64, ...) *Order + func PeggedToBenchmark(action string, quantity Decimal, startingPrice float64, ...) *Order + func PeggedToMarket(action string, quantity Decimal, marketOffset float64) *Order + func PeggedToMidpoint(action string, quantity Decimal, offset float64, limitPrice float64) *Order + func PeggedToStock(action string, quantity Decimal, delta float64, stockReferencePrice float64, ...) *Order + func RelativeLimitCombo(action string, quantity Decimal, limitPrice float64, nonGuaranteed bool) *Order + func RelativeMarketCombo(action string, quantity Decimal, nonGuaranteed bool) *Order + func RelativePeggedToPrimary(action string, quantity Decimal, priceCap float64, offsetAmount float64) *Order + func Stop(action string, quantity Decimal, stopPrice float64) *Order + func StopLimit(action string, quantity Decimal, limitPrice float64, stopPrice float64) *Order + func StopWithProtection(action string, quantity Decimal, stopPrice float64) *Order + func SweepToFill(action string, quantity Decimal, price float64) *Order + func TrailingStop(action string, quantity Decimal, trailingPercent float64, ...) *Order + func TrailingStopLimit(action string, quantity Decimal, lmtPriceOffset float64, ...) *Order + func Volatility(action string, quantity Decimal, volatilityPercent float64, ...) *Order + func WhatIfLimitOrder(action string, quantity Decimal, limitPrice float64) *Order + func (o *Order) HasSameID(other *Order) bool + func (o Order) String() string + type OrderAllocation struct + Account string + AllowedAllocQty Decimal + DesiredAllocQty Decimal + IsMonetary bool + Position Decimal + PositionAfter Decimal + PositionDesired Decimal + func NewOrderAllocation() *OrderAllocation + func (oa OrderAllocation) String() string + type OrderCancel struct + ExtOperator string + ManualOrderCancelTime string + ManualOrderIndicator int64 + func CancelOrderEmpty() OrderCancel + func CancelOrderWithManualTime(manualOrderCancelTime string) OrderCancel + func NewOrderCancel() OrderCancel + func OrderCancelWithCmeTaggingFields(extOperator string, manualOrderIndicator int64) OrderCancel + func (o OrderCancel) String() string + type OrderComboLeg struct + Price float64 + func NewOrderComboLeg() OrderComboLeg + func (o OrderComboLeg) String() string + type OrderCondition interface + Type func() OrderConditionType + func CreateOrderCondition(condType OrderConditionType) OrderCondition + type OrderConditionType = int64 + const ExecutionOrderCondition + const MarginOrderCondition + const PercentChangeOrderCondition + const PriceOrderCondition + const TimeOrderCondition + const VolumeOrderCondition + type OrderDecoder struct + type OrderID = int64 + type OrderState struct + Commission float64 + CommissionCurrency string + CompletedStatus string + CompletedTime string + EquityWithLoanAfter string + EquityWithLoanAfterOutsideRTH float64 + EquityWithLoanBefore string + EquityWithLoanBeforeOutsideRTH float64 + EquityWithLoanChange string + EquityWithLoanChangeOutsideRTH float64 + InitMarginAfter string + InitMarginAfterOutsideRTH float64 + InitMarginBefore string + InitMarginBeforeOutsideRTH float64 + InitMarginChange string + InitMarginChangeOutsideRTH float64 + MaintMarginAfter string + MaintMarginAfterOutsideRTH float64 + MaintMarginBefore string + MaintMarginBeforeOutsideRTH float64 + MaintMarginChange string + MaintMarginChangeOutsideRTH float64 + MarginCurrency string + MaxCommission float64 + MinCommission float64 + OrderAllocations []*OrderAllocation + RejectReason string + Status string + SuggestedSize Decimal + WarningText string + func NewOrderState() *OrderState + func (os OrderState) String() string + type PercentChangeCondition struct + ChangePercent float64 + func NewPercentageChangeCondition(pctChange float64, conId int64, exchange string, isMore bool, ...) *PercentChangeCondition + func (oc PercentChangeCondition) String() string + func (oc PercentChangeCondition) Type() OrderConditionType + type PriceCondition struct + Price float64 + TriggerMethod int64 + func NewPriceCondition(triggerMethod int64, conId int64, exchange string, price float64, isMore bool, ...) *PriceCondition + func (oc PriceCondition) String() string + func (oc PriceCondition) Type() OrderConditionType + type PriceIncrement struct + Increment float64 + LowEdge float64 + func NewPriceIncrement() PriceIncrement + func (p PriceIncrement) String() string + type RealTimeBar struct + Close float64 + Count int64 + EndTime int64 + High float64 + Low float64 + Open float64 + Time int64 + Volume Decimal + Wap Decimal + func NewRealTimeBar() RealTimeBar + func (rb RealTimeBar) String() string + type ScanData struct + Benchmark string + ContractDetails *ContractDetails + Distance string + LegsStr 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 ComplexOrdersAndTrades() *ScannerSubscription + func HighOptVolumePCRatioUSIndexes() *ScannerSubscription + func HotUSStkByVolume() *ScannerSubscription + func MostActiveFutEurex() *ScannerSubscription + func NewScannerSubscription() *ScannerSubscription + func TopPercentGainersIbis() *ScannerSubscription + func (s ScannerSubscription) String() string + type SmartComponent struct + BitNumber int64 + Exchange string + ExchangeLetter string + func NewSmartComponent() SmartComponent + func (s SmartComponent) String() string + type SoftDollarTier struct + DisplayName string + Name string + Value string + func NewSoftDollarTier() SoftDollarTier + func (s SoftDollarTier) String() string + type TagValue struct + Tag string + Value string + func NewTagValue() TagValue + func (tv TagValue) String() string + type TickAttrib struct + CanAutoExecute bool + PastLimit bool + PreOpen bool + func NewTickAttrib() TickAttrib + func (t TickAttrib) String() string + type TickAttribBidAsk struct + AskPastHigh bool + BidPastLow bool + func NewTickAttribBidAsk() TickAttribBidAsk + func (t TickAttribBidAsk) String() string + type TickAttribLast struct + PastLimit bool + Unreported bool + func NewTickAttribLast() TickAttribLast + func (t TickAttribLast) String() string + type TickType = int64 + const ASK + const ASK_EFP_COMPUTATION + const ASK_EXCH + const ASK_OPTION_COMPUTATION + const ASK_SIZE + const ASK_YIELD + const AUCTION_IMBALANCE + const AUCTION_PRICE + 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 CREDITMAN_MARK_PRICE + const CREDITMAN_SLOW_MARK_PRICE + const CUST_OPTION_COMPUTATION + 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_HALTED + 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 DELAYED_YIELD_ASK + const DELAYED_YIELD_BID + const ESTIMATED_IPO_MIDPOINT + const ETF_FROZEN_NAV_LAST + const ETF_NAV_ASK + const ETF_NAV_BID + const ETF_NAV_CLOSE + const ETF_NAV_HIGH + const ETF_NAV_LAST + const ETF_NAV_LOW + const ETF_NAV_PRIOR_CLOSE + const FINAL_IPO_LAST + 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 MODEL_OPTION + const NEWS_TICK + const NOT_SET + const OPEN + const OPEN_EFP_COMPUTATION + const OPEN_INTEREST + 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 REGULATORY_IMBALANCE + const REUTERS_2_MUTUAL_FUNDS + const RT_HISTORICAL_VOL + const RT_TRD_VOLUME + const RT_VOLUME + const SHORTABLE + const SHORTABLE_SHARES + const SHORT_TERM_VOLUME_10_MIN + const SHORT_TERM_VOLUME_3_MIN + const SHORT_TERM_VOLUME_5_MIN + const SOCIAL_MARKET_ANALYTICS + const TRADE_COUNT + const TRADE_RATE + const VOLUME + const VOLUME_RATE + type TickerID = int64 + type TimeCondition struct + Time string + func NewTimeCondition(time string, isMore bool, isConjunction bool) *TimeCondition + func (oc TimeCondition) String() string + func (oc TimeCondition) Type() OrderConditionType + type Version = int + const MAX_CLIENT_VER + const MIN_CLIENT_VER + const MIN_SERVER_VER_ACCOUNT_SUMMARY + const MIN_SERVER_VER_ADVANCED_ORDER_REJECT + const MIN_SERVER_VER_AGG_GROUP + const MIN_SERVER_VER_ALGO_ID + const MIN_SERVER_VER_ALGO_ORDERS + const MIN_SERVER_VER_API_BIND_ORDER + const MIN_SERVER_VER_AUTO_CANCEL_PARENT + const MIN_SERVER_VER_AUTO_PRICE_FOR_HEDGE + const MIN_SERVER_VER_BOND_ACCRUED_INTEREST + const MIN_SERVER_VER_BOND_ISSUERID + const MIN_SERVER_VER_BOND_TRADING_HOURS + const MIN_SERVER_VER_CANCEL_CALC_IMPLIED_VOLAT + const MIN_SERVER_VER_CANCEL_CALC_OPTION_PRICE + const MIN_SERVER_VER_CANCEL_HEADTIMESTAMP + const MIN_SERVER_VER_CASH_QTY + const MIN_SERVER_VER_CFD_REROUTE + const MIN_SERVER_VER_CME_TAGGING_FIELDS + const MIN_SERVER_VER_CME_TAGGING_FIELDS_IN_OPEN_ORDER + const MIN_SERVER_VER_COMPLETED_ORDERS + const MIN_SERVER_VER_CONTRACT_DATA_CHAIN + const MIN_SERVER_VER_CRYPTO_AGGREGATED_TRADES + const MIN_SERVER_VER_CUSTOMER_ACCOUNT + const MIN_SERVER_VER_DECISION_MAKER + const MIN_SERVER_VER_DELTA_NEUTRAL + const MIN_SERVER_VER_DELTA_NEUTRAL_CONID + const MIN_SERVER_VER_DELTA_NEUTRAL_OPEN_CLOSE + const MIN_SERVER_VER_DURATION + const MIN_SERVER_VER_D_PEG_ORDERS + const MIN_SERVER_VER_ENCODE_MSG_ASCII7 + const MIN_SERVER_VER_ERROR_TIME + const MIN_SERVER_VER_EXECUTION_DATA_CHAIN + const MIN_SERVER_VER_EXT_OPERATOR + const MIN_SERVER_VER_FA_PROFILE_DESUPPORT + const MIN_SERVER_VER_FRACTIONAL_POSITIONS + const MIN_SERVER_VER_FRACTIONAL_SIZE_SUPPORT + const MIN_SERVER_VER_FULL_ORDER_PREVIEW_FIELDS + const MIN_SERVER_VER_FUNDAMENTAL_DATA + const MIN_SERVER_VER_FUND_DATA_FIELDS + const MIN_SERVER_VER_HEDGE_ORDERS + const MIN_SERVER_VER_HISTORICAL_SCHEDULE + const MIN_SERVER_VER_HISTORICAL_TICKS + const MIN_SERVER_VER_HMDS_MARKET_DATA_IN_SHARES + const MIN_SERVER_VER_INCLUDE_OVERNIGHT + const MIN_SERVER_VER_INELIGIBILITY_REASONS + const MIN_SERVER_VER_INSTRUMENT_TIMEZONE + const MIN_SERVER_VER_IPO_PRICES + const MIN_SERVER_VER_LAST_LIQUIDITY + const MIN_SERVER_VER_LAST_TRADE_DATE + const MIN_SERVER_VER_LINKING + const MIN_SERVER_VER_LINKING_AUTH + const MIN_SERVER_VER_MANUAL_ORDER_TIME + const MIN_SERVER_VER_MANUAL_ORDER_TIME_EXERCISE_OPTIONS + const MIN_SERVER_VER_MARKET_CAP_PRICE + const MIN_SERVER_VER_MARKET_DATA_IN_SHARES + const MIN_SERVER_VER_MARKET_RULES + const MIN_SERVER_VER_MD_SIZE_MULTIPLIER + const MIN_SERVER_VER_MIFID_EXECUTION + const MIN_SERVER_VER_MKT_DEPTH_PRIM_EXCHANGE + const MIN_SERVER_VER_MODELS_SUPPORT + const MIN_SERVER_VER_NEWS_QUERY_ORIGINS + const MIN_SERVER_VER_NOT_HELD + const MIN_SERVER_VER_NO_DEFAULT_OPEN_CLOSE + const MIN_SERVER_VER_OPEN_ORDER_AD_STRATEGY + const MIN_SERVER_VER_OPTIONAL_CAPABILITIES + const MIN_SERVER_VER_OPT_OUT_SMART_ROUTING + const MIN_SERVER_VER_ORDER_COMBO_LEGS_PRICE + const MIN_SERVER_VER_ORDER_CONTAINER + const MIN_SERVER_VER_ORDER_SOLICITED + const MIN_SERVER_VER_PAST_LIMIT + const MIN_SERVER_VER_PEGBEST_PEGMID_OFFSETS + const MIN_SERVER_VER_PEGGED_TO_BENCHMARK + const MIN_SERVER_VER_PENDING_PRICE_REVISION + const MIN_SERVER_VER_PERM_ID_AS_LONG + const MIN_SERVER_VER_PLACE_ORDER_CONID + const MIN_SERVER_VER_PNL + const MIN_SERVER_VER_POSITIONS + const MIN_SERVER_VER_POST_TO_ATS + const MIN_SERVER_VER_PRE_OPEN_BID_ASK + const MIN_SERVER_VER_PRICE_BASED_VOLATILITY + const MIN_SERVER_VER_PRICE_MGMT_ALGO + const MIN_SERVER_VER_PRIMARYEXCH + const MIN_SERVER_VER_PROFESSIONAL_CUSTOMER + const MIN_SERVER_VER_PTA_ORDERS + const MIN_SERVER_VER_RANDOMIZE_SIZE_AND_PRICE + const MIN_SERVER_VER_REALIZED_PNL + const MIN_SERVER_VER_REAL_EXPIRATION_DATE + const MIN_SERVER_VER_REMOVE_NULL_ALL_CASTING + const MIN_SERVER_VER_REPLACE_FA_END + const MIN_SERVER_VER_REQ_CALC_IMPLIED_VOLAT + const MIN_SERVER_VER_REQ_CALC_OPTION_PRICE + const MIN_SERVER_VER_REQ_FAMILY_CODES + const MIN_SERVER_VER_REQ_GLOBAL_CANCEL + const MIN_SERVER_VER_REQ_HEAD_TIMESTAMP + const MIN_SERVER_VER_REQ_HISTOGRAM + const MIN_SERVER_VER_REQ_HISTORICAL_NEWS + const MIN_SERVER_VER_REQ_MARKET_DATA_TYPE + const MIN_SERVER_VER_REQ_MATCHING_SYMBOLS + const MIN_SERVER_VER_REQ_MKT_DATA_CONID + const MIN_SERVER_VER_REQ_MKT_DEPTH_EXCHANGES + const MIN_SERVER_VER_REQ_NEWS_ARTICLE + const MIN_SERVER_VER_REQ_NEWS_PROVIDERS + const MIN_SERVER_VER_REQ_SMART_COMPONENTS + const MIN_SERVER_VER_RFQ_FIELDS + const MIN_SERVER_VER_SCALE_ORDERS2 + const MIN_SERVER_VER_SCALE_ORDERS3 + const MIN_SERVER_VER_SCALE_TABLE + const MIN_SERVER_VER_SCANNER_GENERIC_OPTS + const MIN_SERVER_VER_SEC_DEF_OPT_PARAMS_REQ + const MIN_SERVER_VER_SEC_ID_TYPE + const MIN_SERVER_VER_SEND_ALL_FAMILY_CODES + const MIN_SERVER_VER_SERVICE_DATA_TYPE + const MIN_SERVER_VER_SIZE_RULES + const MIN_SERVER_VER_SMART_COMBO_ROUTING_PARAMS + const MIN_SERVER_VER_SMART_DEPTH + const MIN_SERVER_VER_SOFT_DOLLAR_TIER + const MIN_SERVER_VER_SSHORTX + const MIN_SERVER_VER_SSHORTX_OLD + const MIN_SERVER_VER_STOCK_TYPE + const MIN_SERVER_VER_SYNT_REALTIME_BARS + const MIN_SERVER_VER_TICK_BY_TICK + const MIN_SERVER_VER_TICK_BY_TICK_IGNORE_SIZE + const MIN_SERVER_VER_TICK_NEWS + const MIN_SERVER_VER_TRADING_CLASS + const MIN_SERVER_VER_TRAILING_PERCENT + const MIN_SERVER_VER_UNDERLYING_INFO + const MIN_SERVER_VER_UNDO_RFQ_FIELDS + const MIN_SERVER_VER_UNREALIZED_PNL + const MIN_SERVER_VER_USER_INFO + const MIN_SERVER_VER_WHAT_IF_EXT_FIELDS + const MIN_SERVER_VER_WSHE_CALENDAR + const MIN_SERVER_VER_WSH_EVENT_DATA_FILTERS + const MIN_SERVER_VER_WSH_EVENT_DATA_FILTERS_DATE + type VolumeCondition struct + Volume int64 + func NewVolumeCondition(conId int64, exchange string, isMore bool, volume int64, isConjunction bool) *VolumeCondition + func (oc VolumeCondition) String() string + func (oc VolumeCondition) Type() OrderConditionType + type Wrapper struct + func (w Wrapper) AccountDownloadEnd(accountName 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, key string, value string, ...) + func (w Wrapper) AccountUpdateMultiEnd(reqID int64) + func (w Wrapper) BondContractDetails(reqID int64, contractDetails *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, contractDetails *ContractDetails) + func (w Wrapper) ContractDetailsEnd(reqID int64) + func (w Wrapper) CurrentTime(t int64) + 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 TickerID, errorTime 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(familyCodes []FamilyCode) + func (w Wrapper) FundamentalData(reqID int64, data string) + func (w Wrapper) HeadTimestamp(reqID int64, headTimestamp string) + func (w Wrapper) HistogramData(reqID int64, data []HistogramData) + func (w Wrapper) HistoricalData(reqID int64, bar *Bar) + func (w Wrapper) HistoricalDataEnd(reqID int64, startDateStr string, endDateStr string) + func (w Wrapper) HistoricalDataUpdate(reqID int64, bar *Bar) + func (w Wrapper) HistoricalNews(requestID int64, time string, providerCode string, articleID string, ...) + func (w Wrapper) HistoricalNewsEnd(requestID int64, hasMore bool) + func (w Wrapper) HistoricalSchedule(reqID int64, startDarteTime, endDateTime, timeZone string, ...) + 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(requestID int64, articleType int64, articleText string) + func (w Wrapper) NewsProviders(newsProviders []NewsProvider) + func (w Wrapper) NextValidID(reqID int64) + func (w Wrapper) OpenOrder(orderID OrderID, contract *Contract, order *Order, orderState *OrderState) + func (w Wrapper) OpenOrderEnd() + func (w Wrapper) OrderBound(permID int64, clientID int64, orderID int64) + func (w Wrapper) OrderStatus(orderID OrderID, status string, filled Decimal, remaining Decimal, ...) + func (w Wrapper) Pnl(reqID int64, dailyPnL float64, unrealizedPnL float64, realizedPnL float64) + func (w Wrapper) PnlSingle(reqID int64, pos Decimal, dailyPnL float64, unrealizedPnL float64, ...) + func (w Wrapper) Position(account string, contract *Contract, position Decimal, avgCost float64) + func (w Wrapper) PositionEnd() + func (w Wrapper) PositionMulti(reqID int64, account string, modelCode string, contract *Contract, pos Decimal, ...) + func (w Wrapper) PositionMultiEnd(reqID int64) + func (w Wrapper) RealtimeBar(reqID int64, time int64, open float64, high float64, low float64, ...) + func (w Wrapper) ReceiveFA(faDataType FaDataType, cxml string) + func (w Wrapper) ReplaceFAEnd(reqID int64, text string) + func (w Wrapper) RerouteMktDataReq(reqID int64, conID int64, exchange string) + func (w Wrapper) RerouteMktDepthReq(reqID int64, conID int64, exchange string) + func (w Wrapper) ScannerData(reqID int64, rank int64, contractDetails *ContractDetails, distance string, ...) + func (w Wrapper) ScannerDataEnd(reqID int64) + func (w Wrapper) ScannerParameters(xml string) + func (w Wrapper) SecurityDefinitionOptionParameter(reqID int64, exchange string, underlyingConID int64, tradingClass string, ...) + func (w Wrapper) SecurityDefinitionOptionParameterEnd(reqID int64) + func (w Wrapper) SmartComponents(reqID int64, smartComponents []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 Decimal, ...) + func (w Wrapper) TickByTickBidAsk(reqID int64, time int64, bidPrice float64, askPrice float64, bidSize Decimal, ...) + func (w Wrapper) TickByTickMidPoint(reqID int64, time int64, midPoint float64) + func (w Wrapper) TickEFP(reqID TickerID, tickType TickType, basisPoints float64, ...) + func (w Wrapper) TickGeneric(reqID TickerID, tickType TickType, value float64) + func (w Wrapper) TickNews(TickerID TickerID, timeStamp int64, providerCode string, articleID string, ...) + func (w Wrapper) TickOptionComputation(reqID TickerID, tickType TickType, tickAttrib int64, impliedVol float64, ...) + func (w Wrapper) TickPrice(reqID TickerID, tickType TickType, price float64, attrib TickAttrib) + func (w Wrapper) TickReqParams(TickerID TickerID, minTick float64, bboExchange string, ...) + func (w Wrapper) TickSize(reqID TickerID, tickType TickType, size Decimal) + func (w Wrapper) TickSnapshotEnd(reqID int64) + func (w Wrapper) TickString(reqID TickerID, tickType TickType, value string) + func (w Wrapper) UpdateAccountTime(timeStamp string) + func (w Wrapper) UpdateAccountValue(tag string, value string, currency string, accountName string) + func (w Wrapper) UpdateMktDepth(TickerID TickerID, position int64, operation int64, side int64, price float64, ...) + func (w Wrapper) UpdateMktDepthL2(TickerID TickerID, position int64, marketMaker string, operation int64, ...) + func (w Wrapper) UpdateNewsBulletin(msgID int64, msgType int64, newsMessage string, originExch string) + func (w Wrapper) UpdatePortfolio(contract *Contract, position Decimal, marketPrice float64, marketValue float64, ...) + func (w Wrapper) UserInfo(reqID int64, whiteBrandingId string) + func (w Wrapper) VerifyAndAuthCompleted(isSuccessful bool, errorText string) + func (w Wrapper) VerifyAndAuthMessageAPI(apiData string, xyzChallange string) + func (w Wrapper) VerifyCompleted(isSuccessful bool, errorText string) + func (w Wrapper) VerifyMessageAPI(apiData string) + func (w Wrapper) WinError(text string, lastError int64) + func (w Wrapper) WshEventData(reqID int64, dataJson string) + func (w Wrapper) WshMetaData(reqID int64, dataJson string) + type WshEventData struct + ConID int64 + EndDate string + FillCompetitors bool + FillPortfolio bool + FillWatchList bool + Filter string + StartDate string + TotalLimit int64 + func NewWshEventData() WshEventData + func (w WshEventData) String() string