ib-api-0.1.0.0: An API for the Interactive Brokers Trading Workstation written in pure Haskell

Safe HaskellSafe-Inferred
LanguageHaskell2010

IB.Client.Types

Documentation

data Request Source

Constructors

MktDataReq 
CancelMktData 
PlaceOrder 
CancelOrder 

Fields

rqp_orderId :: OrderId
 
OpenOrdersReq 
AccountUpdatesReq 
ExecutionsReq 
IdsReq Int 
ContractDetailsReq 
MktDepthReq 
CancelMktDepth TickerId 
NewsBulletinsReq Bool 
CancelNewsBulletins 
SetServerLogLevel Int 
AutoOpenOrdersReq Bool 
AllOpenOrdersReq 
ManagedAcctsReq 
FAReq FaDataType 
FAReplaceReq 
HistoricalDataReq 
ExerciseOptionsReq 
ScannerSubscriptionReq 
CancelScannerSubscription TickerId 
ScannerParametersReq 
CancelHistoricalData TickerId 
CurrentTimeReq 
RealTimeBarsReq 
CancelRealTimeBars TickerId 
FundamentalDataReq 
CancelFundamentalData TickerId 
ImpliedVolatilityReq 
CalcOptionPriceReq 
CancelCalcImpliedVolatility TickerId 
CancelCalcOptionPrice TickerId 
GlobalCancelReq 
MarketDataTypeReq TickerId 
PositionsReq 
AccountSummaryReq 
CancelAccountSummary ReqId 
CancelPositions 
VerifyReq 
VerifyMessage String 
QueryDisplayGroups ReqId 
SubscribeToGroupEvents ReqId GroupId 
UpdateDisplayGroup 
UnsubscribeFromGroupEvents ReqId 
StartApi 

data IBMessage Source

Constructors

TickPrice 
TickSize 

Fields

tickerId :: Int
 
tickType :: Int
 
price :: Double
 
size :: Int
 
OrderStatus 
Err 

Fields

errorCode :: Int
 
errorMsg :: String
 
OpenOrder 
AcctValue 

Fields

key :: String
 
val :: String
 
cur :: String
 
accountName :: String
 
PortfolioValue 
AcctUpdateTime String 
NextValidId Int 
ContractData ContractDetails 
ExecutionData 
MarketDepth 

Fields

id :: Int
 
position :: Int
 
operation :: Int
 
side :: Int
 
price :: Double
 
size :: Int
 
MarketDepthL2 

Fields

id :: Int
 
position :: Int
 
marketMaker :: String
 
operation :: Int
 
side :: Int
 
price :: Double
 
size :: Int
 
NewsBulletins 
ManagedAccts String 
ReceiveFA 

Fields

faDataTypeInt :: Int
 
cxml :: String
 
HistoricalData 
BondContractData ContractDetails 
ScannerParameters String 
ScannerData 
TickOptionComputation 
TickGeneric 

Fields

tickerId :: Int
 
tickType :: Int
 
tg_value :: Double
 
TickString 

Fields

tickerId :: Int
 
tickType :: Int
 
ts_value :: String
 
TickEFP 
CurrentTime Int 
RealTimeBars 

Fields

reqId :: Int
 
time :: Int
 
open :: Double
 
high :: Double
 
low :: Double
 
close :: Double
 
volume :: Int
 
average :: Double
 
count :: Int
 
FundamentalData 

Fields

reqId :: Int
 
fdata :: String
 
ContractDataEnd ReqId 
OpenOrderEnd 
AcctDownloadEnd String 
ExecutionDataEnd ReqId 
DeltaNeutralValidation 

Fields

reqId :: Int
 
underComp :: UnderComp
 
TickSnapshotEnd ReqId 
MarketDataType 

Fields

reqId :: Int
 
marketDataType :: Int
 
CommissionReport 
PositionData 
PositionEnd 
AccountSummary 
AccountSummaryEnd ReqId 
VerifyMessageAPI String 
VerifyCompleted 
DisplayGroupList 

Fields

reqId :: Int
 
groups :: String
 
DisplayGroupUpdated 

Fields

reqId :: Int
 
contractInfo :: String
 
IBUnknown 

data RecvMsg Source

Constructors

RecvMsg 

fromEnum' :: Enum a => a -> Int Source

fromBool :: Num a => Bool -> a Source

conToId :: Data a => a -> Int Source

data Preamble Source

Constructors

Preamble 

data TagValue Source

Constructors

TagValue 

Fields

tv_tag :: String
 
tv_value :: String
 

data Order Source

Constructors

Order 

Fields

ord_orderId :: Int
 
ord_clientId :: Int
 
ord_permId :: Int
 
ord_action :: String
 
ord_totalQuantity :: Int
 
ord_orderType :: String
 
ord_lmtPrice :: Double
 
ord_auxPrice :: Double
 
ord_tif :: String
 
ord_activeStartTime :: String
 
ord_activeStopTime :: String
 
ord_ocaGroup :: String
 
ord_ocaType :: Int
 
ord_orderRef :: String
 
ord_transmit :: Bool
 
ord_parentId :: Int
 
ord_blockOrder :: Bool
 
ord_sweepToFill :: Bool
 
ord_displaySize :: Int
 
ord_triggerMethod :: Int
 
ord_outsideRth :: Bool
 
ord_hidden :: Bool
 
ord_goodAfterTime :: String
 
ord_goodTillDate :: String
 
ord_rule80A :: String
 
ord_allOrNone :: Bool
 
ord_minQty :: Int
 
ord_percentOffset :: Double
 
ord_overridePercentageConstraints :: Bool
 
ord_trailStopPrice :: Double
 
ord_trailingPercent :: Double
 
ord_faGroup :: String
 
ord_faProfile :: String
 
ord_faMethod :: String
 
ord_faPercentage :: String
 
ord_openClose :: String
 
ord_origin :: Origin
 
ord_shortSaleSlot :: Int
 
ord_designatedLocation :: String
 
ord_exemptCode :: Int
 
ord_discretionaryAmt :: Double
 
ord_eTradeOnly :: Bool
 
ord_firmQuoteOnly :: Bool
 
ord_nbboPriceCap :: Double
 
ord_optOutSmartRouting :: Bool
 
ord_auctionStrategy :: Int
 
ord_startingPrice :: Double
 
ord_stockRefPrice :: Double
 
ord_delta :: Double
 
ord_stockRangeLower :: Double
 
ord_stockRangeUpper :: Double
 
ord_volatility :: Double
 
ord_volatilityType :: Int
 
ord_deltaNeutralOrderType :: String
 
ord_deltaNeutralAuxPrice :: Double
 
ord_deltaNeutralConId :: Int
 
ord_deltaNeutralSettlingFirm :: String
 
ord_deltaNeutralClearingAccount :: String
 
ord_deltaNeutralClearingIntent :: String
 
ord_deltaNeutralOpenClose :: String
 
ord_deltaNeutralShortSale :: Bool
 
ord_deltaNeutralShortSaleSlot :: Int
 
ord_deltaNeutralDesignatedLocation :: String
 
ord_continuousUpdate :: Bool
 
ord_referencePriceType :: Int
 
ord_basisPoints :: Double
 
ord_basisPointsType :: Int
 
ord_scaleInitLevelSize :: Int
 
ord_scaleSubsLevelSize :: Int
 
ord_scalePriceIncrement :: Double
 
ord_scalePriceAdjustValue :: Double
 
ord_scalePriceAdjustInterval :: Int
 
ord_scaleProfitOffset :: Double
 
ord_scaleAutoReset :: Bool
 
ord_scaleInitPosition :: Int
 
ord_scaleInitFillQty :: Int
 
ord_scaleRandomPercent :: Bool
 
ord_scaleTable :: String
 
ord_hedgeType :: String
 
ord_hedgeParam :: String
 
ord_account :: String
 
ord_settlingFirm :: String
 
ord_clearingAccount :: String
 
ord_clearingIntent :: String
 
ord_ :: String
 
ord_algoStrategy :: String
 
ord_algoParams :: [TagValue]
 
ord_smartComboRoutingParams :: [TagValue]
 
ord_whatIf :: Bool
 
ord_notHeld :: Bool
 

Instances