Java Code Examples for org.knowm.xchange.ExchangeSpecification#setPort()

The following examples show how to use org.knowm.xchange.ExchangeSpecification#setPort() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BitmexExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {

  ExchangeSpecification exchangeSpecification =
      new ExchangeSpecification(this.getClass().getCanonicalName());
  exchangeSpecification.setSslUri("https://www.bitmex.com/");
  exchangeSpecification.setHost("bitmex.com");
  exchangeSpecification.setPort(80);
  exchangeSpecification.setExchangeName("Bitmex");
  exchangeSpecification.setExchangeDescription("Bitmex is a bitcoin exchange");
  exchangeSpecification.setExchangeSpecificParametersItem("Use_Sandbox", false);
  return exchangeSpecification;
}
 
Example 2
Source File: BinanceExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {

  ExchangeSpecification spec = new ExchangeSpecification(this.getClass().getCanonicalName());
  spec.setSslUri("https://api.binance.com");
  spec.setHost("www.binance.com");
  spec.setPort(80);
  spec.setExchangeName("Binance");
  spec.setExchangeDescription("Binance Exchange.");
  AuthUtils.setApiAndSecretKey(spec, "binance");
  return spec;
}
 
Example 3
Source File: BiboxExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {
  ExchangeSpecification exchangeSpecification =
      new ExchangeSpecification(this.getClass().getCanonicalName());
  exchangeSpecification.setSslUri("https://api.bibox.com/");
  exchangeSpecification.setHost("bibox.com");
  exchangeSpecification.setPort(80);
  exchangeSpecification.setExchangeName("Bibox");
  exchangeSpecification.setExchangeDescription("AI ENHANCED ENCRYPTED DIGITAL ASSET EXCHANGE.");

  return exchangeSpecification;
}
 
Example 4
Source File: HuobiExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {
  ExchangeSpecification exchangeSpecification =
      new ExchangeSpecification(this.getClass().getCanonicalName());
  exchangeSpecification.setSslUri("https://api.huobi.pro");
  exchangeSpecification.setHost("api.huobi.pro");
  exchangeSpecification.setPort(80);
  exchangeSpecification.setExchangeName("Huobi");
  exchangeSpecification.setExchangeDescription(
      "Huobi is a Chinese digital currency trading platform and exchange based in Beijing");
  return exchangeSpecification;
}
 
Example 5
Source File: BitfinexExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {

  ExchangeSpecification exchangeSpecification =
      new ExchangeSpecification(this.getClass().getCanonicalName());
  exchangeSpecification.setSslUri("https://api.bitfinex.com/");
  exchangeSpecification.setHost("api.bitfinex.com");
  exchangeSpecification.setPort(80);
  exchangeSpecification.setExchangeName("BitFinex");
  exchangeSpecification.setExchangeDescription("BitFinex is a bitcoin exchange.");

  return exchangeSpecification;
}
 
Example 6
Source File: BitfinexExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {

  ExchangeSpecification exchangeSpecification =
      new ExchangeSpecification(this.getClass().getCanonicalName());
  exchangeSpecification.setSslUri("https://api.bitfinex.com/");
  exchangeSpecification.setHost("api.bitfinex.com");
  exchangeSpecification.setPort(80);
  exchangeSpecification.setExchangeName("Bitfinex");
  exchangeSpecification.setExchangeDescription("Bitfnex is a cryptocurrency and fiat exchange.");

  return exchangeSpecification;
}
 
Example 7
Source File: BitZExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {
  ExchangeSpecification exchangeSpecification =
      new ExchangeSpecification(this.getClass().getCanonicalName());
  exchangeSpecification.setSslUri("https://www.bit-z.com");
  exchangeSpecification.setHost("http://www.bit-z.com");
  exchangeSpecification.setPort(80);
  exchangeSpecification.setExchangeName("Bit-Z");
  exchangeSpecification.setExchangeDescription(
      "Bit-Z is a Bitcoin exchange registered in Hong Kong.");

  return exchangeSpecification;
}
 
Example 8
Source File: BlockchainExchange.java    From zheshiyigeniubidexiangmu with MIT License 5 votes vote down vote up
@Override
public ExchangeSpecification getDefaultExchangeSpecification() {

  ExchangeSpecification exchangeSpecification =
      new ExchangeSpecification(this.getClass().getCanonicalName());
  exchangeSpecification.setPlainTextUri("https://blockchain.info");
  exchangeSpecification.setHost("blockchain.info");
  exchangeSpecification.setPort(80);
  exchangeSpecification.setExchangeName("Blockchain");
  exchangeSpecification.setExchangeDescription(
      "Blockchain provide an API for accessing the Botcoin Network.");
  return exchangeSpecification;
}