#include <FuturesData.h>
Public Types | |
enum | FuturesSymbol { AD, BO, NB, BP, C, CC, CO, CD, CL, CR, CT, DJ, DX, EC, ED, ES, FC, GC, GI, HG, HO, HU, OJ, JO, JY, KC, LB, LC, LN, LH, ND, NG, NQ, O, PA, PB, PL, S, SB, SF, SI, SM, SP, TY, TYD, US, USD, W, YX, FW20 } |
Public Member Functions | |
FuturesData () | |
~FuturesData () | |
void | getName (QString &) |
void | getSymbol (QString &) |
void | getExchange (QString &) |
void | getContract (QString &) |
double | getLimit () |
double | getRate () |
int | setSymbol (QString &) |
void | getMonthList (QStringList &) |
void | getMonths (QStringList &) |
void | getSymbolList (QStringList &) |
void | getCurrentContract (QDateTime &, QString &) |
int | setSymbolPath (QString &) |
void | getCMESymbolList (QStringList &) |
Protected Attributes | |
QString | name |
QString | symbol |
QString | exchange |
QString | month |
float | rate |
float | limit |
QStringList | monthList |
QStringList | symbolList |
QString | contract |
QString | cme |
QString | cbot |
QString | nymex |
QString | nybot |
QString | hmuz |
QString | hknuz |
QString | all |
Definition at line 30 of file FuturesData.h.
AD | |
BO | |
NB | |
BP | |
C | |
CC | |
CO | |
CD | |
CL | |
CR | |
CT | |
DJ | |
DX | |
EC | |
ED | |
ES | |
FC | |
GC | |
GI | |
HG | |
HO | |
HU | |
OJ | |
JO | |
JY | |
KC | |
LB | |
LC | |
LN | |
LH | |
ND | |
NG | |
NQ | |
O | |
PA | |
PB | |
PL | |
S | |
SB | |
SF | |
SI | |
SM | |
SP | |
TY | |
TYD | |
US | |
USD | |
W | |
YX | |
FW20 |
Definition at line 33 of file FuturesData.h.
FuturesData::FuturesData | ( | ) |
FuturesData::~FuturesData | ( | ) |
Definition at line 101 of file FuturesData.cpp.
void FuturesData::getName | ( | QString & | d | ) |
Definition at line 105 of file FuturesData.cpp.
References name.
Referenced by DbPlugin::createNewFutures().
void FuturesData::getSymbol | ( | QString & | d | ) |
Definition at line 110 of file FuturesData.cpp.
References symbol.
Referenced by DbPlugin::createNewFutures(), DbPlugin::getCCHistory(), CC::getHistory(), NYBOT::parse(), and CME::parse().
void FuturesData::getExchange | ( | QString & | d | ) |
Definition at line 115 of file FuturesData.cpp.
References exchange.
Referenced by DbPlugin::getCCHistory(), CC::getHistory(), and NYBOT::parse().
void FuturesData::getContract | ( | QString & | d | ) |
double FuturesData::getLimit | ( | ) |
double FuturesData::getRate | ( | ) |
Definition at line 130 of file FuturesData.cpp.
References rate.
Referenced by TradeItem::calculateProfit(), PortfolioDialog::futuresProfit(), and TradeItem::getCurrentProfit().
int FuturesData::setSymbol | ( | QString & | d | ) |
Definition at line 173 of file FuturesData.cpp.
References AD, all, BO, BP, C, cbot, CD, CL, cme, CO, contract, CR, CT, DJ, DX, EC, ED, ES, exchange, FC, FW20, GC, getCurrentContract(), GI, HG, hknuz, hmuz, HO, HU, JO, JY, KC, LB, LC, LH, limit, LN, month, name, NB, ND, NG, NQ, nybot, nymex, O, OJ, PA, PB, PL, rate, S, SB, SF, SI, SM, SP, symbol, symbolList, TY, TYD, US, USD, W, and YX.
Referenced by PortfolioDialog::futuresProfit(), DbPlugin::getCCHistory(), CC::getHistory(), NYBOT::parse(), CME::parse(), TradeItem::setFuturesType(), and setSymbolPath().
void FuturesData::getMonthList | ( | QStringList & | l | ) |
Definition at line 162 of file FuturesData.cpp.
References month.
Referenced by getCurrentContract().
void FuturesData::getMonths | ( | QStringList & | l | ) |
Definition at line 168 of file FuturesData.cpp.
References monthList.
Referenced by getCurrentContract().
void FuturesData::getSymbolList | ( | QStringList & | l | ) |
Definition at line 135 of file FuturesData.cpp.
References symbolList.
Referenced by CC::createNew(), and DbPlugin::createNewCC().
void FuturesData::getCurrentContract | ( | QDateTime & | dt, | |
QString & | cont | |||
) |
Definition at line 572 of file FuturesData.cpp.
References getMonthList(), getMonths(), and symbol.
Referenced by DbPlugin::getCCHistory(), CC::getHistory(), and setSymbol().
int FuturesData::setSymbolPath | ( | QString & | d | ) |
Definition at line 633 of file FuturesData.cpp.
References setSymbol().
Referenced by DbPlugin::createNewFutures().
void FuturesData::getCMESymbolList | ( | QStringList & | l | ) |
QString FuturesData::name [protected] |
QString FuturesData::symbol [protected] |
Definition at line 105 of file FuturesData.h.
Referenced by getCurrentContract(), getSymbol(), and setSymbol().
QString FuturesData::exchange [protected] |
QString FuturesData::month [protected] |
float FuturesData::rate [protected] |
float FuturesData::limit [protected] |
QStringList FuturesData::monthList [protected] |
QStringList FuturesData::symbolList [protected] |
Definition at line 111 of file FuturesData.h.
Referenced by FuturesData(), getSymbolList(), and setSymbol().
QString FuturesData::contract [protected] |
QString FuturesData::cme [protected] |
QString FuturesData::cbot [protected] |
QString FuturesData::nymex [protected] |
QString FuturesData::nybot [protected] |
QString FuturesData::hmuz [protected] |
QString FuturesData::hknuz [protected] |
QString FuturesData::all [protected] |