Example #1
0
    public static void insert_ticker(string result, string pair)
    {
        StringBuilder sb  = new StringBuilder();
        BsonDocument  doc = MongoHelper.get_doc_from_str(result);

        BtcHelper.insert_ticker("btcchina", pair, doc["ticker"]["last"].ToString(), doc["ticker"]["sell"].ToString(), doc["ticker"]["buy"].ToString(), doc["ticker"]["high"].ToString(), doc["ticker"]["low"].ToString(), doc["ticker"]["vol"].ToString(), doc["ticker"]["date"].ToString() + "000");
    }
Example #2
0
    public static void insert_ticker(string result)
    {
        StringBuilder sb  = new StringBuilder();
        BsonDocument  doc = MongoHelper.get_doc_from_str(result);

        BtcHelper.insert_ticker("btctrade", "btc_cny", doc["last"].ToString(), doc["sell"].ToString(), doc["buy"].ToString(), doc["high"].ToString(), doc["low"].ToString(), doc["vol"].ToString(), doc["time"].ToString() + "000");
    }