forked from blampe/IbPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExecution.py
78 lines (73 loc) · 2.3 KB
/
Execution.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env python
""" generated source for module Execution """
#
# Original file copyright original author(s).
# This file copyright Troy Melhase, [email protected].
#
# WARNING: all changes to this file will be lost.
from ib.lib.overloading import overloaded
#
# * Execution.java
# *
#
# package: com.ib.client
class Execution(object):
""" generated source for class Execution """
m_orderId = 0
m_clientId = 0
m_execId = ""
m_time = ""
m_acctNumber = ""
m_exchange = ""
m_side = ""
m_shares = 0
m_price = float()
m_permId = 0
m_liquidation = 0
m_cumQty = 0
m_avgPrice = float()
m_orderRef = ""
m_evRule = ""
m_evMultiplier = float()
@overloaded
def __init__(self):
""" generated source for method __init__ """
self.m_orderId = 0
self.m_clientId = 0
self.m_shares = 0
self.m_price = 0
self.m_permId = 0
self.m_liquidation = 0
self.m_cumQty = 0
self.m_avgPrice = 0
self.m_evMultiplier = 0
@__init__.register(object, int, int, str, str, str, str, str, int, float, int, int, int, float, str, str, float)
def __init___0(self, p_orderId, p_clientId, p_execId, p_time, p_acctNumber, p_exchange, p_side, p_shares, p_price, p_permId, p_liquidation, p_cumQty, p_avgPrice, p_orderRef, p_evRule, p_evMultiplier):
""" generated source for method __init___0 """
self.m_orderId = p_orderId
self.m_clientId = p_clientId
self.m_execId = p_execId
self.m_time = p_time
self.m_acctNumber = p_acctNumber
self.m_exchange = p_exchange
self.m_side = p_side
self.m_shares = p_shares
self.m_price = p_price
self.m_permId = p_permId
self.m_liquidation = p_liquidation
self.m_cumQty = p_cumQty
self.m_avgPrice = p_avgPrice
self.m_orderRef = p_orderRef
self.m_evRule = p_evRule
self.m_evMultiplier = p_evMultiplier
def __eq__(self, p_other):
""" generated source for method equals """
l_bRetVal = False
if p_other is None:
l_bRetVal = False
elif self is p_other:
l_bRetVal = True
else:
l_theOther = p_other
l_bRetVal = self.m_execId == l_theOther.m_execId
return l_bRetVal