コード例 #1
0
        /// <summary>
        /// Private IR Call: GetAccounts
        /// </summary>
        /// <returns></returns>
        private async Task <List <AccountHolding> > GetAccounts()
        {
            var nonce = APIHelpers.GetNonce();

            dynamic data = new ExpandoObject();

            data.apiKey = ApiKey;
            data.nonce  = nonce;

            var getAccountsArgs = new GetAccountsArgs
            {
                apiKey    = ApiKey,
                nonce     = nonce,
                signature = APIHelpers.GetSignature(RESTClient.BaseUri, "/Private/GetAccounts", data, ApiSecret, APIHelpers.HashAlgorithmType.HMACEightBit)
            };

            return(await RESTClient.PostAsync <List <AccountHolding>, GetAccountsArgs>(getAccountsArgs, "Private/GetAccounts"));
        }