Commit 9ddb8df2 authored by vipwzw's avatar vipwzw

del rpctrade.go

parent f1f8836f
// Copyright Fuzamei Corp. 2018 All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package types
import (
"encoding/json"
)
// RPCReplyTradeOrder : trade order
type RPCReplyTradeOrder struct {
TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol" json:"tokenSymbol"`
Owner string `protobuf:"bytes,2,opt,name=owner" json:"owner"`
AmountPerBoardlot int64 `protobuf:"varint,3,opt,name=amountPerBoardlot" json:"amountPerBoardlot"`
MinBoardlot int64 `protobuf:"varint,4,opt,name=minBoardlot" json:"minBoardlot"`
PricePerBoardlot int64 `protobuf:"varint,5,opt,name=pricePerBoardlot" json:"pricePerBoardlot"`
TotalBoardlot int64 `protobuf:"varint,6,opt,name=totalBoardlot" json:"totalBoardlot"`
TradedBoardlot int64 `protobuf:"varint,7,opt,name=tradedBoardlot" json:"tradedBoardlot"`
BuyID string `protobuf:"bytes,8,opt,name=buyID" json:"buyID"`
Status int32 `protobuf:"varint,9,opt,name=status" json:"status"`
SellID string `protobuf:"bytes,10,opt,name=sellID" json:"sellID"`
TxHash string `protobuf:"bytes,11,opt,name=txHash" json:"txHash"`
Height int64 `protobuf:"varint,12,opt,name=height" json:"height"`
Key string `protobuf:"bytes,13,opt,name=key" json:"key"`
BlockTime int64 `protobuf:"varint,14,opt,name=blockTime" json:"blockTime"`
IsSellOrder bool `protobuf:"varint,15,opt,name=isSellOrder" json:"isSellOrder"`
AssetExec string `protobuf:"bytes,16,opt,name=assetExec" json:"assetExec"`
}
//MarshalJSON :
func (reply *ReplyTradeOrder) MarshalJSON() ([]byte, error) {
r := (*RPCReplyTradeOrder)(reply)
return json.Marshal(r)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment