vnpy/vn.api/vn.ib/ibapi/windows/client/MarginCondition.h

23 lines
458 B
C
Raw Normal View History

#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);
};