-
Notifications
You must be signed in to change notification settings - Fork 31
/
types.go
executable file
·30 lines (26 loc) · 1.08 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package exchange
import (
"github.com/tendermint/dex-demo/embedded"
"github.com/tendermint/dex-demo/pkg/matcheng"
"github.com/tendermint/dex-demo/types/store"
sdk "github.com/cosmos/cosmos-sdk/types"
)
type OrderCreationRequest struct {
MarketID store.EntityID `json:"market_id"`
Direction matcheng.Direction `json:"direction"`
Price sdk.Uint `json:"price"`
Quantity sdk.Uint `json:"quantity"`
Type string `json:"type"`
TimeInForce uint16 `json:"time_in_force"`
}
type OrderCreationResponse struct {
BlockInclusion embedded.BlockInclusion `json:"block_inclusion"`
ID store.EntityID `json:"id"`
MarketID store.EntityID `json:"market_id"`
Direction matcheng.Direction `json:"direction"`
Price sdk.Uint `json:"price"`
Quantity sdk.Uint `json:"quantity"`
Type string `json:"type"`
TimeInForce uint16 `json:"time_in_force"`
Status string `json:"status"`
}