public class MarketDepthTopDiffPayload extends AbstractPayload implements DepthDiff
MarketDepthTopDiff
.Constructor and Description |
---|
MarketDepthTopDiffPayload(String symbolId,
long version,
long versionOld,
Update bidInsert,
int[] bidDelete,
Update bidUpdate,
Update askInsert,
int[] askDelete,
Update askUpdate)
差量行情深度
|
Modifier and Type | Method and Description |
---|---|
int[] |
getAskDelete() |
Update |
getAskInsert() |
Update |
getAskUpdate() |
int[] |
getBidDelete() |
Update |
getBidInsert() |
Update |
getBidUpdate() |
String |
getSymbolId() |
long |
getVersion() |
long |
getVersionOld() |
toString
public MarketDepthTopDiffPayload(String symbolId, long version, long versionOld, Update bidInsert, int[] bidDelete, Update bidUpdate, Update askInsert, int[] askDelete, Update askUpdate)
symbolId
- 交易代码version
- 快照版本,方便进行差量更新,如果终端的最后快照版本不一致,则需要重新获取最新完整行情深度。versionOld
- 产生该差量的旧快照版本,方便进行差量更新,如果终端的最后快照版本不一致,则需要重新获取最新完整行情深度。bidInsert
- 委托买单需要添加的行bidDelete
- 委托买单需要删除的行bidUpdate
- 委托买单需要修改的行,以及该行新的委单量。askInsert
- 委托卖单需要添加的行askDelete
- 委托卖单需要删除的行askUpdate
- 委托卖单需要修改的行,以及该行新的委单量。public String getSymbolId()
public long getVersion()
getVersion
in interface DepthDiff
public long getVersionOld()
getVersionOld
in interface DepthDiff
public Update getBidInsert()
getBidInsert
in interface DepthDiff
public int[] getBidDelete()
getBidDelete
in interface DepthDiff
public Update getBidUpdate()
getBidUpdate
in interface DepthDiff
public Update getAskInsert()
getAskInsert
in interface DepthDiff
public int[] getAskDelete()
getAskDelete
in interface DepthDiff
public Update getAskUpdate()
getAskUpdate
in interface DepthDiff
Copyright © 2014–2015. All rights reserved.