| | |
| | | |
| | | |
| | | |
| | | US("US","美国股票","5",PropertiesUtil.getProperty("US_HTTP_API"),PropertiesUtil.getProperty("US_KEY"),"USD","$"), |
| | | HK("HK","香港股票","39",PropertiesUtil.getProperty("HK_HTTP_API"),PropertiesUtil.getProperty("HK_KEY"),"HKD","HK$"), |
| | | MAS("MAS","马来西亚股票","42",PropertiesUtil.getProperty("MAS_HTTP_API"),PropertiesUtil.getProperty("MAS_KEY"),"MYR","RM"); |
| | | |
| | | // IN("IN","印度股票","14", PropertiesUtil.getProperty("IN_HTTP_API"),PropertiesUtil.getProperty("IN_KEY")), |
| | | US("US","美国股票","5",PropertiesUtil.getProperty("US_HTTP_API"),PropertiesUtil.getProperty("US_KEY"),"USD","$","ws://ws-us.js-stock.top/"), |
| | | HK("HK","香港股票","39",PropertiesUtil.getProperty("HK_HTTP_API"),PropertiesUtil.getProperty("HK_KEY"),"HKD","HK$","ws://test-ws.js-stock.top/"), |
| | | MAS("MAS","马来西亚股票","42",PropertiesUtil.getProperty("MY_HTTP_API"),PropertiesUtil.getProperty("MY_KEY"),"MYR","RM","ws://api-my-ws.js-stock.top/"), |
| | | KR("KR","韩国股票","11",PropertiesUtil.getProperty("KR_HTTP_API"),PropertiesUtil.getProperty("KR_KEY"),"KRW","₩","http://api-kr-ws.js-stock.top/"), |
| | | IN("IN","印度股票","14", PropertiesUtil.getProperty("IN_HTTP_API"),PropertiesUtil.getProperty("IN_KEY"),"INR","₹","ws://ws.is4vc.com:8001/websocket-server/"); |
| | | // TH("TH","泰国股票","41",PropertiesUtil.getProperty("TH_HTTP_API"),PropertiesUtil.getProperty("TH_KEY")), |
| | | // HG("HG","韩国股票","11",PropertiesUtil.getProperty("HG_HTTP_API"),PropertiesUtil.getProperty("HG_KEY")), |
| | | // SZHB("SZHB","数字货币","41",PropertiesUtil.getProperty("SZHB_HTTP_API"),PropertiesUtil.getProperty("SZHB_KEY")); |
| | |
| | | |
| | | private String symbol1; |
| | | |
| | | private String ws_url; |
| | | |
| | | EStockType(String code, String typeDesc, String contryId, String stockUrl, String stockKey,String symbol,String symbol1) { |
| | | EStockType(String code, String typeDesc, String contryId, String stockUrl, String stockKey,String symbol,String symbol1,String ws_url) { |
| | | this.code = code; |
| | | this.typeDesc = typeDesc; |
| | | this.contryId = contryId; |
| | |
| | | this.stockKey = stockKey; |
| | | this.symbol = symbol; |
| | | this.symbol1 = symbol1; |
| | | this.ws_url = ws_url; |
| | | } |
| | | |
| | | public static EStockType getEStockTypeByCode(String code){ |
| | |
| | | return HK; |
| | | }else if(EStockType.MAS.getCode().equals(code)){ |
| | | return MAS; |
| | | }else if(EStockType.IN.getCode().equals(code)){ |
| | | return IN; |
| | | }else{ |
| | | return MAS; |
| | | } |
| | |
| | | return typeDesc; |
| | | } |
| | | |
| | | public String getWsUrl() { |
| | | return ws_url; |
| | | } |
| | | |
| | | |
| | | |
| | | |