forked from gateio/gateapi-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_trade.go
35 lines (33 loc) · 1.1 KB
/
model_trade.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
31
32
33
34
35
/*
* Gate API v4
*
* APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
*
* Contact: support@mail.gate.io
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
type Trade struct {
// Trade ID
Id string `json:"id,omitempty"`
// Trading time
CreateTime string `json:"create_time,omitempty"`
// Order side
Side string `json:"side,omitempty"`
// Trade role
Role string `json:"role,omitempty"`
// Trade amount
Amount string `json:"amount,omitempty"`
// Order price
Price string `json:"price,omitempty"`
// Related order ID. No value in public endpoints
OrderId string `json:"order_id,omitempty"`
// Fee deducted. No value in public endpoints
Fee string `json:"fee,omitempty"`
// Fee currency unit. No value in public endpoints
FeeCurrency string `json:"fee_currency,omitempty"`
// Point used to deduct fee
PointFee string `json:"point_fee,omitempty"`
// GT used to deduct fee
GtFee string `json:"gt_fee,omitempty"`
}