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

28 lines
629 B
C++

/* Copyright (C) 2013 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
* and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable. */
#pragma once
#ifndef commissionreport_def
#define commissionreport_def
struct CommissionReport
{
CommissionReport()
{
commission = 0;
realizedPNL = 0;
yield = 0;
yieldRedemptionDate = 0;
}
// commission report fields
std::string execId;
double commission;
std::string currency;
double realizedPNL;
double yield;
int yieldRedemptionDate; // YYYYMMDD format
};
#endif // commissionreport_def