CodeChain-io / CodeChain-io/codechain-exchange

DB models

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
db
主要语言
TypeScript
星标
17
派生
4
PR 合并指标
30 天内没有已合并 PR

描述

A back-end of the DEX should be able to relay orders and keep them until the taker who wants to fill or partially fill the order appears. We need a model for orders which will be referred to an order book.
```
Order
makerAsset: String,
takerAsset: String,
amount: Bigint,
rate: Double,
makerAddress: String,
assetList: JSON
order: JSON
marketId: number
```
Except for the transaction field, other fields are only for querying transaction. These are also in the transaction.
Also, a model for the history of completed transactions is needed for future reference.
```
Deal
maker: String,
taker: String,
makerAsset: String,
takerAsset: String,
makerAmount: Integer,
takerAmount: Integer,
```

__DB have to be changed according to changed matching scheme__

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。