All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.runon.cryptocurrency.exchanges.binance.BinanceCandleOutServiceStarter Maven / Gradle / Ivy

package io.runon.cryptocurrency.exchanges.binance;

import io.runon.cryptocurrency.trading.service.CandleOutRealTimeService;
import io.runon.cryptocurrency.trading.service.DataStreamKeepAliveService;

/**
 * @author macle
 */
public class BinanceCandleOutServiceStarter {

    public static void main(String[] args) {
        BinanceFuturesLastCandleStream stream = new BinanceFuturesLastCandleStream("binance_futures_last_candle");
        stream.connect();
        new DataStreamKeepAliveService().start();

        CandleOutRealTimeService candleOutRealTimeService = new CandleOutRealTimeService(stream);
        candleOutRealTimeService.start();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy