public class ITCHClient extends ITCHSession
Constructor and Description |
---|
ITCHClient(SocketChannel channel,
int rxBufferCapacity,
ITCHClientListener listener)
Create a client.
|
Modifier and Type | Method and Description |
---|---|
void |
login(ITCH.LoginRequest packet)
Send a Login Request packet (1.3.1).
|
void |
logout()
Send a Logout Request packet (1.3.2).
|
void |
request(ITCH.MarketDataSubscribeRequest packet)
Send a Market Data Subscribe Request packet (1.3.7).
|
void |
request(ITCH.MarketDataUnsubscribeRequest packet)
Send a Market Data Unsubscribe Request packet (1.3.8).
|
void |
request(ITCH.MarketSnapshotRequest packet)
Send a Market Snapshot Request packet (1.3.4).
|
void |
request(ITCH.TickerSubscribeRequest packet)
Send a Ticker Subscribe Request packet (1.3.5).
|
void |
request(ITCH.TickerUnsubscribeRequest packet)
Send a Ticker Unsubscribe Request packet (1.3.6).
|
void |
requestInstrumentDirectory()
Send an Instrument Directory Request packet (1.3.9).
|
close, getChannel, keepAlive, receive
public ITCHClient(SocketChannel channel, int rxBufferCapacity, ITCHClientListener listener)
channel
- the underlying socket channelrxBufferCapacity
- the receive buffer capacitylistener
- the inbound packet listenerpublic void login(ITCH.LoginRequest packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void logout() throws IOException
IOException
- if an I/O error occurspublic void request(ITCH.MarketSnapshotRequest packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void request(ITCH.TickerSubscribeRequest packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void request(ITCH.TickerUnsubscribeRequest packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void request(ITCH.MarketDataSubscribeRequest packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void request(ITCH.MarketDataUnsubscribeRequest packet) throws IOException
packet
- the packetIOException
- if an I/O error occurspublic void requestInstrumentDirectory() throws IOException
IOException
- if an I/O error occursCopyright © 2019. All rights reserved.