You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information, please visit [https://www.gate.io/page/contacts](https://www.gate.io/page/contacts)
10
10
11
-
## Specific note for 4.8.0
12
-
13
-
**BREAKING** change:
14
-
15
-
4.8.0 add new support with different settle currency for futures API(BTC is the only one allowed before), which makes ALL methods in FuturesApi REQUIRE an additional `settle` parameter.
16
-
17
-
But previous `/futures/xxx` APIs are still preserved for compatibility usage(will be treated as BTC), so if one of the following condition is met:
18
-
19
-
- Changing all your futures method call to include `settle` is not a big issue for you
20
-
- You need to use futures settled in non-BTC currency
21
-
22
-
then you'd better move to 4.8.0 and changes all your futures method call to pass in `settle` parameter. Otherwise, you can stick to version<=4.7.3,
23
-
but will not receive any future API upgrade support
24
-
25
11
## Requirements.
26
12
27
13
Python 2.7 and 3.4+
28
14
29
15
## Installation & Usage
30
16
### pip install
31
17
32
-
If the python package is hosted on Github, you can install directly from Github
18
+
If the python package is hosted on a repository, you can install directly using:
**text** | **str** | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 16 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
7
+
**text** | **str** | User defined information. If not empty, must follow the rules below: 1. prefixed with `t-` 2. no longer than 28 bytes without `t-` prefix 3. can only include 0-9, A-Z, a-z, underscore(_), hyphen(-) or dot(.) | [optional]
7
8
**succeeded** | **bool** | Whether order succeeds | [optional]
8
9
**label** | **str** | Error label, empty string if order succeeds | [optional]
9
10
**message** | **str** | Detailed error message, empty string if order succeeds | [optional]
10
-
**id** | **str** | Order ID | [optional]
11
-
**create_time** | **str** | Order creation time | [optional]
12
-
**update_time** | **str** | Order last modification time | [optional]
13
-
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional]
11
+
**id** | **str** | Order ID | [optional][readonly]
12
+
**create_time** | **str** | Order creation time | [optional][readonly]
13
+
**update_time** | **str** | Order last modification time | [optional][readonly]
14
+
**status** | **str** | Order status - `open`: to be filled - `closed`: filled - `cancelled`: cancelled | [optional][readonly]
**type** | **str** | Order type. limit - limit order | [optional][default to 'limit']
16
17
**account** | **str** | Account type. spot - use spot account; margin - use margin account | [optional][default to 'spot']
@@ -19,16 +20,16 @@ Name | Type | Description | Notes
19
20
**price** | **str** | Order price | [optional]
20
21
**time_in_force** | **str** | Time in force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only - poc: PendingOrCancelled, makes a post-only order that always enjoys a maker fee | [optional][default to 'gtc']
21
22
**auto_borrow** | **bool** | Used in margin trading(i.e. `account` is `margin`) to allow automatic loan of insufficient part if balance is not enough. | [optional]
22
-
**left** | **str** | Amount left to fill | [optional]
23
-
**fill_price** | **str** | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional]
24
-
**filled_total** | **str** | Total filled in quote currency | [optional]
25
-
**fee** | **str** | Fee deducted | [optional]
26
-
**fee_currency** | **str** | Fee currency unit | [optional]
27
-
**point_fee** | **str** | Point used to deduct fee | [optional]
28
-
**gt_fee** | **str** | GT used to deduct fee | [optional]
29
-
**gt_discount** | **bool** | Whether GT fee discount is used | [optional]
**rebated_fee_currency** | **str** | Rebated fee currency unit | [optional][readonly]
32
33
33
34
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments