mtgox

HttpWebRequest.GetResponse() keeps getting timed out

二次信任 提交于 2019-12-01 02:32:15
i wrote a simple C# function to retrieve trade history from MtGox with following API call: https://data.mtgox.com/api/1/BTCUSD/trades?since=<trade_id> documented here: https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Multi_currency_trades here's the function: string GetTradesOnline(Int64 tid) { Thread.Sleep(30000); // communicate string url = "https://data.mtgox.com/api/1/BTCUSD/trades?since=" + tid.ToString(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader reader = new StreamReader(response

Convenient way to extract data from the MtGox/PubNub JSON API?

谁说我不能喝 提交于 2019-11-30 09:49:43
问题 I'm using the PubNub API with Java for pulling data from MtGox. When retrieving data, the API delivers it in form of a JSONObject , which represents a tree structure of JSON data. Trying to extract bits of information directly from a JSONObject produces ugly code with lots of calls to getJSONObject(String) , for which again exceptions might need to be handled. Therefor, I'm looking for a convenient way to extract information from the JSONObject responses. So far, I've come across the

Convenient way to extract data from the MtGox/PubNub JSON API?

☆樱花仙子☆ 提交于 2019-11-29 17:02:33
I'm using the PubNub API with Java for pulling data from MtGox. When retrieving data, the API delivers it in form of a JSONObject , which represents a tree structure of JSON data. Trying to extract bits of information directly from a JSONObject produces ugly code with lots of calls to getJSONObject(String) , for which again exceptions might need to be handled. Therefor, I'm looking for a convenient way to extract information from the JSONObject responses. So far, I've come across the possibility to convert the JSONObject into a POJO and then access the POJO. For conversion, I found the

HttpWebRequest.GetResponse() keeps getting timed out

醉酒当歌 提交于 2019-11-28 02:38:23
问题 i wrote a simple C# function to retrieve trade history from MtGox with following API call: https://data.mtgox.com/api/1/BTCUSD/trades?since=<trade_id> documented here: https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Multi_currency_trades here's the function: string GetTradesOnline(Int64 tid) { Thread.Sleep(30000); // communicate string url = "https://data.mtgox.com/api/1/BTCUSD/trades?since=" + tid.ToString(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse