/** * Read the API & Secret key from a resource called {@code prefix}-{@code secret.keys}. NOTE: This * file MUST NEVER be commited to source control. It is therefore added to .gitignore. */ public static void setApiAndSecretKey(ExchangeSpecification exchangeSpec, String prefix) { Properties props = getSecretProperties(prefix); if (props != null) { exchangeSpec.setApiKey(props.getProperty("apiKey")); exchangeSpec.setSecretKey(props.getProperty("secretKey")); } }
/** * Read the API & Secret key from a resource called {@code prefix}-{@code secret.keys}. NOTE: This * file MUST NEVER be commited to source control. It is therefore added to .gitignore. */ public static void setApiAndSecretKey(ExchangeSpecification exchangeSpec, String prefix) { Properties props = getSecretProperties(prefix); if (props != null) { exchangeSpec.setApiKey(props.getProperty("apiKey")); exchangeSpec.setSecretKey(props.getProperty("secretKey")); } }
/** * Read the API & Secret key from a resource called {@code prefix}-{@code secret.keys}. NOTE: This * file MUST NEVER be commited to source control. It is therefore added to .gitignore. */ public static void setApiAndSecretKey(ExchangeSpecification exchangeSpec, String prefix) { Properties props = getSecretProperties(prefix); if (props != null) { exchangeSpec.setApiKey(props.getProperty("apiKey")); exchangeSpec.setSecretKey(props.getProperty("secretKey")); } }
public static Exchange createExchange() { ExchangeSpecification exSpec = new ExchangeSpecification(HitbtcExchange.class); exSpec.setApiKey(""); exSpec.setSecretKey(""); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange getExchange() { ExchangeSpecification exSpec = new ExchangeSpecification(BittrexExchange.class); exSpec.setApiKey("407495e35a2b4de2823b6eb70f15d767"); exSpec.setSecretKey("77deef66d6bd4a6e80332dd4dd502f10"); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange getExchange() { Exchange bleutrade = ExchangeFactory.INSTANCE.createExchange(BleutradeExchange.class.getName()); ExchangeSpecification exchangeSpecification = bleutrade.getDefaultExchangeSpecification(); exchangeSpecification.setApiKey(""); exchangeSpecification.setSecretKey(""); bleutrade.applySpecification(exchangeSpecification); return bleutrade; } }
public static Exchange createExchange() { // Use the factory to get BFX exchange API using default settings Exchange bfx = ExchangeFactory.INSTANCE.createExchange(BitfinexExchange.class.getName()); ExchangeSpecification bfxSpec = bfx.getDefaultExchangeSpecification(); bfxSpec.setApiKey(""); bfxSpec.setSecretKey(""); bfx.applySpecification(bfxSpec); return bfx; } }
public static Exchange createExchange() { Exchange exchange = ExchangeFactory.INSTANCE.createExchange(BithumbExchange.class.getName()); ExchangeSpecification bithumbSpec = exchange.getDefaultExchangeSpecification(); bithumbSpec.setApiKey(""); bithumbSpec.setSecretKey(""); exchange.applySpecification(bithumbSpec); return exchange; } }
public static Exchange getExchange() { ExchangeSpecification exSpec = new ExchangeSpecification(BiboxExchange.class); exSpec.setApiKey("your-api-key"); exSpec.setSecretKey("your-secret-key"); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange getExchange() { ExchangeSpecification exSpec = new ExchangeSpecification(CCEXExchange.class); exSpec.setApiKey(""); exSpec.setSecretKey(""); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange createExchange() { ExchangeSpecification exSpec = new CoinoneExchange().getDefaultExchangeSpecification(); exSpec.setApiKey("PublicKeyGeneratedUopnLogin"); exSpec.setSecretKey("SecretKeyGeneratedUopnLogin"); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange createExchange() { ExchangeSpecification exchangeSpecification = new CryptopiaExchange().getDefaultExchangeSpecification(); exchangeSpecification.setApiKey(null); exchangeSpecification.setSecretKey(null); return ExchangeFactory.INSTANCE.createExchange(exchangeSpecification); } }
public static Exchange createExchange() { ExchangeSpecification exSpec = new BTCTurkExchange().getDefaultExchangeSpecification(); exSpec.setApiKey("<insert_api_key>"); exSpec.setSecretKey("<insert_secret_key>"); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange createExchange() { ExchangeSpecification exSpec = new UpbitExchange().getDefaultExchangeSpecification(); exSpec.setApiKey("PublicKeyGeneratedUopnLogin"); exSpec.setSecretKey("SecretKeyGeneratedUopnLogin"); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange createExchange() { ExchangeSpecification exSpec = new ExchangeSpecification(AbucoinsExchange.class); exSpec.setSecretKey(""); exSpec.setApiKey(""); exSpec.setPassword(""); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static Exchange createExchange() throws IOException { ExchangeSpecification exSpec = new ExchangeSpecification(WexExchange.class); exSpec.setSecretKey("26d17ede9bba11f1a71ab99f5d51041879d89c61e17601e45ea3fdfe1d38e649"); exSpec.setApiKey("01Q84C7I-1A8T1TY8-LFAK34DS-CS4UHLYZ-RDBM4EOK"); exSpec.setSslUri("https://btc-e.com"); Exchange exchange = ExchangeFactory.INSTANCE.createExchange(exSpec); exchange.remoteInit(); return exchange; } }
public static Exchange createExchange() { ExchangeSpecification exSpec = new CoingiExchange().getDefaultExchangeSpecification(); exSpec.setUserName("Username"); exSpec.setApiKey("PublicKeyGeneratedUponLogin"); exSpec.setSecretKey("SecretKeyGeneratedUponLogin"); return ExchangeFactory.INSTANCE.createExchange(exSpec); } }
public static void main(String[] args) throws IOException { // API key with Read Only Permission or All Permissions. String publicKey = args[0]; String privateKey = args[1]; ExchangeSpecification spec = new ExchangeSpecification(BTCTradeExchange.class); spec.setApiKey(publicKey); spec.setSecretKey(privateKey); Exchange btcTrade = ExchangeFactory.INSTANCE.createExchange(spec); generic(btcTrade); raw(btcTrade); }
public static Exchange createExchange() throws IOException { ExchangeSpecification exSpec = new ExchangeSpecification(DSXExchange.class); exSpec.setSecretKey("6FY66EC0YJ7YL4OHAC1X5ZEYAUUFRJBFI21I9S7A5PW7"); exSpec.setApiKey("396f12b3-9998-4ff8-800b-f29ab6d8e886"); exSpec.setSslUri("https://dsx.uk"); Exchange exchange = ExchangeFactory.INSTANCE.createExchange(exSpec); exchange.remoteInit(); return exchange; } }
public static Exchange createTestExchange() { Exchange krakenExchange = ExchangeFactory.INSTANCE.createExchange(KrakenExchange.class.getName()); krakenExchange.getExchangeSpecification().setApiKey("API Key"); krakenExchange.getExchangeSpecification().setSecretKey("Secret=="); krakenExchange.getExchangeSpecification().setUserName("user"); krakenExchange.applySpecification(krakenExchange.getExchangeSpecification()); return krakenExchange; } }