vnpy/vn.ib/ibapi/windows/client/CommonDefs.h
2016-11-12 00:42:37 +08:00

34 lines
727 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 common_defs_h_INCLUDED
#define common_defs_h_INCLUDED
typedef long TickerId;
typedef long OrderId;
enum faDataType { GROUPS=1, PROFILES, ALIASES } ;
inline const char* faDataTypeStr ( faDataType pFaDataType )
{
switch (pFaDataType) {
case GROUPS:
return "GROUPS";
case PROFILES:
return "PROFILES";
case ALIASES:
return "ALIASES";
}
return 0 ;
}
enum MarketDataType {
REALTIME = 1,
FROZEN = 2,
DELAYED = 3,
DELAYED_FROZEN = 4
};
#endif /* common_defs_h_INCLUDED */