Ejemplo n.º 1
0
    public static string trade(string pair, string date)
    {
        string url = "https://data.btcchina.com/data/historydata?since={0}&limit=5000&sincetype=time";

        url = string.Format(url, date);
        return(BtcchinaHelper.query(url));
    }
Ejemplo n.º 2
0
    public static string trade_by_id(string pair, string id)
    {
        string url = "https://data.btcchina.com/data/historydata?since={0}&limit=5000";

        url = string.Format(url, id);
        return(BtcchinaHelper.query(url));
    }
Ejemplo n.º 3
0
    public static string ticker(string pair)
    {
        string url = "https://data.btcchina.com/data/ticker?market=btccny";

        switch (pair)
        {
        case "btc_cny":
            url = "https://data.btcchina.com/data/ticker?market=btccny";
            break;

        case "ltc_cny":
            url = "https://data.btcchina.com/data/ticker?market=ltccny";
            break;

        default:
            break;
        }
        return(BtcchinaHelper.query(url));
    }
Ejemplo n.º 4
0
    //TRADE
    public static string personal_info()
    {
        BsonArray param = new BsonArray();

        return(BtcchinaHelper.query("https://api.btcchina.com/api_trade_v1.php", "getAccountInfo", param));
    }