public class OKCoinXChangeApplication extends OKCoinApplication
Application
implementation using XChange DTOs as callback parameters.Constructor and Description |
---|
OKCoinXChangeApplication(String apiKey,
String secretKey) |
Modifier and Type | Method and Description |
---|---|
void |
onAccountInfo(org.knowm.xchange.dto.account.AccountInfo accountInfo,
quickfix.SessionID sessionId) |
void |
onMessage(AccountInfoResponse message,
quickfix.SessionID sessionId) |
void |
onMessage(quickfix.fix44.MarketDataIncrementalRefresh message,
quickfix.SessionID sessionId) |
void |
onMessage(quickfix.fix44.MarketDataSnapshotFullRefresh message,
quickfix.SessionID sessionId) |
void |
onOrderBook(Date origTime,
List<org.knowm.xchange.dto.trade.LimitOrder> asks,
List<org.knowm.xchange.dto.trade.LimitOrder> bids,
quickfix.SessionID sessionId)
Invoked when the order book updated.
|
void |
onOrderBook(org.knowm.xchange.dto.marketdata.OrderBook orderBook,
quickfix.SessionID sessionId)
Invoked when the order book updated.
|
void |
onTicker(org.knowm.xchange.dto.marketdata.Ticker ticker) |
void |
onTrades(List<org.knowm.xchange.dto.marketdata.Trade> trade,
quickfix.SessionID sessionId) |
void |
subscribeOrderBook(org.knowm.xchange.currency.CurrencyPair currencyPair,
quickfix.SessionID sessionId) |
void |
subscribeOrderBook(String symbol,
quickfix.SessionID sessionId)
Subscribes the order book of the specified symbol.
|
void |
unsubscribeOrderBook(org.knowm.xchange.currency.CurrencyPair currencyPair,
quickfix.SessionID sessionId) |
void |
unsubscribeOrderBook(String symbol,
quickfix.SessionID sessionId)
Unsubscribes the order book of the specified symbol.
|
cancelOrder, crack, fromAdmin, fromApp, getDataDictionary, onCreate, onLogon, onLogout, onMessage, onMessage, placeOrder, request24HTicker, requestAccountInfo, requestLiveTrades, requestMarketData, requestOrderBook, requestOrderMassStatus, requestOrdersInfoAfterSomeID, requestTradeCaptureReportRequest, sendMessage, toAdmin, toApp
crack44, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage, onMessage
public void subscribeOrderBook(String symbol, quickfix.SessionID sessionId)
onOrderBook(Date, List, List, SessionID)
and onOrderBook(OrderBook, SessionID)
will be invoked.symbol
- the symbol, such as "BTC/CNY", "LTC/CNY".sessionId
- the FIX session ID.public void subscribeOrderBook(org.knowm.xchange.currency.CurrencyPair currencyPair, quickfix.SessionID sessionId)
public void unsubscribeOrderBook(String symbol, quickfix.SessionID sessionId)
symbol
- the symbol, such as "BTC/CNY", "LTC/CNY".sessionId
- the FIX session ID.public void unsubscribeOrderBook(org.knowm.xchange.currency.CurrencyPair currencyPair, quickfix.SessionID sessionId)
public void onMessage(quickfix.fix44.MarketDataSnapshotFullRefresh message, quickfix.SessionID sessionId) throws quickfix.FieldNotFound, quickfix.UnsupportedMessageType, quickfix.IncorrectTagValue
onMessage
in class quickfix.fix44.MessageCracker
quickfix.FieldNotFound
quickfix.UnsupportedMessageType
quickfix.IncorrectTagValue
public void onMessage(quickfix.fix44.MarketDataIncrementalRefresh message, quickfix.SessionID sessionId) throws quickfix.FieldNotFound, quickfix.UnsupportedMessageType, quickfix.IncorrectTagValue
onMessage
in class quickfix.fix44.MessageCracker
quickfix.FieldNotFound
quickfix.UnsupportedMessageType
quickfix.IncorrectTagValue
public void onMessage(AccountInfoResponse message, quickfix.SessionID sessionId) throws quickfix.FieldNotFound, quickfix.UnsupportedMessageType, quickfix.IncorrectTagValue
onMessage
in class OKCoinApplication
quickfix.FieldNotFound
quickfix.UnsupportedMessageType
quickfix.IncorrectTagValue
public void onOrderBook(Date origTime, List<org.knowm.xchange.dto.trade.LimitOrder> asks, List<org.knowm.xchange.dto.trade.LimitOrder> bids, quickfix.SessionID sessionId)
origTime
- time of message origination.asks
- ask orders.bids
- bid orders.sessionId
- the FIX session ID.public void onOrderBook(org.knowm.xchange.dto.marketdata.OrderBook orderBook, quickfix.SessionID sessionId)
orderBook
- the full order book.sessionId
- the FIX session ID.public void onTrades(List<org.knowm.xchange.dto.marketdata.Trade> trade, quickfix.SessionID sessionId)
public void onTicker(org.knowm.xchange.dto.marketdata.Ticker ticker)
public void onAccountInfo(org.knowm.xchange.dto.account.AccountInfo accountInfo, quickfix.SessionID sessionId)
Copyright © 2013–2017. All rights reserved.