-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodel_delivery_position_close.go
More file actions
39 lines (37 loc) · 1.54 KB
/
model_delivery_position_close.go
File metadata and controls
39 lines (37 loc) · 1.54 KB
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
36
37
38
39
/*
* Gate API
*
* Welcome to Gate API APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading.
*
* Contact: support@mail.gate.com
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package gateapi
type DeliveryPositionClose struct {
// Position close time
Time float64 `json:"time,omitempty"`
// Futures contract
Contract string `json:"contract,omitempty"`
// Position side - `long`: Long position - `short`: Short position
Side string `json:"side,omitempty"`
// PnL
Pnl string `json:"pnl,omitempty"`
// PNL - Position P/L
PnlPnl string `json:"pnl_pnl,omitempty"`
// PNL - Funding Fees
PnlFund string `json:"pnl_fund,omitempty"`
// PNL - Transaction Fees
PnlFee string `json:"pnl_fee,omitempty"`
// Source of close order. See `order.text` field for specific values
Text string `json:"text,omitempty"`
// Max Trade Size
MaxSize int64 `json:"max_size,omitempty"`
// Cumulative closed position volume
AccumSize int64 `json:"accum_size,omitempty"`
// First Open Time
FirstOpenTime int64 `json:"first_open_time,omitempty"`
// When side is 'long', it indicates the opening average price; when side is 'short', it indicates the closing average price
LongPrice string `json:"long_price,omitempty"`
// When side is 'long', it indicates the closing average price; when side is 'short', it indicates the opening average price
ShortPrice string `json:"short_price,omitempty"`
}