configurable txt separator

This commit is contained in:
Dobromir Popov
2025-08-27 01:48:29 +03:00
parent fc1ac2061f
commit d49a473ed6
4 changed files with 42 additions and 15 deletions

View File

@@ -34,7 +34,8 @@ class TextExportManager:
'ref1_symbol': 'BTC/USDT',
'ref2_symbol': 'SPX', # Will need to be mapped to available data
'ref3_symbol': 'SOL/USDT',
'export_dir': 'NN/training/samples/txt'
'export_dir': 'NN/training/samples/txt',
'export_format': 'PIPE' # PIPE (default) or TAB
}
def initialize_exporter(self, config: Optional[Dict[str, Any]] = None):
@@ -56,7 +57,8 @@ class TextExportManager:
main_symbol=self.export_config['main_symbol'],
ref1_symbol=self.export_config['ref1_symbol'],
ref2_symbol=self.export_config['ref2_symbol'],
ref3_symbol=self.export_config.get('ref3_symbol', 'SOL/USDT')
ref3_symbol=self.export_config.get('ref3_symbol', 'SOL/USDT'),
export_format=self.export_config.get('export_format', 'PIPE')
)
logger.info("Text data exporter initialized successfully")