-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOpenfeedClientHandler.java
More file actions
31 lines (26 loc) · 1.3 KB
/
OpenfeedClientHandler.java
File metadata and controls
31 lines (26 loc) · 1.3 KB
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
package org.openfeed.client.api;
import io.netty.channel.ChannelPromise;
import org.openfeed.*;
import org.openfeed.client.api.impl.ConnectionStats;
public interface OpenfeedClientHandler {
// Request Responses
void onLoginResponse(LoginResponse loginResponse);
void onLogoutResponse(LogoutResponse logoutResponse);
void onInstrumentResponse(InstrumentResponse instrumentResponse);
void onInstrumentReferenceResponse(InstrumentReferenceResponse instrumentReferenceResponse);
// Promise to trigger end of instrument and/or instrument reference downloads
void setInstrumentPromise(ChannelPromise promise);
void onExchangeResponse(ExchangeResponse exchangeResponse);
void onSubscriptionResponse(SubscriptionResponse subscriptionResponse);
// Streaming
void onMarketStatus(MarketStatus marketStatus);
void onHeartBeat(HeartBeat hb);
void onInstrumentDefinition(InstrumentDefinition definition);
void onMarketSnapshot(MarketSnapshot snapshot);
void onMarketUpdate(MarketUpdate update);
void onVolumeAtPrice(VolumeAtPrice cumulativeVolume);
void onOhlc(Ohlc ohlc);
void onInstrumentAction(InstrumentAction instrumentAction);
void onListSubscriptionsResponse(ListSubscriptionsResponse listSubscriptionsResponse);
ConnectionStats getConnectionStats();
}