示例#1
0
    public static string depth(string pair)
    {
        string url = "https://www.okcoin.cn/api/v1/depth.do?symbol={0}&size=200";

        url = string.Format(url, pair);
        return(OkcCNHelper.query(url));
    }
示例#2
0
    public static string trade(string since)
    {
        string url = "https://www.okcoin.cn/api/v1/trades.do?since={0}";

        url = string.Format(url, since);
        return(OkcCNHelper.query(url));
    }
示例#3
0
    //PUBLIC
    public static string ticker(string pair)
    {
        string url = "https://www.okcoin.cn/api/v1/ticker.do?symbol={0}";

        url = string.Format(url, pair);
        return(OkcCNHelper.query(url));
    }
示例#4
0
    //TRADE
    public static string personal_info()
    {
        Dictionary <string, string> list = new Dictionary <string, string>();

        return(OkcCNHelper.query("https://www.okcoin.cn/api/v1/userinfo.do", list));
    }