vnpy/vn.ib/ibapi/linux/client/MarginCondition.h
2016-11-12 00:42:37 +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);
};