| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef PARAMETERSETTING_H
- #define PARAMETERSETTING_H
- #include <QObject>
- #include <vector>
- using namespace std;
- class ParameterSetting : public QObject
- {
- Q_OBJECT
- public:
- ParameterSetting(QObject *parent = nullptr);
- ~ParameterSetting();
- int m_decimalCorrection; //小数位修正值
- int m_commission;//佣金
- bool m_bsaveOrderRecord;//是否保存订单记录
- QString m_bopenPositionPercentage;//开仓比例
- int m_slippage ; // 滑点
- QString m_orderMode; // 订单模式
- int m_orderLevelLimit; // 订单层级限制
- QString m_orderType; // 订单类型
- int m_orderQuantity ; // 订单数量
- int m_orderPercentageUp; // 上涨百分比
- int m_orderPercentageDown; // 下跌百分比
- std::vector<std::string> m_platforms;// = {"Binance"}; // 交易平台列表
- std::vector<std::string> m_contracts ;//= {"BTCUSDT"}; // 合约列表
- private:
- public:
- void ParseJson(const QByteArray &arrayjson);
-
- };
- #endif // PARAMETERSETTING_H
|