Search in sources :

Example 1 with BinanceUsAccountService

use of org.knowm.xchange.binance.service.BinanceUsAccountService in project XChange by knowm.

the class BinanceUsExchangeIntegration method testSystemStatus.

@Test
public void testSystemStatus() throws IOException {
    assumeProduction();
    BinanceSystemStatus systemStatus = ((BinanceUsAccountService) exchange.getAccountService()).getSystemStatus();
    assertThat(systemStatus).isNotNull();
    // Not yet supported by binance.us
    assertThat(systemStatus.getStatus()).isNull();
}
Also used : BinanceSystemStatus(org.knowm.xchange.binance.dto.meta.BinanceSystemStatus) BinanceUsAccountService(org.knowm.xchange.binance.service.BinanceUsAccountService) Test(org.junit.Test)

Example 2 with BinanceUsAccountService

use of org.knowm.xchange.binance.service.BinanceUsAccountService in project XChange by knowm.

the class BinanceUsExchange method initServices.

@Override
protected void initServices() {
    this.binance = ExchangeRestProxyBuilder.forInterface(BinanceAuthenticated.class, getExchangeSpecification()).build();
    this.timestampFactory = new BinanceTimestampFactory(binance, getExchangeSpecification().getResilience(), getResilienceRegistries());
    this.marketDataService = new BinanceMarketDataService(this, binance, getResilienceRegistries());
    this.tradeService = new BinanceTradeService(this, binance, getResilienceRegistries());
    this.accountService = new BinanceUsAccountService(this, binance, getResilienceRegistries());
}
Also used : BinanceTradeService(org.knowm.xchange.binance.service.BinanceTradeService) BinanceUsAccountService(org.knowm.xchange.binance.service.BinanceUsAccountService) BinanceMarketDataService(org.knowm.xchange.binance.service.BinanceMarketDataService)

Aggregations

BinanceUsAccountService (org.knowm.xchange.binance.service.BinanceUsAccountService)2 Test (org.junit.Test)1 BinanceSystemStatus (org.knowm.xchange.binance.dto.meta.BinanceSystemStatus)1 BinanceMarketDataService (org.knowm.xchange.binance.service.BinanceMarketDataService)1 BinanceTradeService (org.knowm.xchange.binance.service.BinanceTradeService)1