0:00:00.520,0:00:07.649 Hey, this is Tom with Coherent Logic and today I'm going to walk you through an example of the Coherent Data Adapter: OpenFIGI Client Edition middleware for Java. 0:00:08.380,0:00:11.309 What you can see here is the Groovy console. I've 0:00:12.460,0:00:14.880 excluded some dependencies. I won't go into that here. 0:00:14.880,0:00:19.409 But I'm going to grab a bunch of dependencies and, in particular, we are going to grab 0:00:19.510,0:00:23.279 the openfigi-client-core and the open-figi-client-configuration dependencies. 0:00:25.510,0:00:31.769 We have two imports down here for a query builder and then we need the Spring AnnotationConfigApplicationContext. 0:00:33.070,0:00:37.469 In the next step we need to instantiate the application context as you see here -- 0:00:37.469,0:00:42.809 we're going to reference this package, which is found in the openfigi-client-configuration 0:00:43.390,0:00:45.390 dependency. 0:00:46.780,0:00:51.090 Next we're going to get an instance of the query builder using the application context 0:00:53.500,0:00:57.660 and finally, we are going to construct the query to the OpenFIGI web services 0:00:57.820,0:01:00.629 We use an instance of QueryBuilder to construct the query. 0:01:00.940,0:01:06.750 We are going to set the API key that we are using using this method called withExternalAPIKey 0:01:06.750,0:01:12.029 This will take the API key value from an operating system environment variable. We will 0:01:12.729,0:01:18.719 get the RequestBody and then we will set a value for wertpapier on that to 851399. 0:01:19.240,0:01:23.189 When we are done, we will then execute the doGetAsData method -- 0:01:23.229,0:01:30.029 this will invoke a call to the OpenFIGI web services which will convert the resultant json into an instance of Data and 0:01:30.310,0:01:32.310 you can see that here. 0:01:33.100,0:01:38.489 Finally, we are going to create a counter and then we're going to invoke the accept method on the data object. 0:01:38.490,0:01:40.530 The accept method is essentially an 0:01:41.350,0:01:47.669 implementation of the visitor pattern where we are going to simply print out that object as well as the counter value. 0:01:48.130,0:01:50.610 So let's run this and take a look at what the results look like. 0:01:57.850,0:01:59.280 Okay, we can see the results here. 0:01:59.280,0:02:05.309 I will only look at the last result, which is number 169 and then we can see here 0:02:05.310,0:02:08.399 that this is for IBM and you can see the ticker. 0:02:09.130,0:02:13.409 Here it has an exchange code associated with it and then there some other values that I won't go into. 0:02:13.720,0:02:18.779 So that's it for today. If you enjoyed this video, please give it a thumbs-up. Feel free to leave your comments and please subscribe to the channel and 0:02:19.360,0:02:23.460 I'll get your response to any questions as soon as I can. Thank you.