public class OKCoinApplication
extends quickfix.fix44.MessageCracker
implements quickfix.Application
Application
implementation.Constructor and Description |
---|
OKCoinApplication(String apiKey,
String secretKey) |
Modifier and Type | Method and Description |
---|---|
void |
cancelOrder(String clOrdId,
String origClOrdId,
char side,
String symbol,
quickfix.SessionID sessionId) |
void |
crack(quickfix.Message message,
quickfix.SessionID sessionId) |
void |
fromAdmin(quickfix.Message message,
quickfix.SessionID sessionId) |
void |
fromApp(quickfix.Message message,
quickfix.SessionID sessionId) |
quickfix.DataDictionary |
getDataDictionary() |
void |
onCreate(quickfix.SessionID sessionId) |
void |
onLogon(quickfix.SessionID sessionId) |
void |
onLogout(quickfix.SessionID sessionId) |
void |
onMessage(AccountInfoResponse message,
quickfix.SessionID sessionId) |
void |
onMessage(ExceptionResponseMessage message,
quickfix.SessionID sessionId) |
void |
onMessage(quickfix.fix44.ExecutionReport message,
quickfix.SessionID sessionId) |
void |
placeOrder(String clOrdId,
char side,
char ordType,
BigDecimal orderQty,
BigDecimal price,
String symbol,
quickfix.SessionID sessionId) |
void |
request24HTicker(String mdReqId,
String symbol,
quickfix.SessionID sessionId) |
void |
requestAccountInfo(String accReqId,
quickfix.SessionID sessionId) |
void |
requestLiveTrades(String mdReqId,
String symbol,
quickfix.SessionID sessionId) |
void |
requestMarketData(String mdReqId,
String symbol,
char subscriptionRequestType,
int marketDepth,
int mdUpdateType,
char[] mdEntryTypes,
quickfix.SessionID sessionId) |
void |
requestOrderBook(String mdReqId,
String symbol,
char subscriptionRequestType,
int marketDepth,
int mdUpdateType,
quickfix.SessionID sessionId) |
void |
requestOrderMassStatus(String massStatusReqId,
int massStatusReqType,
quickfix.SessionID sessionId)
Request order status.
|
void |
requestOrdersInfoAfterSomeID(String tradeRequestId,
String symbol,
long orderId,
char ordStatus,
quickfix.SessionID sessionId)
Request history order information which order ID is after the specified
orderId . |
void |
requestTradeCaptureReportRequest(String tradeRequestId,
String symbol,
quickfix.SessionID sessionId) |
void |
sendMessage(quickfix.Message message,
quickfix.SessionID sessionId) |
void |
toAdmin(quickfix.Message message,
quickfix.SessionID sessionId) |
void |
toApp(quickfix.Message message,
quickfix.SessionID sessionId) |
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, onMessage, onMessage
public quickfix.DataDictionary getDataDictionary()
public void onCreate(quickfix.SessionID sessionId)
onCreate
in interface quickfix.Application
public void onLogon(quickfix.SessionID sessionId)
onLogon
in interface quickfix.Application
public void onLogout(quickfix.SessionID sessionId)
onLogout
in interface quickfix.Application
public void toAdmin(quickfix.Message message, quickfix.SessionID sessionId)
toAdmin
in interface quickfix.Application
public void fromAdmin(quickfix.Message message, quickfix.SessionID sessionId) throws quickfix.FieldNotFound, quickfix.IncorrectDataFormat, quickfix.IncorrectTagValue, quickfix.RejectLogon
fromAdmin
in interface quickfix.Application
quickfix.FieldNotFound
quickfix.IncorrectDataFormat
quickfix.IncorrectTagValue
quickfix.RejectLogon
public void toApp(quickfix.Message message, quickfix.SessionID sessionId) throws quickfix.DoNotSend
toApp
in interface quickfix.Application
quickfix.DoNotSend
public void fromApp(quickfix.Message message, quickfix.SessionID sessionId) throws quickfix.FieldNotFound, quickfix.IncorrectDataFormat, quickfix.IncorrectTagValue, quickfix.UnsupportedMessageType
fromApp
in interface quickfix.Application
quickfix.FieldNotFound
quickfix.IncorrectDataFormat
quickfix.IncorrectTagValue
quickfix.UnsupportedMessageType
public void crack(quickfix.Message message, quickfix.SessionID sessionId) throws quickfix.UnsupportedMessageType, quickfix.FieldNotFound, quickfix.IncorrectTagValue
crack
in class quickfix.fix44.MessageCracker
quickfix.UnsupportedMessageType
quickfix.FieldNotFound
quickfix.IncorrectTagValue
public void onMessage(quickfix.fix44.ExecutionReport 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
quickfix.FieldNotFound
quickfix.UnsupportedMessageType
quickfix.IncorrectTagValue
public void onMessage(ExceptionResponseMessage message, quickfix.SessionID sessionId) throws quickfix.FieldNotFound, quickfix.UnsupportedMessageType, quickfix.IncorrectTagValue
quickfix.FieldNotFound
quickfix.UnsupportedMessageType
quickfix.IncorrectTagValue
public void sendMessage(quickfix.Message message, quickfix.SessionID sessionId)
public void requestMarketData(String mdReqId, String symbol, char subscriptionRequestType, int marketDepth, int mdUpdateType, char[] mdEntryTypes, quickfix.SessionID sessionId)
public void requestOrderBook(String mdReqId, String symbol, char subscriptionRequestType, int marketDepth, int mdUpdateType, quickfix.SessionID sessionId)
mdReqId
- Unique ID assigned to this request.symbol
- Symbol, BTC/CNY or LTC/CNY.subscriptionRequestType
- 0 = Snapshot, 1 = Snapshot + Subscribe,
2 = Unsubscribe.marketDepth
- Applicable only to order book snapshot requests.
Should be ignored otherwise.
0 = Full BookmdUpdateType
- 0 = Full Refresh, 1 = Incremental Refresh.sessionId
- FIX session ID.public void requestLiveTrades(String mdReqId, String symbol, quickfix.SessionID sessionId)
public void request24HTicker(String mdReqId, String symbol, quickfix.SessionID sessionId)
public void placeOrder(String clOrdId, char side, char ordType, BigDecimal orderQty, BigDecimal price, String symbol, quickfix.SessionID sessionId)
public void cancelOrder(String clOrdId, String origClOrdId, char side, String symbol, quickfix.SessionID sessionId)
public void requestOrderMassStatus(String massStatusReqId, int massStatusReqType, quickfix.SessionID sessionId)
massStatusReqId
- Client-assigned unique ID of this request.(or ORDERID)massStatusReqType
- Specifies the scope of the mass status request.
1 = status of a specified order(Tag584 is ORDERID)
7 = Status for all orderssessionId
- the FIX session ID.public void requestTradeCaptureReportRequest(String tradeRequestId, String symbol, quickfix.SessionID sessionId)
public void requestAccountInfo(String accReqId, quickfix.SessionID sessionId)
public void requestOrdersInfoAfterSomeID(String tradeRequestId, String symbol, long orderId, char ordStatus, quickfix.SessionID sessionId)
orderId
.tradeRequestId
- Client-assigned unique ID of this request.symbol
- Symbol. BTC/CNY or LTC/CNY.orderId
- Order ID. Return 10 records after this id.ordStatus
- Order status. 0 = Not filled 1 = Fully filled.sessionId
- the FIX session ID.Copyright © 2013–2017. All rights reserved.