[#36] Neue Tradingpairs eingefügt

This commit is contained in:
darkeye 2025-01-18 11:49:21 +01:00
parent 4f15b08756
commit 0f0b453648
2 changed files with 12 additions and 0 deletions

View File

@ -7,12 +7,16 @@ export default class TradingPairs {
static ETHUSDT = new TradingPair(Assets.ETH, Assets.USDT); static ETHUSDT = new TradingPair(Assets.ETH, Assets.USDT);
static GALAUSDT = new TradingPair(Assets.GALA, Assets.USDT); static GALAUSDT = new TradingPair(Assets.GALA, Assets.USDT);
static ETHBTC = new TradingPair(Assets.ETH, Assets.BTC); static ETHBTC = new TradingPair(Assets.ETH, Assets.BTC);
static ALGOUSDT = new TradingPair(Assets.ALGO, Assets.USDT);
static TRXUSDT = new TradingPair(Assets.TRX, Assets.USDT);
static TRADING_PAIRS = [ static TRADING_PAIRS = [
this.BTCUSDT, this.BTCUSDT,
this.ETHUSDT, this.ETHUSDT,
this.GALAUSDT, this.GALAUSDT,
this.ETHBTC, this.ETHBTC,
this.ALGOUSDT,
this.TRXUSDT,
]; ];
/** /**

View File

@ -27,8 +27,16 @@ try{
const tradingBot = new TradingBot("C:/Users/Wlad/Projekte/BinanceBot/binance_bot/data/conf", "config-test.sjson"); const tradingBot = new TradingBot("C:/Users/Wlad/Projekte/BinanceBot/binance_bot/data/conf", "config-test.sjson");
const galaWorker = new DefaultWorker("gala_minmax", TradingPairs.GALAUSDT, new AvgMinMaxStrategy()); const galaWorker = new DefaultWorker("gala_minmax", TradingPairs.GALAUSDT, new AvgMinMaxStrategy());
const statWorker = new StatisticWorker("gala_stats", TradingPairs.GALAUSDT, new TestStrategy()); const statWorker = new StatisticWorker("gala_stats", TradingPairs.GALAUSDT, new TestStrategy());
const trxWorker = new DefaultWorker("trx_minmax", TradingPairs.TRXUSDT, new AvgMinMaxStrategy());
const trxStatWorker = new StatisticWorker("trx_stats", TradingPairs.TRXUSDT, new TestStrategy());
const algoWorker = new DefaultWorker("algo_minmax", TradingPairs.ALGOUSDT, new AvgMinMaxStrategy());
const algoStatWorker = new StatisticWorker("algo_stats", TradingPairs.ALGOUSDT, new TestStrategy());
//tradingBot.registerWorker(galaWorker); //tradingBot.registerWorker(galaWorker);
//tradingBot.registerWorker(statWorker); //tradingBot.registerWorker(statWorker);
tradingBot.registerWorker(trxWorker);
tradingBot.registerWorker(trxStatWorker);
tradingBot.registerWorker(algoWorker);
tradingBot.registerWorker(algoStatWorker);
tradingBot.start(); tradingBot.start();
} catch (e){ } catch (e){
console.log(e); console.log(e);