Search in sources :

Example 1 with BinanceSystemStatus

use of org.knowm.xchange.binance.dto.meta.BinanceSystemStatus 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 BinanceSystemStatus

use of org.knowm.xchange.binance.dto.meta.BinanceSystemStatus 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();
}
Also used : BinanceSystemStatus(org.knowm.xchange.binance.dto.meta.BinanceSystemStatus) BinanceAccountService(org.knowm.xchange.binance.service.BinanceAccountService) Test(org.junit.Test)

Aggregations

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