bot split sex
This commit is contained in:
21
bot split/value.py
Normal file
21
bot split/value.py
Normal file
@@ -0,0 +1,21 @@
|
||||
class ValueManager:
|
||||
def __init__(self):
|
||||
self.value = {
|
||||
# symbol: [bid, ask]
|
||||
"BOND": [0, 0],
|
||||
"GS": [0, 0],
|
||||
"MS": [0, 0],
|
||||
"VALBZ": [0, 0],
|
||||
"VALE": [0, 0],
|
||||
"WFC": [0, 0],
|
||||
"XLF": [0, 0]
|
||||
}
|
||||
|
||||
def set_value(self, symbol: str, bid: int, ask: int):
|
||||
self.value[symbol] = [bid, ask]
|
||||
|
||||
def get_bid(self, symbol: str):
|
||||
return self.value[symbol][0]
|
||||
|
||||
def get_ask(self, symbol: str):
|
||||
return self.value[symbol][1]
|
||||
Reference in New Issue
Block a user