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
*MarginApi* | [**get_cross_margin_currency**](docs/MarginApi.md#get_cross_margin_currency) | **GET** /margin/cross/currencies/{currency} | Retrieve detail of one single currency supported by cross margin
Copy file name to clipboardExpand all lines: docs/BatchOrder.md
+5-2
Original file line number
Diff line number
Diff line change
@@ -11,16 +11,19 @@ Name | Type | Description | Notes
11
11
**id** | **str** | Order ID | [optional][readonly]
12
12
**create_time** | **str** | Order creation time | [optional][readonly]
13
13
**update_time** | **str** | Order last modification time | [optional][readonly]
14
+
**create_time_ms** | **int** | Order creation time in milliseconds | [optional][readonly]
15
+
**update_time_ms** | **int** | Order last modification time in milliseconds | [optional][readonly]
14
16
**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']
17
-
**account** | **str** | Account type. spot - use spot account; margin - use margin account | [optional][default to 'spot']
19
+
**account** | **str** | Account type. spot - use spot account; margin - use margin account; cross_margin - use cross margin account | [optional][default to 'spot']
18
20
**side** | **str** | Order side | [optional]
19
21
**amount** | **str** | Trade amount | [optional]
20
22
**price** | **str** | Order price | [optional]
21
23
**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']
22
24
**iceberg** | **str** | Amount to display for the iceberg order. Null or 0 for normal orders. Set to -1 to hide the amount totally | [optional]
23
-
**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]
25
+
**auto_borrow** | **bool** | Used in margin or cross margin trading to allow automatic loan of insufficient amount if balance is not enough. | [optional]
26
+
**auto_repay** | **bool** | Enable or disable automatic repayment for automatic borrow loan generated by cross margin order. Default is disabled. Note that: 1. This field is only effective for cross margin orders. Margin account does not support setting auto repayment for orders. 2. `auto_borrow` and `auto_repay` cannot be both set to true in one order. | [optional]
24
27
**left** | **str** | Amount left to fill | [optional][readonly]
25
28
**fill_price** | **str** | Total filled in quote currency. Deprecated in favor of `filled_total` | [optional][readonly]
26
29
**filled_total** | **str** | Total filled in quote currency | [optional][readonly]
**currency_pair** | **str** | Order currency pair |
8
8
**id** | **str** | Order ID or user custom ID. Custom ID are accepted only within 30 minutes after order creation |
9
+
**account** | **str** | If cancelled order is cross margin order, this field must be set and can only be `cross_margin` | [optional]
9
10
10
11
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**label** | **str** | Error label when failed to cancel the order; emtpy if succeeded | [optional]
11
11
**message** | **str** | Error message when failed to cancel the order; empty if succeeded | [optional]
12
+
**account** | **str** | Empty by default. If cancelled order is cross margin order, this field is set to `cross_margin` | [optional]
12
13
13
14
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**total** | **str** | Total account value in USDT, i.e., the sum of all currencies'`(available+freeze)*price*discount` | [optional]
10
+
**borrowed** | **str** | Total borrowed value in USDT, i.e., the sum of all currencies'`borrowed*price*discount` | [optional]
11
+
**interest** | **str** | Total unpaid interests in USDT, i.e., the sum of all currencies'`interest*price*discount` | [optional]
12
+
**risk** | **str** | Risk rate. When it belows 110%, liquidation will be triggered. Calculation formula: `total / (borrowed+interest)` | [optional]
13
+
14
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**discount** | **str** | Currency value discount, which is used in total value calculation | [optional]
10
+
**min_borrow_amount** | **str** | Minimum currency borrow amount. Unit is currency itself | [optional]
11
+
**user_max_borrow_amount** | **str** | Maximum borrow value allowed per user, in USDT | [optional]
12
+
**total_max_borrow_amount** | **str** | Maximum borrow value allowed for this currency, in USDT | [optional]
13
+
**price** | **str** | Price change between this currency and USDT | [optional]
14
+
15
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**unpaid_interest** | **str** | Interest not repaid | [optional][readonly]
16
+
17
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: docs/FuturesApi.md
+8-4
Original file line number
Diff line number
Diff line change
@@ -1031,7 +1031,7 @@ Name | Type | Description | Notes
1031
1031
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
1032
1032
1033
1033
# **update_position_leverage**
1034
-
> Position update_position_leverage(settle, contract, leverage)
1034
+
> Position update_position_leverage(settle, contract, leverage, cross_leverage_limit=cross_leverage_limit)
print("Gate api exception, label: %s, message: %s\n"% (ex.label, ex.message))
@@ -1080,6 +1081,7 @@ Name | Type | Description | Notes
1080
1081
**settle** | **str**| Settle currency |
1081
1082
**contract** | **str**| Futures contract |
1082
1083
**leverage** | **str**| New position leverage |
1084
+
**cross_leverage_limit** | **str**| Cross margin leverage(valid only when `leverage` is 0) | [optional]
1083
1085
1084
1086
### Return type
1085
1087
@@ -1313,7 +1315,7 @@ Name | Type | Description | Notes
1313
1315
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Copy file name to clipboardExpand all lines: docs/FuturesOrder.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
**user** | **int** | User ID | [optional][readonly]
9
9
**create_time** | **float** | Order creation time | [optional][readonly]
10
10
**finish_time** | **float** | Order finished time. Not returned if order is open | [optional][readonly]
11
-
**finish_as** | **str** | How the order is finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` set | [optional][readonly]
11
+
**finish_as** | **str** | How the order is finished. - filled: all filled - cancelled: manually cancelled - liquidated: cancelled because of liquidation - ioc: time in force is `IOC`, finish immediately - auto_deleveraged: finished by ADL - reduce_only: cancelled because of increasing position while `reduce-only` set- position_closed: cancelled because of position close | [optional][readonly]
12
12
**status** | **str** | Order status - `open`: waiting to be traded - `finished`: finished | [optional][readonly]
13
13
**contract** | **str** | Futures contract |
14
14
**size** | **int** | Order size. Specify positive number to make a bid, and negative number to ask |
[[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