vnpy/vn.api/vn.ib/ibapi/linux/client/PercentChangeCondition.h

23 lines
523 B
C
Raw Normal View History

#pragma once
#include "ContractCondition.h"
#include "Order.h"
class TWSAPIDLLEXP PercentChangeCondition : public ContractCondition {
friend OrderCondition;
double m_changePercent;
protected:
PercentChangeCondition()
: m_changePercent(UNSET_DOUBLE)
{ }
virtual std::string valueToString() const;
virtual void valueFromString(const std::string &v);
public:
static const OrderConditionType conditionType = OrderConditionType::PercentChange;
double changePercent();
void changePercent(double changePercent);
};