| | |
| | | private ItemService itemService; |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | XinLangDataServiceImpl service = new XinLangDataServiceImpl(); |
| | | List<Realtime> usdsgd = service.realtimeSingle("USDSGD"); |
| | | for (Realtime re : usdsgd) { |
| | | System.out.println(JSONObject.toJSONString(re)); |
| | | } |
| | | // List<Kline> sz300750 = service.buildOneYearPeriod("AAPL"); |
| | | // System.out.println(sz300750.size()); |
| | | // List<Kline> eurusd = service.getTimeseriesByPeriodOneDay("EURUSD"); |
| | | // System.out.println(JSONObject.toJSONString(eurusd)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | return list; |
| | | } |
| | | |
| | | public List<Realtime> realtime(String symbols) { |
| | | List<Realtime> realtimeList = realtimeSingle(symbols); |
| | | return realtimeList; |
| | | } |
| | | // public List<Realtime> realtime(String symbols) { |
| | | // List<Realtime> realtimeList = realtimeSingle(symbols); |
| | | // return realtimeList; |
| | | // } |
| | | |
| | | /** |
| | | * 1day 历史数据 : 周期 1年 |