parametersetting.h 894 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef PARAMETERSETTING_H
  2. #define PARAMETERSETTING_H
  3. #include <QObject>
  4. #include <vector>
  5. using namespace std;
  6. class ParameterSetting : public QObject
  7. {
  8. Q_OBJECT
  9. public:
  10. ParameterSetting(QObject *parent = nullptr);
  11. ~ParameterSetting();
  12. int m_decimalCorrection; //小数位修正值
  13. int m_commission;//佣金
  14. bool m_bsaveOrderRecord;//是否保存订单记录
  15. QString m_bopenPositionPercentage;//开仓比例
  16. int m_slippage ; // 滑点
  17. QString m_orderMode; // 订单模式
  18. int m_orderLevelLimit; // 订单层级限制
  19. QString m_orderType; // 订单类型
  20. int m_orderQuantity ; // 订单数量
  21. int m_orderPercentageUp; // 上涨百分比
  22. int m_orderPercentageDown; // 下跌百分比
  23. std::vector<std::string> m_platforms;// = {"Binance"}; // 交易平台列表
  24. std::vector<std::string> m_contracts ;//= {"BTCUSDT"}; // 合约列表
  25. private:
  26. public:
  27. void ParseJson(const QByteArray &arrayjson);
  28. };
  29. #endif // PARAMETERSETTING_H