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();
}
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());
}
Aggregations