CodeChain-io / CodeChain-io/codechain-exchange

DB models

オープン
#4 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。