-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutcome.py
32 lines (26 loc) · 844 Bytes
/
outcome.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
class Outcome:
def __init__(self, q_id : int) -> None:
self.q_id = q_id
self.prob_yes = 0
self.prob_no = 0
self.prob_draw = 0
self.price_yes = 0
self.price_no = 0
self.price_draw = 0
def set_price_yes(self, price: float) -> None:
self.price_yes = price
def set_price_no(self, price: float) -> None:
self.price_no = price
def get_price_yes(self) -> float:
return self.price_yes
def get_price_no(self) -> float:
return self.price_no
def refresh(self):
pass
# self.user = User()
# self.sot = SourceOfTruth()
# self.question = Question()
# self.wallet = Wallet()
# self.order = Order()
# self.bet = Bet()
# self.bet_result = BetResult()