use of org.knowm.xchange.binance.service.BinanceAccountService in project XChange by knowm.
the class BinanceExchangeIntegration method testSytemStatus.
@Test
public void testSytemStatus() throws IOException {
assumeProduction();
BinanceSystemStatus systemStatus = ((BinanceAccountService) exchange.getAccountService()).getSystemStatus();
assertThat(systemStatus).isNotNull();
assertThat(systemStatus.getStatus()).isNotEmpty();
}
use of org.knowm.xchange.binance.service.BinanceAccountService in project XChange by knowm.
the class BinanceExchange method remoteInit.
@Override
public void remoteInit() {
try {
BinanceMarketDataService marketDataService = (BinanceMarketDataService) this.marketDataService;
exchangeInfo = marketDataService.getExchangeInfo();
BinanceAccountService accountService = (BinanceAccountService) getAccountService();
Map<String, AssetDetail> assetDetailMap = null;
if (!usingSandbox() && isAuthenticated()) {
// not available in sndbox
assetDetailMap = accountService.getAssetDetails();
}
postInit(assetDetailMap);
} catch (Exception e) {
throw new ExchangeException("Failed to initialize: " + e.getMessage(), e);
}
}
use of org.knowm.xchange.binance.service.BinanceAccountService in project XChange by knowm.
the class BinanceExchange 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 BinanceAccountService(this, binance, getResilienceRegistries());
}
Aggregations