forked from quantsc/quantsc-hft-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.cpp
More file actions
67 lines (52 loc) · 1010 Bytes
/
Order.cpp
File metadata and controls
67 lines (52 loc) · 1010 Bytes
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
#include "Order.h"
Order::Order(
int orderId,
int userId,
std::string ticker,
std::string companyName,
bool isBuy,
int price,
int volume,
int timestamp
) {
this->orderId = orderId;
this->userId = userId;
this->ticker = ticker;
this->isBuy = isBuy;
this->price = price;
this->volume = volume;
this->timestamp = timestamp;
}
int Order::getOrderId() {
return this->orderId;
}
int Order::getUserId() {
return this->userId;
}
std::string Order::getTicker() {
return this->ticker;
}
bool Order::getIsBuy() {
return this->isBuy;
}
int Order::getPrice() {
return this->price;
}
int Order::getVolume() {
return this->volume;
}
int Order::getTimestamp() {
return this->timestamp;
}
void Order::setOrderId(int orderId) {
this->orderId = orderId;
}
void Order::setUserId(int userId) {
this->userId = userId;
}
void Order::setTicker(std::string ticker) {
this->ticker = ticker;
}
int main() {
return 0;
}