-
Notifications
You must be signed in to change notification settings - Fork 9
/
Data.py
101 lines (72 loc) · 2.1 KB
/
Data.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
class Data:
def __init__(self, usd, btc, high, low, last, vol, buy, sell, totalAskPrice, totalAskVolume, avgAskPrice, totalBidPrice, totalBidVolume, avgBidPrice):
self.setUSD(usd)
self.setBTC(btc)
self.setHigh(high)
self.setLow(low)
self.setLast(last)
self.setVol(vol)
self.setBuy(buy)
self.setSell(sell)
self.setTotalAskPrice(totalAskPrice)
self.setTotalAskVolume(totalAskVolume)
self.setAvgAskPrice(avgAskPrice)
self.setTotalBidPrice(totalBidPrice)
self.setTotalBidVolume(totalBidVolume)
self.setAvgBidPrice(avgBidPrice)
def setBTC(self, btc):
self.btc = btc
def getBTC(self):
return self.btc
def setUSD(self, usd):
self.usd = usd
def getUSD(self):
return self.usd
def setHigh(self, high):
self.high = high
def getHigh(self):
return self.high
def setLow(self, low):
self.low = low
def getLow(self):
return self.low
def setLast(self, last):
self.last = last
def getVol(self):
return self.vol
def setVol(self, vol):
self.vol = vol
def getLast(self):
return self.last
def setBuy(self, buy):
self.buy = buy
def getBuy(self):
return self.buy
def setSell(self, sell):
self.sell = sell
def getSell(self):
return self.sell
def setTotalAskPrice(self, totalAskPrice):
self.totalAskPrice = totalAskPrice
def setTotalAskVolume(self, totalAskVolume):
self.totalAskVolume = totalAskVolume
def setAvgAskPrice(self, avgAskPrice):
self.avgAskPrice = avgAskPrice
def getTotalAskPrice(self):
return self.totalAskPrice
def getTotalAskVolume(self):
return self.totalAskVolume
def getAvgAskPrice(self):
return self.avgAskPrice
def setTotalBidPrice(self, totalBidPrice):
self.totalBidPrice = totalBidPrice
def setTotalBidVolume(self, totalBidVolume):
self.totalBidVolume = totalBidVolume
def setAvgBidPrice(self, avgBidPrice):
self.avgBidPrice = avgBidPrice
def getTotalBidPrice(self):
return self.totalBidPrice
def getTotalBidVolume(self):
return self.totalBidVolume
def getAvgBidPrice(self):
return self.avgBidPrice