-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathmodel_batch_amend_order_req.go
More file actions
24 lines (22 loc) · 1.28 KB
/
model_batch_amend_order_req.go
File metadata and controls
24 lines (22 loc) · 1.28 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
/*
* 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
// Modify contract order parameters
type BatchAmendOrderReq struct {
// Order id, order_id and text must contain at least one
OrderId int64 `json:"order_id,omitempty"`
// User-defined order text, at least one of order_id and text must be passed
Text string `json:"text,omitempty"`
// New order size, including filled size. - If less than or equal to the filled quantity, the order will be cancelled. - The new order side must be identical to the original one. - Close order size cannot be modified. - For reduce-only orders, increasing the size may cancel other reduce-only orders. - If the price is not modified, decreasing the size will not affect the depth queue, while increasing the size will place it at the end of the current price level.
Size int64 `json:"size,omitempty"`
// New order price
Price string `json:"price,omitempty"`
// Custom info during order amendment
AmendText string `json:"amend_text,omitempty"`
}