//
//  SmartChampDefs.h
//  NetAPI
//
//  Created by aaab on 2023/01/14.
//

#ifndef SmartChampDefs_h
#define SmartChampDefs_h

// 로그인 유형
typedef NS_ENUM (NSInteger , LOGIN_TYPE)
{
    LOGIN_TYPE_NONE = 0,   // 로그인 안됨
    LOGIN_TYPE_AUTO = 1,   // 자동 로그인
    LOGIN_TYPE_SISE = 2,   // 시세용 로그인
    LOGIN_TYPE_CERT = 3   // 거래용 로그인
};


// 거래용 인증 유형
typedef NS_ENUM (NSInteger , CERT_TYPE )
{
    CERT_TYPE_NONE = 0,         // 인증안함
    CERT_TYPE_IDPWCERT = 1,    // 아이디/비번/인증서 로그인
    CERT_TYPE_PUBCERT = 2     // 인증서로 로그인
};
// 컬러
#define DATA_ATTR_RED BC_COLOR_RED
#define DATA_ATTR_RED_R BC_COLOR_REVERSE_RED
#define DATA_ATTR_BLUE BC_COLOR_BLUE
#define DATA_ATTR_BLUE_R BC_COLOR_REVERSE_BLUE
#define DATA_ATTR_GREEN BC_COLOR_GREEN

#define K_DIC_STOCK         @"stockcode"
#define K_DIC_KOSPI         @"kospicode"
#define K_DIC_KOSDAQ        @"kosdaqcode"
#define K_DIC_FUTURE        @"futurecode"
#define K_DIC_MINIFUTURE    @"minifuturecode"
#define K_DIC_OPTION        @"optioncode"
#define K_DIC_MINIOPTION    @"minioptioncode"
#define K_DIC_ELW           @"elwcode"
#define K_DIC_ETF           @"etfcode"
#define K_DIC_ETN           @"etncode"
#define K_DIC_KONEX         @"konexcode"
#define K_DIC_KOTC          @"kotccode"
#define K_DIC_SRGT          @"srgtcode"
#define K_DIC_CMEFUTURE     @"cmefuturecode"
#define K_DIC_JFUTURE       @"jfuturecode"
#define K_DIC_VFUTURE       @"vfuturecode"
#define K_DIC_TFUTURE       @"tfuturecode"
#define K_DIC_KNFUTURE      @"knfuturecode"
#define K_DIC_BOND          @"bond"
#define K_DIC_KRX300F       @"krx300future"
#define K_DIC_KDQ150F       @"kdq150future"
#define K_DIC_KDQ150O       @"kdq150option"
#define K_DIC_UPJONG        @"upjong"
#define K_DIC_EURO50F       @"euro50future"
#define K_DIC_WEEKOPTION    @"weeklyoption"

#define K_DIC_WSTOCK                    @"wstock"
#define K_DIC_WSTOCK_HKSTOCK            @"hkstock"
#define K_DIC_WSTOCK_HKETF              @"hketf"
#define K_DIC_WSTOCK_SANGHAI            @"cnsanghai"
#define K_DIC_WSTOCK_SHENZHEN           @"cnshenzhen"
#define K_DIC_WSTOCK_NEWYORK            @"usny"
#define K_DIC_WSTOCK_NASDAQ             @"usnasdaq"
#define K_DIC_WSTOCK_AMEX               @"usamex"
#define K_DIC_WSTOCK_USETF              @"usetf"
#define K_DIC_WSTOCK_UPJONG             @"wupjong"
#define K_DIC_CFD                       @"cfdcode"

#define K_DIC_MEMBERS       @"memberscode"

#define K_ARR_ELWBASE       @"basecode"
#define K_ARR_ELWISSUE      @"issuecode"
#define K_ARR_JFBASENAME    @"jfbasename"
#define K_ARR_JFMONTH       @"jfmonth"

#define K_ARR_OPTKEY        @"optkey"
#define K_ARR_OPTMKEY       @"optmkey"
#define K_ARR_MINIOPTKEY    @"minioptkey"
#define K_ARR_MINIOPTMKEY   @"minioptmkey"
#define K_ARR_KDQ150OPTKEY  @"kdq150optkey"
#define K_ARR_KDQ150OPTMKEY @"kdq150optmkey"
#define K_ARR_WEEKOPTKEY    @"weeklyoptkey"
#define K_ARR_WEEKOPTMKEY   @"weeklyoptmkey"


#define notifyChegyulAlram  @"notifyChegyulAlram"

#define SERVER_MODE_DEV @"1"
#define SERVER_MODE_REAL @"0"

#endif /* SmartChampDefs_h */
