pfund-ibapi 10.39.1.dev1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ibapi/__init__.py +16 -0
- ibapi/account_summary_tags.py +70 -0
- ibapi/client.py +6094 -0
- ibapi/client_utils.py +700 -0
- ibapi/comm.py +100 -0
- ibapi/commission_and_fees_report.py +31 -0
- ibapi/common.py +351 -0
- ibapi/connection.py +126 -0
- ibapi/const.py +12 -0
- ibapi/contract.py +265 -0
- ibapi/decoder.py +2400 -0
- ibapi/decoder_utils.py +616 -0
- ibapi/enum_implem.py +20 -0
- ibapi/errors.py +115 -0
- ibapi/execution.py +95 -0
- ibapi/ibapi.pyproj +56 -0
- ibapi/ineligibility_reason.py +18 -0
- ibapi/message.py +186 -0
- ibapi/news.py +13 -0
- ibapi/object_implem.py +12 -0
- ibapi/order.py +263 -0
- ibapi/order_cancel.py +21 -0
- ibapi/order_condition.py +289 -0
- ibapi/order_state.py +117 -0
- ibapi/orderdecoder.py +539 -0
- ibapi/protobuf/AccountDataEnd_pb2.py +37 -0
- ibapi/protobuf/AccountDataRequest_pb2.py +37 -0
- ibapi/protobuf/AccountSummaryEnd_pb2.py +37 -0
- ibapi/protobuf/AccountSummaryRequest_pb2.py +37 -0
- ibapi/protobuf/AccountSummary_pb2.py +37 -0
- ibapi/protobuf/AccountUpdateMultiEnd_pb2.py +37 -0
- ibapi/protobuf/AccountUpdateMulti_pb2.py +37 -0
- ibapi/protobuf/AccountUpdateTime_pb2.py +37 -0
- ibapi/protobuf/AccountUpdatesMultiRequest_pb2.py +37 -0
- ibapi/protobuf/AccountValue_pb2.py +37 -0
- ibapi/protobuf/AllOpenOrdersRequest_pb2.py +37 -0
- ibapi/protobuf/AutoOpenOrdersRequest_pb2.py +37 -0
- ibapi/protobuf/CancelAccountSummary_pb2.py +37 -0
- ibapi/protobuf/CancelAccountUpdatesMulti_pb2.py +37 -0
- ibapi/protobuf/CancelHeadTimestamp_pb2.py +37 -0
- ibapi/protobuf/CancelHistogramData_pb2.py +37 -0
- ibapi/protobuf/CancelHistoricalData_pb2.py +37 -0
- ibapi/protobuf/CancelMarketData_pb2.py +37 -0
- ibapi/protobuf/CancelMarketDepth_pb2.py +37 -0
- ibapi/protobuf/CancelOrderRequest_pb2.py +38 -0
- ibapi/protobuf/CancelPositionsMulti_pb2.py +37 -0
- ibapi/protobuf/CancelPositions_pb2.py +37 -0
- ibapi/protobuf/CancelRealTimeBars_pb2.py +37 -0
- ibapi/protobuf/CancelTickByTick_pb2.py +37 -0
- ibapi/protobuf/ComboLeg_pb2.py +37 -0
- ibapi/protobuf/CompletedOrder_pb2.py +40 -0
- ibapi/protobuf/CompletedOrdersEnd_pb2.py +37 -0
- ibapi/protobuf/CompletedOrdersRequest_pb2.py +37 -0
- ibapi/protobuf/ContractDataEnd_pb2.py +37 -0
- ibapi/protobuf/ContractDataRequest_pb2.py +38 -0
- ibapi/protobuf/ContractData_pb2.py +39 -0
- ibapi/protobuf/ContractDetails_pb2.py +42 -0
- ibapi/protobuf/Contract_pb2.py +39 -0
- ibapi/protobuf/DeltaNeutralContract_pb2.py +37 -0
- ibapi/protobuf/ErrorMessage_pb2.py +37 -0
- ibapi/protobuf/ExecutionDetailsEnd_pb2.py +37 -0
- ibapi/protobuf/ExecutionDetails_pb2.py +39 -0
- ibapi/protobuf/ExecutionFilter_pb2.py +37 -0
- ibapi/protobuf/ExecutionRequest_pb2.py +38 -0
- ibapi/protobuf/Execution_pb2.py +37 -0
- ibapi/protobuf/GlobalCancelRequest_pb2.py +38 -0
- ibapi/protobuf/HeadTimestampRequest_pb2.py +38 -0
- ibapi/protobuf/HeadTimestamp_pb2.py +37 -0
- ibapi/protobuf/HistogramDataEntry_pb2.py +37 -0
- ibapi/protobuf/HistogramDataRequest_pb2.py +38 -0
- ibapi/protobuf/HistogramData_pb2.py +38 -0
- ibapi/protobuf/HistoricalDataBar_pb2.py +37 -0
- ibapi/protobuf/HistoricalDataEnd_pb2.py +37 -0
- ibapi/protobuf/HistoricalDataRequest_pb2.py +42 -0
- ibapi/protobuf/HistoricalDataUpdate_pb2.py +38 -0
- ibapi/protobuf/HistoricalData_pb2.py +38 -0
- ibapi/protobuf/HistoricalTickBidAsk_pb2.py +38 -0
- ibapi/protobuf/HistoricalTickLast_pb2.py +38 -0
- ibapi/protobuf/HistoricalTick_pb2.py +37 -0
- ibapi/protobuf/HistoricalTicksBidAsk_pb2.py +38 -0
- ibapi/protobuf/HistoricalTicksLast_pb2.py +38 -0
- ibapi/protobuf/HistoricalTicksRequest_pb2.py +42 -0
- ibapi/protobuf/HistoricalTicks_pb2.py +38 -0
- ibapi/protobuf/IneligibilityReason_pb2.py +37 -0
- ibapi/protobuf/ManagedAccountsRequest_pb2.py +37 -0
- ibapi/protobuf/ManagedAccounts_pb2.py +37 -0
- ibapi/protobuf/MarketDataRequest_pb2.py +42 -0
- ibapi/protobuf/MarketDataTypeRequest_pb2.py +37 -0
- ibapi/protobuf/MarketDataType_pb2.py +37 -0
- ibapi/protobuf/MarketDepthData_pb2.py +37 -0
- ibapi/protobuf/MarketDepthL2_pb2.py +38 -0
- ibapi/protobuf/MarketDepthRequest_pb2.py +42 -0
- ibapi/protobuf/MarketDepth_pb2.py +38 -0
- ibapi/protobuf/OpenOrder_pb2.py +40 -0
- ibapi/protobuf/OpenOrdersEnd_pb2.py +37 -0
- ibapi/protobuf/OpenOrdersRequest_pb2.py +37 -0
- ibapi/protobuf/OrderAllocation_pb2.py +37 -0
- ibapi/protobuf/OrderBound_pb2.py +37 -0
- ibapi/protobuf/OrderCancel_pb2.py +37 -0
- ibapi/protobuf/OrderCondition_pb2.py +37 -0
- ibapi/protobuf/OrderState_pb2.py +38 -0
- ibapi/protobuf/OrderStatus_pb2.py +37 -0
- ibapi/protobuf/Order_pb2.py +51 -0
- ibapi/protobuf/PlaceOrderRequest_pb2.py +39 -0
- ibapi/protobuf/PortfolioValue_pb2.py +38 -0
- ibapi/protobuf/PositionEnd_pb2.py +37 -0
- ibapi/protobuf/PositionMultiEnd_pb2.py +37 -0
- ibapi/protobuf/PositionMulti_pb2.py +38 -0
- ibapi/protobuf/Position_pb2.py +38 -0
- ibapi/protobuf/PositionsMultiRequest_pb2.py +37 -0
- ibapi/protobuf/PositionsRequest_pb2.py +37 -0
- ibapi/protobuf/RealTimeBarTick_pb2.py +37 -0
- ibapi/protobuf/RealTimeBarsRequest_pb2.py +42 -0
- ibapi/protobuf/SoftDollarTier_pb2.py +37 -0
- ibapi/protobuf/TickAttribBidAsk_pb2.py +37 -0
- ibapi/protobuf/TickAttribLast_pb2.py +37 -0
- ibapi/protobuf/TickByTickData_pb2.py +40 -0
- ibapi/protobuf/TickByTickRequest_pb2.py +38 -0
- ibapi/protobuf/TickGeneric_pb2.py +37 -0
- ibapi/protobuf/TickOptionComputation_pb2.py +37 -0
- ibapi/protobuf/TickPrice_pb2.py +37 -0
- ibapi/protobuf/TickReqParams_pb2.py +37 -0
- ibapi/protobuf/TickSize_pb2.py +37 -0
- ibapi/protobuf/TickSnapshotEnd_pb2.py +37 -0
- ibapi/protobuf/TickString_pb2.py +37 -0
- ibapi/protobuf/__init__.py +1 -0
- ibapi/reader.py +49 -0
- ibapi/scanner.py +77 -0
- ibapi/server_versions.py +164 -0
- ibapi/softdollartier.py +16 -0
- ibapi/tag_value.py +22 -0
- ibapi/ticktype.py +117 -0
- ibapi/utils.py +233 -0
- ibapi/wrapper.py +1039 -0
- pfund_ibapi-10.39.1.dev1.dist-info/METADATA +261 -0
- pfund_ibapi-10.39.1.dev1.dist-info/RECORD +137 -0
- pfund_ibapi-10.39.1.dev1.dist-info/WHEEL +4 -0
ibapi/__init__.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (C) 2023 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
|
|
3
|
+
and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
""" Package implementing the Python API for the TWS/IB Gateway """
|
|
7
|
+
|
|
8
|
+
VERSION = {"major": 10, "minor": 39, "micro": 1}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def get_version_string():
|
|
12
|
+
version = "{major}.{minor}.{micro}".format(**VERSION)
|
|
13
|
+
return version
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
__version__ = get_version_string()
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copyright (C) 2019 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
|
|
3
|
+
and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AccountSummaryTags:
|
|
8
|
+
AccountType = "AccountType"
|
|
9
|
+
NetLiquidation = "NetLiquidation"
|
|
10
|
+
TotalCashValue = "TotalCashValue"
|
|
11
|
+
SettledCash = "SettledCash"
|
|
12
|
+
AccruedCash = "AccruedCash"
|
|
13
|
+
BuyingPower = "BuyingPower"
|
|
14
|
+
EquityWithLoanValue = "EquityWithLoanValue"
|
|
15
|
+
PreviousDayEquityWithLoanValue = "PreviousDayEquityWithLoanValue"
|
|
16
|
+
GrossPositionValue = "GrossPositionValue"
|
|
17
|
+
ReqTEquity = "ReqTEquity"
|
|
18
|
+
ReqTMargin = "ReqTMargin"
|
|
19
|
+
SMA = "SMA"
|
|
20
|
+
InitMarginReq = "InitMarginReq"
|
|
21
|
+
MaintMarginReq = "MaintMarginReq"
|
|
22
|
+
AvailableFunds = "AvailableFunds"
|
|
23
|
+
ExcessLiquidity = "ExcessLiquidity"
|
|
24
|
+
Cushion = "Cushion"
|
|
25
|
+
FullInitMarginReq = "FullInitMarginReq"
|
|
26
|
+
FullMaintMarginReq = "FullMaintMarginReq"
|
|
27
|
+
FullAvailableFunds = "FullAvailableFunds"
|
|
28
|
+
FullExcessLiquidity = "FullExcessLiquidity"
|
|
29
|
+
LookAheadNextChange = "LookAheadNextChange"
|
|
30
|
+
LookAheadInitMarginReq = "LookAheadInitMarginReq"
|
|
31
|
+
LookAheadMaintMarginReq = "LookAheadMaintMarginReq"
|
|
32
|
+
LookAheadAvailableFunds = "LookAheadAvailableFunds"
|
|
33
|
+
LookAheadExcessLiquidity = "LookAheadExcessLiquidity"
|
|
34
|
+
HighestSeverity = "HighestSeverity"
|
|
35
|
+
DayTradesRemaining = "DayTradesRemaining"
|
|
36
|
+
Leverage = "Leverage"
|
|
37
|
+
|
|
38
|
+
AllTags = ",".join(
|
|
39
|
+
(
|
|
40
|
+
AccountType,
|
|
41
|
+
NetLiquidation,
|
|
42
|
+
TotalCashValue,
|
|
43
|
+
SettledCash,
|
|
44
|
+
AccruedCash,
|
|
45
|
+
BuyingPower,
|
|
46
|
+
EquityWithLoanValue,
|
|
47
|
+
PreviousDayEquityWithLoanValue,
|
|
48
|
+
GrossPositionValue,
|
|
49
|
+
ReqTEquity,
|
|
50
|
+
ReqTMargin,
|
|
51
|
+
SMA,
|
|
52
|
+
InitMarginReq,
|
|
53
|
+
MaintMarginReq,
|
|
54
|
+
AvailableFunds,
|
|
55
|
+
ExcessLiquidity,
|
|
56
|
+
Cushion,
|
|
57
|
+
FullInitMarginReq,
|
|
58
|
+
FullMaintMarginReq,
|
|
59
|
+
FullAvailableFunds,
|
|
60
|
+
FullExcessLiquidity,
|
|
61
|
+
LookAheadNextChange,
|
|
62
|
+
LookAheadInitMarginReq,
|
|
63
|
+
LookAheadMaintMarginReq,
|
|
64
|
+
LookAheadAvailableFunds,
|
|
65
|
+
LookAheadExcessLiquidity,
|
|
66
|
+
HighestSeverity,
|
|
67
|
+
DayTradesRemaining,
|
|
68
|
+
Leverage,
|
|
69
|
+
)
|
|
70
|
+
)
|