This repository was archived by the owner on Mar 31, 2026. It is now read-only.
forked from ib-ruby/ib-ruby
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathExecution.java
More file actions
67 lines (62 loc) · 1.74 KB
/
Copy pathExecution.java
File metadata and controls
67 lines (62 loc) · 1.74 KB
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
/*
* Execution.java
*
*/
package com.ib.client;
public class Execution {
public int m_orderId;
public int m_clientId;
public String m_execId;
public String m_time;
public String m_acctNumber;
public String m_exchange;
public String m_side;
public int m_shares;
public double m_price;
public int m_permId;
public int m_liquidation;
public int m_cumQty;
public double m_avgPrice;
public Execution() {
m_orderId = 0;
m_clientId = 0;
m_shares = 0;
m_price = 0;
m_permId = 0;
m_liquidation = 0;
m_cumQty = 0;
m_avgPrice = 0;
}
public Execution( int p_orderId, int p_clientId, String p_execId, String p_time,
String p_acctNumber, String p_exchange, String p_side, int p_shares,
double p_price, int p_permId, int p_liquidation, int p_cumQty,
double p_avgPrice) {
m_orderId = p_orderId;
m_clientId = p_clientId;
m_execId = p_execId;
m_time = p_time;
m_acctNumber = p_acctNumber;
m_exchange = p_exchange;
m_side = p_side;
m_shares = p_shares;
m_price = p_price;
m_permId = p_permId;
m_liquidation = p_liquidation;
m_cumQty = p_cumQty;
m_avgPrice = p_avgPrice;
}
public boolean equals(Object p_other) {
boolean l_bRetVal = false;
if ( p_other == null ) {
l_bRetVal = false;
}
else if ( this == p_other ) {
l_bRetVal = true;
}
else {
Execution l_theOther = (Execution)p_other;
l_bRetVal = m_execId.equals( l_theOther.m_execId);
}
return l_bRetVal;
}
}