public MainWindow() { InitializeComponent(); string marketAll = HttpAPI.GetMarketAll(); List <MarketInfo> all = JsonConvert.DeserializeObject <List <MarketInfo> >(marketAll); Console.WriteLine(marketAll); string[] markets = new string[1]; markets[0] = "KRW-BTC"; ObservableCollection <Ticker> tickerList = JsonConvert.DeserializeObject <ObservableCollection <Ticker> >(HttpAPI.GetTicker(markets)); List <Account> accountList = JsonConvert.DeserializeObject <List <Account> >(HttpAPI.GetAccount()); List <Account> accountList2 = JsonConvert.DeserializeObject <List <Account> >(HttpAPI.GetAccount()); string data = HttpAPI.GetOrderChance(markets); Console.WriteLine(data); OrderChance orderChance = JsonConvert.DeserializeObject <OrderChance>(HttpAPI.GetOrderChance(markets)); }
private List <MarketInfo> GetMarketList() { string marketAll = HttpAPI.GetMarketAll(); return(JsonConvert.DeserializeObject <List <MarketInfo> >(marketAll)); }