December 2017
Beginner to intermediate
470 pages
12h 29m
English
The WalletRequester will be conceptually similar to the ExchangeRequester. It will be an interface, and will be implemented in our BTCRequester and LTCRequester interfaces. As you can see, it requires a public method called assets() to be implemented and to return a list of Asset instances. It also requires a private create_asset() method to be implemented, which should return individual Asset instances, and a private url method that will build the URL required for the API call. It offers a request() private method that will be used by implementations to retrieve data from external APIs:
source("../../../utilities/requester.R")WalletRequester <- R6Class( "WalletRequester", public = list( assets = function() ...