//常量值
const int MARGIN = 10;
const string DIRECTION = "buy";
const int THRESHOLD = -1;
const double POSITION = 100;//下单量
const double SELL_AT = 47;
const double PROFIT = 0.062 / MARGIN; //卖一半的盈利比
enum operation {
open_buy, open_sell, nothing
};
class Test_BM {
private: