datamain only pushes OHLC's to redis

This commit is contained in:
tim
2024-01-21 21:35:13 -04:00
parent e697c796a9
commit 294b12d639

View File

@@ -7,7 +7,7 @@ from async_lru import alru_cache
from web3.types import EventData
from dexorder import blockchain, config, dec, current_w3
from dexorder.base.ohlc import ohlcs
from dexorder.base.ohlc import ohlcs, recent_ohlcs
from dexorder.base.orderlib import Exchange
from dexorder.bin.executable import execute
from dexorder.blockstate.blockdata import BlockData
@@ -61,7 +61,7 @@ async def main():
state = None
if memcache:
await memcache.connect()
redis_state = RedisState(BlockData.by_opt('redis'))
redis_state = RedisState([recent_ohlcs]) # NOTE: ONLY the ohlc's are pushed to Redis. We do not want to touch anything else.
if db:
db.connect(url=config.datadb_url) # our main database is the data db
# noinspection DuplicatedCode