Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binance dapi fix #4876

Merged
merged 11 commits into from
May 11, 2024
rizer1980 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import static org.knowm.xchange.binance.dto.ExchangeType.SPOT;

import java.io.IOException;
import org.junit.Ignore;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
Expand All @@ -19,6 +20,8 @@
import org.knowm.xchange.dto.marketdata.Trades;
import org.knowm.xchange.instrument.Instrument;

// Github build give http 451 error(Unavailable For Legal Reasons)
@Ignore
public class BinanceExchangeTypeTest {
rizer1980 marked this conversation as resolved.
Show resolved Hide resolved

@Test
Expand All @@ -30,7 +33,7 @@ public void testConnections() throws InterruptedException, IOException {
}

private static void testConnection(Instrument instrument, ExchangeSpecification spec)
throws InterruptedException, IOException {
throws IOException {
Exchange exchange =
ExchangeFactory.INSTANCE.createExchange(spec);
Trades trades = exchange.getMarketDataService().getTrades(instrument);
Expand All @@ -39,7 +42,6 @@ private static void testConnection(Instrument instrument, ExchangeSpecification
}
Ticker ticker = exchange.getMarketDataService().getTicker(instrument);
tickerCheck(ticker, instrument);
Thread.sleep(500L);
}

private static void tickerCheck(Ticker ticker, Instrument instrument) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.io.IOException;
import java.util.List;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.knowm.xchange.ExchangeSpecification;
import org.knowm.xchange.binance.dto.ExchangeType;
Expand All @@ -24,6 +25,8 @@
import org.knowm.xchange.dto.marketdata.Trades;
import org.knowm.xchange.instrument.Instrument;

// Github build give http 451 error(Unavailable For Legal Reasons)
@Ignore
public class BinanceStreamExchangeTypeTest {
rizer1980 marked this conversation as resolved.
Show resolved Hide resolved

@Test
Expand Down
Loading