Beispiel #1
0
        private static object WalletMarginToArray(dynamic objectJson)
        {
            WalletMarginResult MarginData = (WalletMarginResult)objectJson;

            object[] array = new object[WalletMarginCol];

            array[0] = MarginData.MarginAccountWallet;
            array[1] = MarginData.DepositkeepRate;
            array[2] = MarginData.ConsignmentDepositRate;
            array[3] = MarginData.CashOfConsignmentDepositRate;

            return(array);
        }
Beispiel #2
0
        private static object WalletMarginToArray(string str)
        {
            var objectJson = DynamicJson.Parse(str);

            WalletMarginResult WalletMarginData = (WalletMarginResult)objectJson;

            object[] array = new object[WalletMarginCol];

            array[0] = WalletMarginData.MarginAccountWallet;
            array[1] = WalletMarginData.DepositkeepRate;
            array[2] = WalletMarginData.ConsignmentDepositRate;
            array[3] = WalletMarginData.CashOfConsignmentDepositRate;

            return(array);
        }