forked from lmxdawn/exchange
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
2,289 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
dubbo-api/src/main/java/com/lmxdawn/dubboapi/req/ws/WsMarketDubboReq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.lmxdawn.dubboapi.req.ws; | ||
|
||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* ws 行情消息推送 | ||
*/ | ||
@Data | ||
public class WsMarketDubboReq implements Serializable { | ||
|
||
/** | ||
* 委托单变化的用户ID | ||
*/ | ||
private Long memberId; | ||
|
||
/** | ||
* 委托单变化的订单号 | ||
*/ | ||
private Long orderId; | ||
|
||
/** | ||
* 数据 | ||
*/ | ||
private String Data; | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
dubbo-api/src/main/java/com/lmxdawn/dubboapi/service/ws/WsPushDubboService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.lmxdawn.dubboapi.service.ws; | ||
|
||
import com.lmxdawn.dubboapi.req.ws.WsMarketDubboReq; | ||
|
||
/** | ||
* ws 消息推送 | ||
*/ | ||
public interface WsPushDubboService { | ||
|
||
/** | ||
* 推送行情 | ||
*/ | ||
boolean market(WsMarketDubboReq req); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
market/src/main/java/com/lmxdawn/market/constant/MqTopicConstant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.lmxdawn.market.constant; | ||
|
||
/** | ||
* 消息队列主题常量 | ||
*/ | ||
public interface MqTopicConstant { | ||
|
||
String WS_MARKET_TOPIC = "ws-market-topic"; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
market/src/main/java/com/lmxdawn/market/mq/WsMarketMq.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.lmxdawn.market.mq; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class WsMarketMq { | ||
|
||
/** | ||
* 委托单变化的用户ID | ||
*/ | ||
private Long memberId; | ||
|
||
/** | ||
* 委托单变化的订单号 | ||
*/ | ||
private Long orderId; | ||
|
||
/** | ||
* 对手委托单变化的用户ID | ||
*/ | ||
private Long matchMemberId; | ||
|
||
/** | ||
* 对手委托单变化的订单号 | ||
*/ | ||
private Long matchOrderId; | ||
|
||
/** | ||
* 数据 | ||
*/ | ||
private String Data; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.lmxdawn.market.ws; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class DataVo { | ||
|
||
private List<DepthVo> depthVoList; | ||
|
||
private MatchVo matchVo; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.lmxdawn.market.ws; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class MatchVo { | ||
|
||
// 交易币种ID | ||
private Long tradeCoinId; | ||
|
||
// 计价币种ID | ||
private Long coinId; | ||
|
||
// 价格 | ||
private Double price; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.