BitMarketBaseService(Exchange exchange, IRestProxyFactory restProxyFactory) { super(exchange); bitMarket = restProxyFactory.createProxy( BitMarket.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); bitMarketAuthenticated = restProxyFactory.createProxy( BitMarketAuthenticated.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); sign = BitMarketDigest.createInstance(exchange.getExchangeSpecification().getSecretKey()); apiKey = exchange.getExchangeSpecification().getApiKey(); } }
/** * Constructor * * @param exchange */ protected ANXMarketDataServiceRaw(Exchange exchange, IRestProxyFactory restProxyFactory) { super(exchange); Assert.notNull( exchange.getExchangeSpecification().getSslUri(), "Exchange specification URI cannot be null"); this.anxV2 = restProxyFactory.createProxy( ANXV2.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); }
/** Constructor */ protected ANXAccountServiceRaw(Exchange exchange, IRestProxyFactory restProxyFactory) { super(exchange); Assert.notNull( exchange.getExchangeSpecification().getSslUri(), "Exchange specification URI cannot be null"); this.anxV2 = restProxyFactory.createProxy( ANXV2.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); this.signatureCreator = ANXV2Digest.createInstance(exchange.getExchangeSpecification().getSecretKey()); }
/** * Constructor * * @param exchange */ public BleutradeBaseService(Exchange exchange, IRestProxyFactory restProxyFactory) { super(exchange); this.bleutrade = restProxyFactory.createProxy( BleutradeAuthenticated.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); this.apiKey = exchange.getExchangeSpecification().getApiKey(); this.signatureCreator = BleutradeDigest.createInstance(exchange.getExchangeSpecification().getSecretKey()); } }
/** * Constructor * * @param exchange */ protected ANXTradeServiceRaw(Exchange exchange, IRestProxyFactory restProxyFactory) { super(exchange); Assert.notNull( exchange.getExchangeSpecification().getSslUri(), "Exchange specification URI cannot be null"); this.anxV2 = restProxyFactory.createProxy( ANXV2.class, exchange.getExchangeSpecification().getSslUri(), getClientConfig()); this.signatureCreator = ANXV2Digest.createInstance(exchange.getExchangeSpecification().getSecretKey()); }