#pragma once
|
#include <rapidjson/rapidjson.h>
|
#include <rapidjson/document.h>
|
#include <rapidjson/stringbuffer.h>
|
#include <rapidjson/writer.h>
|
#include <rapidjson/prettywriter.h>
|
|
#include <string>
|
#include <list>
|
#include "SocketManager.h"
|
#include <afx.h>
|
|
class LowSuctionNetworkApi
|
{
|
private:
|
|
static string _TRADE_SERVER_ADDR;
|
static int _TRADE_SERVER_PORT ;
|
|
|
// ÍøÂçÇëÇó
|
// ÇëÇó½»Ò×·þÎñÆ÷
|
static std::string base_trade_request(std::string data);
|
static string get_rquest_id();
|
static string get_sign(rapidjson::Document& document);
|
|
|
|
public:
|
static std::string load_request_data(std::string data);
|
//²âÊÔ³·µ¥
|
static string test_cancel_order(string code);
|
// »ñÈ¡»·¾³
|
static string get_env(bool need_history_data);
|
|
// ¸üÐÂÁìÕÇÐÅÏ¢
|
static string update_leading_limit_up_datas();
|
|
// ¸üдúÂ뾫ѡ°å¿é
|
static string update_code_jx_plates();
|
|
static string init_datas();
|
|
static string get_place_order_records();
|
|
static string get_settings();
|
|
static string set_settings(int trade_state,int buy_money);
|
|
// ¶Áȡϵ¥¶ÓÁÐ
|
static string read_place_order_queue();
|
// ÀºÚ
|
static string add_black_list(string code);
|
|
static string set_buy(string id);
|
|
static string set_not_buy(string id);
|
};
|