Example #1
0
        public async Task Initialize()
        {
            var assetsResponse = await HttpProxy.GetJson <KrakenWrappedResponse <Dictionary <string, KrakenAsset> > >(GetHttpClient().GetFullUrl("0/public/Assets"), null);

            Assets = assetsResponse.Result;

            var assetPairsResponse = await HttpProxy.GetJson <KrakenWrappedResponse <Dictionary <string, KrakenAssetPair> > >(GetHttpClient().GetFullUrl("0/public/AssetPairs"), null);

            AssetPairs = assetPairsResponse.Result;

            Initialized = true;
        }
Example #2
0
        public async Task Initialize()
        {
            Info = await HttpProxy.GetJson <BinanceInfo>(GetHttpClient().GetFullUrl("v1/exchangeInfo"), null);

            Initialized = true;
        }