Flink first project
Posted by
Georg Heiler on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Flink-first-project-tp12754.html
New to flink I would like to do a small project to get a better feeling for flink. I am thinking of getting some stats from several REST api (i.e. Bitcoin course values from different exchanges) and comparing prices over different exchanges in real time.
Are there already some REST api sources for flink as a sample to get started implementing a custom REST source?
val currencyPair = new CurrencyPair(Currency.XMR, Currency.BTC)
CertHelper.trustAllCerts()
val poloniex = ExchangeFactory.INSTANCE.createExchange(classOf[PoloniexExchange].getName)
val dataService = poloniex.getMarketDataService
generic(dataService)
raw(dataService.asInstanceOf[PoloniexMarketDataServiceRaw])
System.out.println(dataService.getTicker(currencyPair))
Regards,
Georg