peter
2025-07-11 19be3926c88d19645f43dd926d00615225f30802
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package com.yami.trading.huobi.hobi;
 
 
import com.yami.trading.bean.data.domain.*;
import com.yami.trading.bean.item.domain.Item;
import com.yami.trading.huobi.data.websocket.model.market.MarketDepthEvent;
import com.yami.trading.huobi.data.websocket.model.market.MarketTradeEvent;
 
import java.util.List;
import java.util.Map;
 
public interface HobiDataService {
 
    /**
     * 实时价格。所有交易对的最新 Tickers
     *
     */
    public List<Realtime> realtime(int maximum);
    public List<Realtime> realtime(String symbols);
    public List<Realtime> realtimeXueQiu(String symbols);
    public List<Realtime> realtimeXinLang(String symbols);
    public List<Realtime> realtimeNewPrice(String symbols,List<Realtime> realtimes);
    public List<Kline> getTimeseries(String symbol,String period,int periodType);
    public List<Realtime> realtime24HoruData(String symbols,List<Realtime> realtimes);
 
 
    /**
     * 1day       历史数据  : 周期 1年
     * 1week,1mon 历史数据  : 周期 5年
     * 请求 350次
     */
    public Map<String, List<Kline>> getDailyWeekMonthHistory(String symbol);
    /**
     * 获取分钟数据
     */
    public Map<String, List<Kline>> getHourlyAndMinuteHistory(String symbol);
    /**
     * Hourly
     * 4hourly 3月
     */
    public List<Kline> getTimeseriesForFourHourly(String currency);
    
    /**
     * Hourly
     * 1hourly 1月
     */
    public List<Kline> getTimeseriesForOneHourly(String currency);
    /**
     * Hourly
     * 1hourly 2个小时
     */
    public List<Kline> getTimeseriesForTwoHourly(String currency);
    /**
     * Minute
     * 30minute 10天
     * 15minute 5天
     * 5minute  2天
     * 1minute  1天
     */
    public List<Kline> getTimeseriesOneMinute(String currency);
    
    /**
     * Minute
     * 30minute 10天
     * 15minute 5天
     * 5minute  2天
     * 1minute  1天
     */
    public List<Kline> getTimeseriesFiveMinute(String currency);
    
    /**
     * Minute
     * 30minute 10天
     * 15minute 5天
     * 5minute  2天
     * 1minute  1天
     */
    public List<Kline> getTimeseriesFifteenMinute(String currency);
    
    /**
     * Minute
     * 30minute 10天
     * 15minute 5天
     * 5minute  2天
     * 1minute  1天
     */
    public List<Kline> getTimeseriesThirtyMinute(String currency);
    /**
     * K线
     *
     * @param period 1day, 1mon, 1week, 1year
     *
     */
    public List<Kline> kline(String symbol, String period, Integer num, int maximum);
 
    /**
     * 市场深度数据(20档)
     */
 
    public Depth depth(String symbol, int maximum);
 
    /**
     * 市场深度数据(20档),包装,数据本地化处理
     */
    public Depth depthDecorator(String symbol, int maximum);
 
    /**
     * 市场深度数据(20档),包装,数据本地化处理
     */
    public Depth depthDecorator(MarketDepthEvent event, Item item);
 
    /**
     * 获得近期交易记录
     */
    public Trade trade(String symbol, int maximum);
 
    /**
     * 获得近期交易记录,包装,数据本地化处理
     */
    public Trade tradeDecorator(String symbol, int maximum);
 
    /**
     * 获得近期交易记录,包装,数据本地化处理
     */
    public Trade tradeDecorator(MarketTradeEvent event, Item item);
 
    public List<Symbols> symbols();
 
}