ibapi-stable 10.37.2__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.
Files changed (57) hide show
  1. ibapi/__init__.py +16 -0
  2. ibapi/account_summary_tags.py +70 -0
  3. ibapi/client.py +4891 -0
  4. ibapi/client_utils.py +412 -0
  5. ibapi/comm.py +100 -0
  6. ibapi/commission_and_fees_report.py +31 -0
  7. ibapi/common.py +315 -0
  8. ibapi/connection.py +126 -0
  9. ibapi/const.py +12 -0
  10. ibapi/contract.py +265 -0
  11. ibapi/decoder.py +1711 -0
  12. ibapi/decoder_utils.py +420 -0
  13. ibapi/enum_implem.py +20 -0
  14. ibapi/errors.py +43 -0
  15. ibapi/execution.py +95 -0
  16. ibapi/ineligibility_reason.py +18 -0
  17. ibapi/message.py +186 -0
  18. ibapi/news.py +13 -0
  19. ibapi/object_implem.py +12 -0
  20. ibapi/order.py +263 -0
  21. ibapi/order_cancel.py +21 -0
  22. ibapi/order_condition.py +289 -0
  23. ibapi/order_state.py +117 -0
  24. ibapi/orderdecoder.py +539 -0
  25. ibapi/protobuf/CancelOrderRequest_pb2.py +38 -0
  26. ibapi/protobuf/ComboLeg_pb2.py +37 -0
  27. ibapi/protobuf/Contract_pb2.py +39 -0
  28. ibapi/protobuf/DeltaNeutralContract_pb2.py +37 -0
  29. ibapi/protobuf/ErrorMessage_pb2.py +37 -0
  30. ibapi/protobuf/ExecutionDetailsEnd_pb2.py +37 -0
  31. ibapi/protobuf/ExecutionDetails_pb2.py +39 -0
  32. ibapi/protobuf/ExecutionFilter_pb2.py +37 -0
  33. ibapi/protobuf/ExecutionRequest_pb2.py +38 -0
  34. ibapi/protobuf/Execution_pb2.py +37 -0
  35. ibapi/protobuf/GlobalCancelRequest_pb2.py +38 -0
  36. ibapi/protobuf/OpenOrder_pb2.py +40 -0
  37. ibapi/protobuf/OpenOrdersEnd_pb2.py +37 -0
  38. ibapi/protobuf/OrderAllocation_pb2.py +37 -0
  39. ibapi/protobuf/OrderCancel_pb2.py +37 -0
  40. ibapi/protobuf/OrderCondition_pb2.py +37 -0
  41. ibapi/protobuf/OrderState_pb2.py +38 -0
  42. ibapi/protobuf/OrderStatus_pb2.py +37 -0
  43. ibapi/protobuf/Order_pb2.py +51 -0
  44. ibapi/protobuf/PlaceOrderRequest_pb2.py +39 -0
  45. ibapi/protobuf/SoftDollarTier_pb2.py +37 -0
  46. ibapi/reader.py +49 -0
  47. ibapi/scanner.py +77 -0
  48. ibapi/server_versions.py +159 -0
  49. ibapi/softdollartier.py +16 -0
  50. ibapi/tag_value.py +22 -0
  51. ibapi/ticktype.py +117 -0
  52. ibapi/utils.py +233 -0
  53. ibapi/wrapper.py +885 -0
  54. ibapi_stable-10.37.2.dist-info/METADATA +136 -0
  55. ibapi_stable-10.37.2.dist-info/RECORD +57 -0
  56. ibapi_stable-10.37.2.dist-info/WHEEL +5 -0
  57. ibapi_stable-10.37.2.dist-info/top_level.txt +1 -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": 37, "micro": 2}
9
+
10
+
11
+ def get_version_string():
12
+ # Version string with preserved leading zeros
13
+ return "10.37.02"
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
+ )