bot split sex

This commit is contained in:
2026-05-09 15:32:14 +09:00
parent 0534e31d32
commit d3b6e7cbbb
6 changed files with 413 additions and 52 deletions

21
bot split/value.py Normal file
View 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]