-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | An API for the Interactive Brokers Trading Workstation written in pure Haskell -- @package ib-api @version 0.1.0.0 module IB.Client.Exception data IBExceptionType AlreadyConnected :: IBExceptionType ConnectFail :: IBExceptionType UpdateTWS :: IBExceptionType NotConnected :: IBExceptionType UnknownID :: IBExceptionType ZeroByteRead :: IBExceptionType NullStringRead :: IBExceptionType NoBytesRead :: IBExceptionType SocketException :: IBExceptionType FailCreateSock :: IBExceptionType FailConnectTWS :: IBExceptionType FailSendFARequest :: IBExceptionType FailSendFAReplace :: IBExceptionType FailSendReqScanner :: IBExceptionType FailSendCanScanner :: IBExceptionType FailSendReqScannerParameters :: IBExceptionType FailSendReqHistData :: IBExceptionType FailSendCanHistData :: IBExceptionType FailSendReqRtBars :: IBExceptionType FailSendCanRTBars :: IBExceptionType FailSendReqCurrTime :: IBExceptionType MissingHandler :: IBExceptionType ParseError :: IBExceptionType SystemError :: IBExceptionType data IBException IBExc :: Int -> IBExceptionType -> String -> IBException type CodeMsgPair = (Int, String) excToPair :: IBExceptionType -> CodeMsgPair code :: CodeMsgPair -> Int msg :: CodeMsgPair -> String instance Typeable IBException instance Show IBExceptionType instance Show IBException instance Exception IBException module IB.Client.Nums no_valid_id :: Int no_valid_error_code :: Int client_version :: Int server_version :: Int min_server_ver_pta_orders :: Int min_server_ver_fundamental_data :: Int min_server_ver_under_comp :: Int min_server_ver_contract_data_chain :: Int min_server_ver_scale_orders2 :: Int min_server_ver_algo_orders :: Int min_server_ver_execution_data_chain :: Int min_server_ver_not_held :: Int min_server_ver_sec_id_type :: Int min_server_ver_place_order_conid :: Int min_server_ver_req_mkt_data_conid :: Int min_server_ver_req_calc_implied_volat :: Int min_server_ver_req_calc_option_price :: Int min_server_ver_cancel_calc_implied_volat :: Int min_server_ver_cancel_calc_option_price :: Int min_server_ver_sshortx_old :: Int min_server_ver_sshortx :: Int min_server_ver_req_global_cancel :: Int min_server_ver_hedge_orders :: Int min_server_ver_req_market_data_type :: Int min_server_ver_opt_out_smart_routing :: Int min_server_ver_smart_combo_routing_params :: Int min_server_ver_delta_neutral_conid :: Int min_server_ver_scale_orders3 :: Int min_server_ver_order_combo_legs_price :: Int min_server_ver_trailing_percent :: Int min_server_ver_delta_neutral_open_close :: Int min_server_ver_positions :: Int min_server_ver_account_summary :: Int min_server_ver_trading_class :: Int min_server_ver_scale_table :: Int min_server_ver_linking :: Int module IB.Client.Types data Request MktDataReq :: TickerId -> Contract -> String -> Bool -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId mdr_contract :: Request -> Contract mdr_genericTicks :: Request -> String mdr_snapshot :: Request -> Bool mdr_mktDataOptions :: Request -> [TagValue] CancelMktData :: TickerId -> Request rqp_tickerId :: Request -> TickerId PlaceOrder :: OrderId -> Contract -> Order -> Request rqp_orderId :: Request -> OrderId por_contract :: Request -> Contract por_order :: Request -> Order CancelOrder :: OrderId -> Request rqp_orderId :: Request -> OrderId OpenOrdersReq :: Request AccountUpdatesReq :: Bool -> String -> Request aur_subscribe :: Request -> Bool aur_acctCode :: Request -> String ExecutionsReq :: ReqId -> ExecutionFilter -> Request rqp_reqId :: Request -> ReqId exe_filter :: Request -> ExecutionFilter IdsReq :: Int -> Request ContractDetailsReq :: ReqId -> Contract -> Request rqp_reqId :: Request -> ReqId cdr_contract :: Request -> Contract MktDepthReq :: TickerId -> Contract -> Int -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId mkr_contract :: Request -> Contract mkr_numRows :: Request -> Int mkr_mktDepthOptions :: Request -> [TagValue] CancelMktDepth :: TickerId -> Request NewsBulletinsReq :: Bool -> Request CancelNewsBulletins :: Request SetServerLogLevel :: Int -> Request AutoOpenOrdersReq :: Bool -> Request AllOpenOrdersReq :: Request ManagedAcctsReq :: Request FAReq :: FaDataType -> Request FAReplaceReq :: FaDataType -> String -> Request far_pFaDataType :: Request -> FaDataType far_cxml :: Request -> String HistoricalDataReq :: TickerId -> Contract -> String -> String -> String -> String -> Int -> Int -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId hdr_contract :: Request -> Contract hdr_endDataTime :: Request -> String hdr_durationStr :: Request -> String hdr_barSizeSetting :: Request -> String hdr_whatToShow :: Request -> String hdr_useRTH :: Request -> Int hdr_formatDate :: Request -> Int hdr_chartOptions :: Request -> [TagValue] ExerciseOptionsReq :: TickerId -> Contract -> Int -> Int -> String -> Int -> Request rqp_tickerId :: Request -> TickerId eor_contract :: Request -> Contract eor_exerciseAction :: Request -> Int eor_exerciseQuantity :: Request -> Int eor_account :: Request -> String eor_override :: Request -> Int ScannerSubscriptionReq :: TickerId -> ScannerSubscription -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId ssr_subscription :: Request -> ScannerSubscription ssr_subscriptionOptions :: Request -> [TagValue] CancelScannerSubscription :: TickerId -> Request ScannerParametersReq :: Request CancelHistoricalData :: TickerId -> Request CurrentTimeReq :: Request RealTimeBarsReq :: TickerId -> Contract -> Int -> String -> Bool -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId rtb_contract :: Request -> Contract rtb_barSize :: Request -> Int rtb_whatToShow :: Request -> String rtb_useRTH :: Request -> Bool rtb_realTimeBarsOptions :: Request -> [TagValue] CancelRealTimeBars :: TickerId -> Request FundamentalDataReq :: TickerId -> Contract -> String -> Request rqp_reqId :: Request -> TickerId fdr_contract :: Request -> Contract fdr_reportType :: Request -> String CancelFundamentalData :: TickerId -> Request ImpliedVolatilityReq :: TickerId -> Contract -> Double -> Double -> Request rqp_tickerId :: Request -> TickerId ivr_contract :: Request -> Contract ivr_optionPrice :: Request -> Double ivr_underPrice :: Request -> Double CalcOptionPriceReq :: TickerId -> Contract -> Double -> Double -> Request rqp_tickerId :: Request -> TickerId opr_contract :: Request -> Contract opr_volatility :: Request -> Double opr_underPrice :: Request -> Double CancelCalcImpliedVolatility :: TickerId -> Request CancelCalcOptionPrice :: TickerId -> Request GlobalCancelReq :: Request MarketDataTypeReq :: TickerId -> Request PositionsReq :: Request AccountSummaryReq :: ReqId -> String -> String -> Request rqp_reqId :: Request -> ReqId asr_groupName :: Request -> String asr_tags :: Request -> String CancelAccountSummary :: ReqId -> Request CancelPositions :: Request VerifyReq :: String -> String -> Request vr_apiName :: Request -> String vr_apiVer :: Request -> String VerifyMessage :: String -> Request QueryDisplayGroups :: ReqId -> Request SubscribeToGroupEvents :: ReqId -> GroupId -> Request UpdateDisplayGroup :: Int -> String -> Request rqp_reqId :: Request -> Int udg_contractInfo :: Request -> String UnsubscribeFromGroupEvents :: ReqId -> Request StartApi :: Request data IBMessage TickPrice :: Int -> Int -> Double -> Int -> Int -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int canAutoExecute :: IBMessage -> Int TickSize :: Int -> Int -> Double -> Int -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int OrderStatus :: Int -> String -> Int -> Int -> Double -> Int -> Int -> Double -> Int -> String -> IBMessage orderId :: IBMessage -> Int status :: IBMessage -> String filled :: IBMessage -> Int remaining :: IBMessage -> Int avgFillPrice :: IBMessage -> Double permId :: IBMessage -> Int parentId :: IBMessage -> Int lastFillPrice :: IBMessage -> Double clientId :: IBMessage -> Int whyHeld :: IBMessage -> String Err :: Int -> String -> IBMessage errorCode :: IBMessage -> Int errorMsg :: IBMessage -> String OpenOrder :: Order -> Contract -> [ComboLeg] -> [OrderComboLeg] -> OrderState -> IBMessage order :: IBMessage -> Order contract :: IBMessage -> Contract comboLeg :: IBMessage -> [ComboLeg] orderComboLegs :: IBMessage -> [OrderComboLeg] orderState :: IBMessage -> OrderState AcctValue :: String -> String -> String -> String -> IBMessage key :: IBMessage -> String val :: IBMessage -> String cur :: IBMessage -> String accountName :: IBMessage -> String PortfolioValue :: Contract -> Int -> Double -> Double -> Double -> Double -> Double -> String -> IBMessage contract :: IBMessage -> Contract position :: IBMessage -> Int marketPrice :: IBMessage -> Double marketValue :: IBMessage -> Double averageCost :: IBMessage -> Double unrealizedPNL :: IBMessage -> Double realizedPNL :: IBMessage -> Double accountName :: IBMessage -> String AcctUpdateTime :: String -> IBMessage NextValidId :: Int -> IBMessage ContractData :: ContractDetails -> IBMessage ExecutionData :: Int -> Int -> Contract -> Execution -> IBMessage reqId :: IBMessage -> Int orderId :: IBMessage -> Int contract :: IBMessage -> Contract exec :: IBMessage -> Execution MarketDepth :: Int -> Int -> Int -> Int -> Double -> Int -> IBMessage id :: IBMessage -> Int position :: IBMessage -> Int operation :: IBMessage -> Int side :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int MarketDepthL2 :: Int -> Int -> String -> Int -> Int -> Double -> Int -> IBMessage id :: IBMessage -> Int position :: IBMessage -> Int marketMaker :: IBMessage -> String operation :: IBMessage -> Int side :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int NewsBulletins :: Int -> Int -> String -> String -> IBMessage msgId :: IBMessage -> Int msgType :: IBMessage -> Int newsMessage :: IBMessage -> String originatingExch :: IBMessage -> String ManagedAccts :: String -> IBMessage ReceiveFA :: Int -> String -> IBMessage faDataTypeInt :: IBMessage -> Int cxml :: IBMessage -> String HistoricalData :: Int -> String -> String -> [BarData] -> IBMessage reqId :: IBMessage -> Int startDateStr :: IBMessage -> String endDateStr :: IBMessage -> String barDataList :: IBMessage -> [BarData] BondContractData :: ContractDetails -> IBMessage ScannerParameters :: String -> IBMessage ScannerData :: Int -> [ScanData] -> IBMessage tickerId :: IBMessage -> Int scannerDataList :: IBMessage -> [ScanData] TickOptionComputation :: Int -> Int -> Double -> Double -> Double -> Double -> Double -> Double -> Double -> Double -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int impliedVol :: IBMessage -> Double delta :: IBMessage -> Double optPrice :: IBMessage -> Double pvDividend :: IBMessage -> Double gamma :: IBMessage -> Double vega :: IBMessage -> Double theta :: IBMessage -> Double undPrice :: IBMessage -> Double TickGeneric :: Int -> Int -> Double -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int tg_value :: IBMessage -> Double TickString :: Int -> Int -> String -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int ts_value :: IBMessage -> String TickEFP :: Int -> Int -> Double -> String -> Double -> Int -> String -> Double -> Double -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int basisPoints :: IBMessage -> Double formattedBasisPoints :: IBMessage -> String impliedFuturesPrice :: IBMessage -> Double holdDays :: IBMessage -> Int futureExpiry :: IBMessage -> String dividendImpact :: IBMessage -> Double dividendsToExpiry :: IBMessage -> Double CurrentTime :: Int -> IBMessage RealTimeBars :: Int -> Int -> Double -> Double -> Double -> Double -> Int -> Double -> Int -> IBMessage reqId :: IBMessage -> Int time :: IBMessage -> Int open :: IBMessage -> Double high :: IBMessage -> Double low :: IBMessage -> Double close :: IBMessage -> Double volume :: IBMessage -> Int average :: IBMessage -> Double count :: IBMessage -> Int FundamentalData :: Int -> String -> IBMessage reqId :: IBMessage -> Int fdata :: IBMessage -> String ContractDataEnd :: ReqId -> IBMessage OpenOrderEnd :: IBMessage AcctDownloadEnd :: String -> IBMessage ExecutionDataEnd :: ReqId -> IBMessage DeltaNeutralValidation :: Int -> UnderComp -> IBMessage reqId :: IBMessage -> Int underComp :: IBMessage -> UnderComp TickSnapshotEnd :: ReqId -> IBMessage MarketDataType :: Int -> Int -> IBMessage reqId :: IBMessage -> Int marketDataType :: IBMessage -> Int CommissionReport :: String -> Double -> String -> Double -> Double -> Int -> IBMessage execId :: IBMessage -> String commission :: IBMessage -> Double currency :: IBMessage -> String realizedPNL :: IBMessage -> Double yield :: IBMessage -> Double yieldRedemptionDate :: IBMessage -> Int PositionData :: String -> Contract -> Int -> Double -> IBMessage account :: IBMessage -> String contract :: IBMessage -> Contract position :: IBMessage -> Int avgCost :: IBMessage -> Double PositionEnd :: IBMessage AccountSummary :: Int -> String -> String -> String -> String -> IBMessage reqId :: IBMessage -> Int account :: IBMessage -> String tag :: IBMessage -> String value :: IBMessage -> String currency :: IBMessage -> String AccountSummaryEnd :: ReqId -> IBMessage VerifyMessageAPI :: String -> IBMessage VerifyCompleted :: String -> String -> IBMessage isSuccessful :: IBMessage -> String errorText :: IBMessage -> String DisplayGroupList :: Int -> String -> IBMessage reqId :: IBMessage -> Int groups :: IBMessage -> String DisplayGroupUpdated :: Int -> String -> IBMessage reqId :: IBMessage -> Int contractInfo :: IBMessage -> String IBUnknown :: IBMessage data RecvMsg RecvMsg :: Int -> Int -> IBMessage -> RecvMsg rc_msgId :: RecvMsg -> Int rc_version :: RecvMsg -> Int rc_msgBody :: RecvMsg -> IBMessage type ReqId = Int type OrderComboLeg = Double type TickerId = Int type OrderId = Int type GroupId = Int type MIB = MVar IBServer type HandlerFunc = MIB -> IBMessage -> IO () data IBServer IBServer :: String -> Int -> Int -> Bool -> Int -> Bool -> Int -> Bool -> Maybe Handle -> Maybe ThreadId -> Int -> HandlerFunc -> IBServer s_addr :: IBServer -> String s_port :: IBServer -> Int s_clientId :: IBServer -> Int s_extraAuth :: IBServer -> Bool s_version :: IBServer -> Int s_connected :: IBServer -> Bool s_twsTime :: IBServer -> Int s_debug :: IBServer -> Bool s_sock :: IBServer -> Maybe Handle s_msgThread :: IBServer -> Maybe ThreadId s_timeoutInterval :: IBServer -> Int s_handler :: IBServer -> HandlerFunc data TickType BID_SIZE :: TickType BID :: TickType ASK :: TickType ASK_SIZE :: TickType LAST :: TickType LAST_SIZE :: TickType HIGH :: TickType LOW :: TickType VOLUME :: TickType CLOSE :: TickType BID_OPTION_COMPUTATION :: TickType ASK_OPTION_COMPUTATION :: TickType LAST_OPTION_COMPUTATION :: TickType MODEL_OPTION :: TickType OPEN :: TickType LOW_13_WEEK :: TickType HIGH_13_WEEK :: TickType LOW_26_WEEK :: TickType HIGH_26_WEEK :: TickType LOW_52_WEEK :: TickType HIGH_52_WEEK :: TickType AVG_VOLUME :: TickType OPEN_INTEREST :: TickType OPTION_HISTORICAL_VOL :: TickType OPTION_IMPLIED_VOL :: TickType OPTION_BID_EXCH :: TickType OPTION_ASK_EXCH :: TickType OPTION_CALL_OPEN_INTEREST :: TickType OPTION_PUT_OPEN_INTEREST :: TickType OPTION_CALL_VOLUME :: TickType OPTION_PUT_VOLUME :: TickType INDEX_FUTURE_PREMIUM :: TickType BID_EXCH :: TickType ASK_EXCH :: TickType AUCTION_VOLUME :: TickType AUCTION_PRICE :: TickType AUCTION_IMBALANCE :: TickType MARK_PRICE :: TickType BID_EFP_COMPUTATION :: TickType ASK_EFP_COMPUTATION :: TickType LAST_EFP_COMPUTATION :: TickType OPEN_EFP_COMPUTATION :: TickType HIGH_EFP_COMPUTATION :: TickType LOW_EFP_COMPUTATION :: TickType CLOSE_EFP_COMPUTATION :: TickType LAST_TIMESTAMP :: TickType SHORTABLE :: TickType FUNDAMENTAL_RATIOS :: TickType RT_VOLUME :: TickType HALTED :: TickType BID_YIELD :: TickType ASK_YIELD :: TickType LAST_YIELD :: TickType CUST_OPTION_COMPUTATION :: TickType TRADE_COUNT :: TickType TRADE_RATE :: TickType VOLUME_RATE :: TickType LAST_RTH_TRADE :: TickType NOT_SET :: TickType data FaDataType GROUPS :: FaDataType PROFILES :: FaDataType ALIASES :: FaDataType data Origin CUSTOMER :: Origin FIRM :: Origin UNKNOWN :: Origin data NewsBulletin NEWS_MSG :: NewsBulletin EXCHANGE_AVAIL_MSG :: NewsBulletin EXCHANGE_UNAVAIL_MSG :: NewsBulletin dblMaximum :: Double int32max :: Int int32min :: Int dblCheckNegative :: Double -> Double dblDefaultCheck :: Double -> Double dblBoundsCheck :: Double -> Double -> Double -> Double fromEnum' :: Enum a => a -> Int fromBool :: Num a => Bool -> a isPrice :: TickType -> Bool conToId :: Data a => a -> Int msgToId :: IBMessage -> Int reqToId :: Request -> Int idToMsg :: Int -> IBMessage data Preamble Preamble :: Int -> Int -> Preamble pre_serverVersion :: Preamble -> Int pre_twsTime :: Preamble -> Int data Execution Execution :: String -> String -> String -> String -> String -> Int -> Double -> Int -> Int -> Int -> Int -> Int -> Double -> String -> String -> Double -> Execution ex_execId :: Execution -> String ex_time :: Execution -> String ex_acctNumber :: Execution -> String ex_exchange :: Execution -> String ex_side :: Execution -> String ex_shares :: Execution -> Int ex_price :: Execution -> Double ex_permId :: Execution -> Int ex_clientId :: Execution -> Int ex_liquidation :: Execution -> Int ex_orderId :: Execution -> Int ex_cumQty :: Execution -> Int ex_avgPrice :: Execution -> Double ex_orderRef :: Execution -> String ex_evRule :: Execution -> String ex_evMultiplier :: Execution -> Double data ExecutionFilter ExecutionFilter :: Int -> String -> String -> String -> String -> String -> String -> ExecutionFilter exf_clientId :: ExecutionFilter -> Int exf_acctCode :: ExecutionFilter -> String exf_time :: ExecutionFilter -> String exf_symbol :: ExecutionFilter -> String exf_secType :: ExecutionFilter -> String exf_exchange :: ExecutionFilter -> String exf_side :: ExecutionFilter -> String data BarData BarData :: String -> Double -> Double -> Double -> Double -> Int -> Double -> String -> Int -> BarData bar_date :: BarData -> String bar_open :: BarData -> Double bar_high :: BarData -> Double bar_low :: BarData -> Double bar_close :: BarData -> Double bar_volume :: BarData -> Int bar_average :: BarData -> Double bar_hasGaps :: BarData -> String bar_barCount :: BarData -> Int data ScanData ScanData :: Int -> ContractDetails -> String -> String -> String -> String -> ScanData sd_rank :: ScanData -> Int sd_contract :: ScanData -> ContractDetails sd_distance :: ScanData -> String sd_benchmark :: ScanData -> String sd_projection :: ScanData -> String sd_legsStr :: ScanData -> String data OrderState OrderState :: String -> String -> String -> String -> Double -> Double -> Double -> String -> String -> OrderState os_status :: OrderState -> String os_initMargin :: OrderState -> String os_maintMargin :: OrderState -> String os_equityWithLoan :: OrderState -> String os_commission :: OrderState -> Double os_minCommission :: OrderState -> Double os_maxCommission :: OrderState -> Double os_commissionCurrency :: OrderState -> String os_warningText :: OrderState -> String data TagValue TagValue :: String -> String -> TagValue tv_tag :: TagValue -> String tv_value :: TagValue -> String data ScannerSubscription ScannerSubscription :: Int -> String -> String -> String -> Double -> Double -> Int -> Double -> Double -> String -> String -> String -> String -> String -> String -> Double -> Double -> Int -> Int -> String -> String -> ScannerSubscription ssb_numberOfRows :: ScannerSubscription -> Int ssb_instrument :: ScannerSubscription -> String ssb_locationCode :: ScannerSubscription -> String ssb_scanCode :: ScannerSubscription -> String ssb_abovePrice :: ScannerSubscription -> Double ssb_belowPrice :: ScannerSubscription -> Double ssb_aboveVolume :: ScannerSubscription -> Int ssb_marketCapAbove :: ScannerSubscription -> Double ssb_marketCapBelow :: ScannerSubscription -> Double ssb_moodyRatingAbove :: ScannerSubscription -> String ssb_moodyRatingBelow :: ScannerSubscription -> String ssb_spRatingAbove :: ScannerSubscription -> String ssb_spRatingBelow :: ScannerSubscription -> String ssb_maturityDateAbove :: ScannerSubscription -> String ssb_maturityDateBelow :: ScannerSubscription -> String ssb_couponRateAbove :: ScannerSubscription -> Double ssb_couponRateBelow :: ScannerSubscription -> Double ssb_excludeConvertible :: ScannerSubscription -> Int ssb_averageOptionVolumeAbove :: ScannerSubscription -> Int ssb_scannerSettingPairs :: ScannerSubscription -> String ssb_stockTypeFilter :: ScannerSubscription -> String defScannerSubscription :: ScannerSubscription data ComboLeg ComboLeg :: Int -> Int -> String -> String -> Int -> Int -> String -> Int -> ComboLeg cl_conId :: ComboLeg -> Int cl_ratio :: ComboLeg -> Int cl_action :: ComboLeg -> String cl_exchange :: ComboLeg -> String cl_openClose :: ComboLeg -> Int cl_shortSaleSlot :: ComboLeg -> Int cl_designatedLocation :: ComboLeg -> String cl_exemptCode :: ComboLeg -> Int data UnderComp UnderComp :: Int -> Double -> Double -> UnderComp uc_conId :: UnderComp -> Int uc_delta :: UnderComp -> Double uc_price :: UnderComp -> Double data Contract Contract :: Int -> String -> String -> String -> Double -> String -> String -> String -> String -> String -> String -> String -> Bool -> String -> String -> String -> [ComboLeg] -> UnderComp -> Contract ct_conId :: Contract -> Int ct_symbol :: Contract -> String ct_secType :: Contract -> String ct_expiry :: Contract -> String ct_strike :: Contract -> Double ct_right :: Contract -> String ct_multiplier :: Contract -> String ct_exchange :: Contract -> String ct_primaryExchange :: Contract -> String ct_currency :: Contract -> String ct_localSymbol :: Contract -> String ct_tradingClass :: Contract -> String ct_includeExpired :: Contract -> Bool ct_secIdType :: Contract -> String ct_secId :: Contract -> String ct_comboLegsDescrip :: Contract -> String ct_comboLegsList :: Contract -> [ComboLeg] ct_underComp :: Contract -> UnderComp data ContractDetails ContractDetails :: Contract -> String -> Double -> String -> String -> Int -> Int -> String -> String -> String -> String -> String -> String -> String -> String -> String -> Double -> [TagValue] -> String -> String -> String -> String -> String -> Bool -> Bool -> Double -> Bool -> String -> String -> String -> String -> Bool -> String -> ContractDetails ctd_summary :: ContractDetails -> Contract ctd_marketName :: ContractDetails -> String ctd_minTick :: ContractDetails -> Double ctd_orderTypes :: ContractDetails -> String ctd_validExchanges :: ContractDetails -> String ctd_priceMagnifier :: ContractDetails -> Int ctd_underConId :: ContractDetails -> Int ctd_longName :: ContractDetails -> String ctd_contractMonth :: ContractDetails -> String ctd_industry :: ContractDetails -> String ctd_category :: ContractDetails -> String ctd_subcategory :: ContractDetails -> String ctd_timeZoneId :: ContractDetails -> String ctd_tradingHours :: ContractDetails -> String ctd_liquidHours :: ContractDetails -> String ctd_evRule :: ContractDetails -> String ctd_evMultiplier :: ContractDetails -> Double ctd_secIdList :: ContractDetails -> [TagValue] ctd_cusip :: ContractDetails -> String ctd_ratings :: ContractDetails -> String ctd_descAppend :: ContractDetails -> String ctd_bondType :: ContractDetails -> String ctd_couponType :: ContractDetails -> String ctd_callable :: ContractDetails -> Bool ctd_putable :: ContractDetails -> Bool ctd_coupon :: ContractDetails -> Double ctd_convertible :: ContractDetails -> Bool ctd_maturity :: ContractDetails -> String ctd_issueDate :: ContractDetails -> String ctd_nextOptionDate :: ContractDetails -> String ctd_nextOptionType :: ContractDetails -> String ctd_nextOptionPartial :: ContractDetails -> Bool ctd_notes :: ContractDetails -> String data Order Order :: Int -> Int -> Int -> String -> Int -> String -> Double -> Double -> String -> String -> String -> String -> Int -> String -> Bool -> Int -> Bool -> Bool -> Int -> Int -> Bool -> Bool -> String -> String -> String -> Bool -> Int -> Double -> Bool -> Double -> Double -> String -> String -> String -> String -> String -> Origin -> Int -> String -> Int -> Double -> Bool -> Bool -> Double -> Bool -> Int -> Double -> Double -> Double -> Double -> Double -> Double -> Int -> String -> Double -> Int -> String -> String -> String -> String -> Bool -> Int -> String -> Bool -> Int -> Double -> Int -> Int -> Int -> Double -> Double -> Int -> Double -> Bool -> Int -> Int -> Bool -> String -> String -> String -> String -> String -> String -> String -> String -> String -> [TagValue] -> [TagValue] -> Bool -> Bool -> Order ord_orderId :: Order -> Int ord_clientId :: Order -> Int ord_permId :: Order -> Int ord_action :: Order -> String ord_totalQuantity :: Order -> Int ord_orderType :: Order -> String ord_lmtPrice :: Order -> Double ord_auxPrice :: Order -> Double ord_tif :: Order -> String ord_activeStartTime :: Order -> String ord_activeStopTime :: Order -> String ord_ocaGroup :: Order -> String ord_ocaType :: Order -> Int ord_orderRef :: Order -> String ord_transmit :: Order -> Bool ord_parentId :: Order -> Int ord_blockOrder :: Order -> Bool ord_sweepToFill :: Order -> Bool ord_displaySize :: Order -> Int ord_triggerMethod :: Order -> Int ord_outsideRth :: Order -> Bool ord_hidden :: Order -> Bool ord_goodAfterTime :: Order -> String ord_goodTillDate :: Order -> String ord_rule80A :: Order -> String ord_allOrNone :: Order -> Bool ord_minQty :: Order -> Int ord_percentOffset :: Order -> Double ord_overridePercentageConstraints :: Order -> Bool ord_trailStopPrice :: Order -> Double ord_trailingPercent :: Order -> Double ord_faGroup :: Order -> String ord_faProfile :: Order -> String ord_faMethod :: Order -> String ord_faPercentage :: Order -> String ord_openClose :: Order -> String ord_origin :: Order -> Origin ord_shortSaleSlot :: Order -> Int ord_designatedLocation :: Order -> String ord_exemptCode :: Order -> Int ord_discretionaryAmt :: Order -> Double ord_eTradeOnly :: Order -> Bool ord_firmQuoteOnly :: Order -> Bool ord_nbboPriceCap :: Order -> Double ord_optOutSmartRouting :: Order -> Bool ord_auctionStrategy :: Order -> Int ord_startingPrice :: Order -> Double ord_stockRefPrice :: Order -> Double ord_delta :: Order -> Double ord_stockRangeLower :: Order -> Double ord_stockRangeUpper :: Order -> Double ord_volatility :: Order -> Double ord_volatilityType :: Order -> Int ord_deltaNeutralOrderType :: Order -> String ord_deltaNeutralAuxPrice :: Order -> Double ord_deltaNeutralConId :: Order -> Int ord_deltaNeutralSettlingFirm :: Order -> String ord_deltaNeutralClearingAccount :: Order -> String ord_deltaNeutralClearingIntent :: Order -> String ord_deltaNeutralOpenClose :: Order -> String ord_deltaNeutralShortSale :: Order -> Bool ord_deltaNeutralShortSaleSlot :: Order -> Int ord_deltaNeutralDesignatedLocation :: Order -> String ord_continuousUpdate :: Order -> Bool ord_referencePriceType :: Order -> Int ord_basisPoints :: Order -> Double ord_basisPointsType :: Order -> Int ord_scaleInitLevelSize :: Order -> Int ord_scaleSubsLevelSize :: Order -> Int ord_scalePriceIncrement :: Order -> Double ord_scalePriceAdjustValue :: Order -> Double ord_scalePriceAdjustInterval :: Order -> Int ord_scaleProfitOffset :: Order -> Double ord_scaleAutoReset :: Order -> Bool ord_scaleInitPosition :: Order -> Int ord_scaleInitFillQty :: Order -> Int ord_scaleRandomPercent :: Order -> Bool ord_scaleTable :: Order -> String ord_hedgeType :: Order -> String ord_hedgeParam :: Order -> String ord_account :: Order -> String ord_settlingFirm :: Order -> String ord_clearingAccount :: Order -> String ord_clearingIntent :: Order -> String ord_ :: Order -> String ord_algoStrategy :: Order -> String ord_algoParams :: Order -> [TagValue] ord_smartComboRoutingParams :: Order -> [TagValue] ord_whatIf :: Order -> Bool ord_notHeld :: Order -> Bool instance Typeable FaDataType instance Typeable Origin instance Typeable Execution instance Typeable ExecutionFilter instance Typeable BarData instance Typeable OrderState instance Typeable TagValue instance Typeable ScannerSubscription instance Typeable ComboLeg instance Typeable UnderComp instance Typeable Contract instance Typeable ContractDetails instance Typeable ScanData instance Typeable Order instance Typeable IBMessage instance Typeable Request instance Show TickType instance Read TickType instance Eq TickType instance Enum TickType instance Data FaDataType instance Show FaDataType instance Read FaDataType instance Eq FaDataType instance Enum FaDataType instance Data Origin instance Show Origin instance Eq Origin instance Read Origin instance Enum Origin instance Show NewsBulletin instance Read NewsBulletin instance Enum NewsBulletin instance Data Execution instance Data ExecutionFilter instance Data BarData instance Data OrderState instance Data TagValue instance Data ScannerSubscription instance Data ComboLeg instance Data UnderComp instance Eq UnderComp instance Data Contract instance Data ContractDetails instance Data ScanData instance Data Order instance Data IBMessage instance Data Request module IB.Client.Request data Request MktDataReq :: TickerId -> Contract -> String -> Bool -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId mdr_contract :: Request -> Contract mdr_genericTicks :: Request -> String mdr_snapshot :: Request -> Bool mdr_mktDataOptions :: Request -> [TagValue] CancelMktData :: TickerId -> Request rqp_tickerId :: Request -> TickerId PlaceOrder :: OrderId -> Contract -> Order -> Request rqp_orderId :: Request -> OrderId por_contract :: Request -> Contract por_order :: Request -> Order CancelOrder :: OrderId -> Request rqp_orderId :: Request -> OrderId OpenOrdersReq :: Request AccountUpdatesReq :: Bool -> String -> Request aur_subscribe :: Request -> Bool aur_acctCode :: Request -> String ExecutionsReq :: ReqId -> ExecutionFilter -> Request rqp_reqId :: Request -> ReqId exe_filter :: Request -> ExecutionFilter IdsReq :: Int -> Request ContractDetailsReq :: ReqId -> Contract -> Request rqp_reqId :: Request -> ReqId cdr_contract :: Request -> Contract MktDepthReq :: TickerId -> Contract -> Int -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId mkr_contract :: Request -> Contract mkr_numRows :: Request -> Int mkr_mktDepthOptions :: Request -> [TagValue] CancelMktDepth :: TickerId -> Request NewsBulletinsReq :: Bool -> Request CancelNewsBulletins :: Request SetServerLogLevel :: Int -> Request AutoOpenOrdersReq :: Bool -> Request AllOpenOrdersReq :: Request ManagedAcctsReq :: Request FAReq :: FaDataType -> Request FAReplaceReq :: FaDataType -> String -> Request far_pFaDataType :: Request -> FaDataType far_cxml :: Request -> String HistoricalDataReq :: TickerId -> Contract -> String -> String -> String -> String -> Int -> Int -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId hdr_contract :: Request -> Contract hdr_endDataTime :: Request -> String hdr_durationStr :: Request -> String hdr_barSizeSetting :: Request -> String hdr_whatToShow :: Request -> String hdr_useRTH :: Request -> Int hdr_formatDate :: Request -> Int hdr_chartOptions :: Request -> [TagValue] ExerciseOptionsReq :: TickerId -> Contract -> Int -> Int -> String -> Int -> Request rqp_tickerId :: Request -> TickerId eor_contract :: Request -> Contract eor_exerciseAction :: Request -> Int eor_exerciseQuantity :: Request -> Int eor_account :: Request -> String eor_override :: Request -> Int ScannerSubscriptionReq :: TickerId -> ScannerSubscription -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId ssr_subscription :: Request -> ScannerSubscription ssr_subscriptionOptions :: Request -> [TagValue] CancelScannerSubscription :: TickerId -> Request ScannerParametersReq :: Request CancelHistoricalData :: TickerId -> Request CurrentTimeReq :: Request RealTimeBarsReq :: TickerId -> Contract -> Int -> String -> Bool -> [TagValue] -> Request rqp_tickerId :: Request -> TickerId rtb_contract :: Request -> Contract rtb_barSize :: Request -> Int rtb_whatToShow :: Request -> String rtb_useRTH :: Request -> Bool rtb_realTimeBarsOptions :: Request -> [TagValue] CancelRealTimeBars :: TickerId -> Request FundamentalDataReq :: TickerId -> Contract -> String -> Request rqp_reqId :: Request -> TickerId fdr_contract :: Request -> Contract fdr_reportType :: Request -> String CancelFundamentalData :: TickerId -> Request ImpliedVolatilityReq :: TickerId -> Contract -> Double -> Double -> Request rqp_tickerId :: Request -> TickerId ivr_contract :: Request -> Contract ivr_optionPrice :: Request -> Double ivr_underPrice :: Request -> Double CalcOptionPriceReq :: TickerId -> Contract -> Double -> Double -> Request rqp_tickerId :: Request -> TickerId opr_contract :: Request -> Contract opr_volatility :: Request -> Double opr_underPrice :: Request -> Double CancelCalcImpliedVolatility :: TickerId -> Request CancelCalcOptionPrice :: TickerId -> Request GlobalCancelReq :: Request MarketDataTypeReq :: TickerId -> Request PositionsReq :: Request AccountSummaryReq :: ReqId -> String -> String -> Request rqp_reqId :: Request -> ReqId asr_groupName :: Request -> String asr_tags :: Request -> String CancelAccountSummary :: ReqId -> Request CancelPositions :: Request VerifyReq :: String -> String -> Request vr_apiName :: Request -> String vr_apiVer :: Request -> String VerifyMessage :: String -> Request QueryDisplayGroups :: ReqId -> Request SubscribeToGroupEvents :: ReqId -> GroupId -> Request UpdateDisplayGroup :: Int -> String -> Request rqp_reqId :: Request -> Int udg_contractInfo :: Request -> String UnsubscribeFromGroupEvents :: ReqId -> Request StartApi :: Request request :: IBServer -> Request -> IO () wFlush :: IBServer -> IO () write :: IBServer -> ByteString -> IO () show' :: Show a => a -> ByteString debugWrite :: IBServer -> String -> IO () module IB.Client.Parser data IBMessage TickPrice :: Int -> Int -> Double -> Int -> Int -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int canAutoExecute :: IBMessage -> Int TickSize :: Int -> Int -> Double -> Int -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int OrderStatus :: Int -> String -> Int -> Int -> Double -> Int -> Int -> Double -> Int -> String -> IBMessage orderId :: IBMessage -> Int status :: IBMessage -> String filled :: IBMessage -> Int remaining :: IBMessage -> Int avgFillPrice :: IBMessage -> Double permId :: IBMessage -> Int parentId :: IBMessage -> Int lastFillPrice :: IBMessage -> Double clientId :: IBMessage -> Int whyHeld :: IBMessage -> String Err :: Int -> String -> IBMessage errorCode :: IBMessage -> Int errorMsg :: IBMessage -> String OpenOrder :: Order -> Contract -> [ComboLeg] -> [OrderComboLeg] -> OrderState -> IBMessage order :: IBMessage -> Order contract :: IBMessage -> Contract comboLeg :: IBMessage -> [ComboLeg] orderComboLegs :: IBMessage -> [OrderComboLeg] orderState :: IBMessage -> OrderState AcctValue :: String -> String -> String -> String -> IBMessage key :: IBMessage -> String val :: IBMessage -> String cur :: IBMessage -> String accountName :: IBMessage -> String PortfolioValue :: Contract -> Int -> Double -> Double -> Double -> Double -> Double -> String -> IBMessage contract :: IBMessage -> Contract position :: IBMessage -> Int marketPrice :: IBMessage -> Double marketValue :: IBMessage -> Double averageCost :: IBMessage -> Double unrealizedPNL :: IBMessage -> Double realizedPNL :: IBMessage -> Double accountName :: IBMessage -> String AcctUpdateTime :: String -> IBMessage NextValidId :: Int -> IBMessage ContractData :: ContractDetails -> IBMessage ExecutionData :: Int -> Int -> Contract -> Execution -> IBMessage reqId :: IBMessage -> Int orderId :: IBMessage -> Int contract :: IBMessage -> Contract exec :: IBMessage -> Execution MarketDepth :: Int -> Int -> Int -> Int -> Double -> Int -> IBMessage id :: IBMessage -> Int position :: IBMessage -> Int operation :: IBMessage -> Int side :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int MarketDepthL2 :: Int -> Int -> String -> Int -> Int -> Double -> Int -> IBMessage id :: IBMessage -> Int position :: IBMessage -> Int marketMaker :: IBMessage -> String operation :: IBMessage -> Int side :: IBMessage -> Int price :: IBMessage -> Double size :: IBMessage -> Int NewsBulletins :: Int -> Int -> String -> String -> IBMessage msgId :: IBMessage -> Int msgType :: IBMessage -> Int newsMessage :: IBMessage -> String originatingExch :: IBMessage -> String ManagedAccts :: String -> IBMessage ReceiveFA :: Int -> String -> IBMessage faDataTypeInt :: IBMessage -> Int cxml :: IBMessage -> String HistoricalData :: Int -> String -> String -> [BarData] -> IBMessage reqId :: IBMessage -> Int startDateStr :: IBMessage -> String endDateStr :: IBMessage -> String barDataList :: IBMessage -> [BarData] BondContractData :: ContractDetails -> IBMessage ScannerParameters :: String -> IBMessage ScannerData :: Int -> [ScanData] -> IBMessage tickerId :: IBMessage -> Int scannerDataList :: IBMessage -> [ScanData] TickOptionComputation :: Int -> Int -> Double -> Double -> Double -> Double -> Double -> Double -> Double -> Double -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int impliedVol :: IBMessage -> Double delta :: IBMessage -> Double optPrice :: IBMessage -> Double pvDividend :: IBMessage -> Double gamma :: IBMessage -> Double vega :: IBMessage -> Double theta :: IBMessage -> Double undPrice :: IBMessage -> Double TickGeneric :: Int -> Int -> Double -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int tg_value :: IBMessage -> Double TickString :: Int -> Int -> String -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int ts_value :: IBMessage -> String TickEFP :: Int -> Int -> Double -> String -> Double -> Int -> String -> Double -> Double -> IBMessage tickerId :: IBMessage -> Int tickType :: IBMessage -> Int basisPoints :: IBMessage -> Double formattedBasisPoints :: IBMessage -> String impliedFuturesPrice :: IBMessage -> Double holdDays :: IBMessage -> Int futureExpiry :: IBMessage -> String dividendImpact :: IBMessage -> Double dividendsToExpiry :: IBMessage -> Double CurrentTime :: Int -> IBMessage RealTimeBars :: Int -> Int -> Double -> Double -> Double -> Double -> Int -> Double -> Int -> IBMessage reqId :: IBMessage -> Int time :: IBMessage -> Int open :: IBMessage -> Double high :: IBMessage -> Double low :: IBMessage -> Double close :: IBMessage -> Double volume :: IBMessage -> Int average :: IBMessage -> Double count :: IBMessage -> Int FundamentalData :: Int -> String -> IBMessage reqId :: IBMessage -> Int fdata :: IBMessage -> String ContractDataEnd :: ReqId -> IBMessage OpenOrderEnd :: IBMessage AcctDownloadEnd :: String -> IBMessage ExecutionDataEnd :: ReqId -> IBMessage DeltaNeutralValidation :: Int -> UnderComp -> IBMessage reqId :: IBMessage -> Int underComp :: IBMessage -> UnderComp TickSnapshotEnd :: ReqId -> IBMessage MarketDataType :: Int -> Int -> IBMessage reqId :: IBMessage -> Int marketDataType :: IBMessage -> Int CommissionReport :: String -> Double -> String -> Double -> Double -> Int -> IBMessage execId :: IBMessage -> String commission :: IBMessage -> Double currency :: IBMessage -> String realizedPNL :: IBMessage -> Double yield :: IBMessage -> Double yieldRedemptionDate :: IBMessage -> Int PositionData :: String -> Contract -> Int -> Double -> IBMessage account :: IBMessage -> String contract :: IBMessage -> Contract position :: IBMessage -> Int avgCost :: IBMessage -> Double PositionEnd :: IBMessage AccountSummary :: Int -> String -> String -> String -> String -> IBMessage reqId :: IBMessage -> Int account :: IBMessage -> String tag :: IBMessage -> String value :: IBMessage -> String currency :: IBMessage -> String AccountSummaryEnd :: ReqId -> IBMessage VerifyMessageAPI :: String -> IBMessage VerifyCompleted :: String -> String -> IBMessage isSuccessful :: IBMessage -> String errorText :: IBMessage -> String DisplayGroupList :: Int -> String -> IBMessage reqId :: IBMessage -> Int groups :: IBMessage -> String DisplayGroupUpdated :: Int -> String -> IBMessage reqId :: IBMessage -> Int contractInfo :: IBMessage -> String IBUnknown :: IBMessage data RecvMsg RecvMsg :: Int -> Int -> IBMessage -> RecvMsg rc_msgId :: RecvMsg -> Int rc_version :: RecvMsg -> Int rc_msgBody :: RecvMsg -> IBMessage pRecvMsg :: Int -> Parser RecvMsg pServerVersion :: Parser Preamble -- | Author : Robert Bermani bobbermani@gmail.com Stability : -- experimental | module IB.Client data ClientConfig ClientConfig :: String -> Int -> Int -> Bool -> Maybe HandlerFunc -> ClientConfig cc_addr :: ClientConfig -> String cc_port :: ClientConfig -> Int cc_clientId :: ClientConfig -> Int cc_extraAuth :: ClientConfig -> Bool cc_handler :: ClientConfig -> Maybe HandlerFunc disconnect :: MIB -> IO () greetServer :: IBServer -> IO IBServer checkMsg :: MIB -> Bool -> IO () -- | Connects to a server connect :: ClientConfig -> Bool -> Bool -> IO (Either IOError MIB) toServer :: ClientConfig -> Handle -> Bool -> IBServer defaultConf :: ClientConfig defHandler :: MIB -> IBMessage -> IO () -- | Author : Robert Bermani bobbermani@gmail.com Stability : -- experimental | module Examples.Example