csharp/aabiryukov/CryptoMarketApi/Api/OKCoinApi/UserInfo.cs

UserInfo.cs
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace OKCoin
{
	public clast UserInfo
	{
		public decimal astetNet { get; private set; }
		public decimal astetTotal { get; private set; }
//		public Balance Borrow { get; private set; }
		public Balance Free { get; private set; }
		public Balance Freezed { get; private set; }
//		public Balance UnionFund { get; private set; }


		public static UserInfo ReadFromJObject(JToken o)
		{
			if (o == null)
				return null;

			var funds = o["funds"];
			return new UserInfo()
			{
				astetNet = funds["astet"].Value("net"),
				astetTotal = funds["astet"].Value("total"),

				Free = new Balance()
				{
					Btc = funds["free"].Value("btc"),
					Usd = funds["free"].Value("usd")
				},

				Freezed = new Balance()
				{
					Btc = funds["freezed"].Value("btc"),
					Usd = funds["freezed"].Value("usd")
				},
			};
		}
	}
}