vnpy/vn.ib/ibapi/client/MarginCondition.h
2016-08-23 23:45:06 +08:00

23 lines
458 B
C++

#pragma once
#include "OperatorCondition.h"
class TWSAPIDLLEXP MarginCondition : public OperatorCondition {
friend OrderCondition;
int m_percent;
public:
static const OrderConditionType conditionType = OrderConditionType::Margin;
protected:
MarginCondition() { }
virtual std::string valueToString() const;
virtual void valueFromString(const std::string &v);
public:
virtual std::string toString();
int percent();
void percent(int percent);
};