Versions in this module Expand all Collapse all v0 v0.3.4 Aug 10, 2024 Changes in this version + type Bar struct + Close float64 + Count int + High float64 + Low float64 + Open float64 + Time time.Time + Volume int64 + WAP float64 + type BidAsk struct + AskPrice float64 + AskSize int64 + BidAskAttribute BidAskAttribute + BidPrice float64 + BidSize int64 + Time time.Time + type BidAskAttribute struct + AskPastHigh bool + BidPastLow bool + type ComboLeg struct + Action string + ContractId int + DesignatedLocation string + Exchange string + ExemptCode int + OpenClose int + Ratio int + ShortSaleSlot int + type Contract struct + ComboLegs []ComboLeg + ComboLegsDescription string + ContractId int + Currency string + DeltaNeutralContract DeltaNeutralContract + Exchange string + IncludeExpired bool + LastTradeDateOrContractMonth string + LocalSymbol string + Multiplier string + PrimaryExchange string + Right string + SecurityId string + SecurityIdType string + SecurityType string + Strike float64 + Symbol string + TradingClass string + type ContractDetails struct + AggGroup int + BondType string + Callable bool + Category string + Contract Contract + ContractMonth string + Convertible bool + Coupon float64 + CouponType string + Cusip string + DescAppend string + EvMultiplier int + EvRule string + Industry string + IssueDate string + LastTradeTime string + LiquidHours string + LongName string + MarketName string + MarketRuleIds string + Maturity string + MinSize float64 + MinTick float64 + NextOptionDate string + NextOptionPartial bool + NextOptionType string + Notes string + OrderTypes string + PriceMagnifier int + Putable bool + Ratings string + RealExpirationDate string + SecIdList []TagValue + SizeIncrement float64 + StockType string + Subcategory string + SuggestedSizeIncrement float64 + TimeZoneId string + TradingHours string + UnderContractId int + UnderSecType string + UnderSymbol string + ValidExchanges string + type DeltaNeutralContract struct + ContractId string + Delta float64 + Price float64 + type IbClient struct + ManagedAccounts string + MessageBus MessageBus + NextValidOrderId int + ServerTime time.Time + ServerVersion int + Wg sync.WaitGroup + func Connect(host string, port int, clientId int) (*IbClient, error) + func (c *IbClient) Close() error + func (c *IbClient) ContractDetails(ctx context.Context, contract Contract) ([]ContractDetails, error) + func (c *IbClient) RealTimeBars(ctx context.Context, contract Contract, whatToShow string, useRth bool) (<-chan Bar, error) + func (c *IbClient) TickByTickBidAsk(ctx context.Context, contract Contract) (chan BidAsk, error) + func (c *IbClient) TickByTickTrades(ctx context.Context, contract Contract) (chan Trade, error) + type MessageBus interface + Close func() error + ReadPacket func() (string, error) + Write func(string) error + WritePacket func(string) error + type MessageBusRecorder struct + Bus MessageBus + func (b *MessageBusRecorder) Close() error + func (b *MessageBusRecorder) ReadPacket() (string, error) + func (b *MessageBusRecorder) Write(data string) error + func (b *MessageBusRecorder) WritePacket(packet string) error + type TagValue struct + Tag string + Value string + type TcpMessageBus struct + func (b *TcpMessageBus) Close() error + func (b *TcpMessageBus) Connect(host string, port int, clientId int) error + func (b *TcpMessageBus) ReadPacket() (string, error) + func (b *TcpMessageBus) Write(data string) error + func (b *TcpMessageBus) WritePacket(data string) error + type Trade struct + Exchange string + Price float64 + Size int64 + SpecialConditions string + TickType string + Time time.Time + TradeAttribute TradeAttribute + type TradeAttribute struct + PastLimit bool + Unreported bool