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
**fixed_rate** | **str** | Fixed fee rate. Only for fixed rate currencies, not valid for normal currencies | [optional]
13
+
**chain** | **str** | Chain of currency | [optional]
13
14
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)
Copy file name to clipboardExpand all lines: docs/CurrencyChain.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
**name_cn** | **str** | Chain name in Chinese | [optional]
8
8
**name_en** | **str** | Chain name in English | [optional]
9
9
**is_disabled** | **int** | If it is disabled. 0 means NOT being disabled | [optional]
10
+
**is_deposit_disabled** | **int** | Is deposit disabled. 0 means not | [optional]
11
+
**is_withdraw_disabled** | **int** | Is withdrawal disabled. 0 means not | [optional]
10
12
11
13
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
_from =1546905600# int | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
316
316
to =1546935600# int | End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time (optional)
317
317
limit =100# int | Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. (optional) (default to 100)
318
-
interval ='5m'# str | Interval time between data points (optional) (default to '5m')
318
+
interval ='5m'# str | Interval time between data points. Note that `1w` means natual week(Mon-Sun), while `7d` means every 7d since unix 0 (optional) (default to '5m')
319
319
320
320
try:
321
321
# Get futures candlesticks
@@ -336,7 +336,7 @@ Name | Type | Description | Notes
336
336
**_from** | **int**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional]
337
337
**to** | **int**| End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time | [optional]
338
338
**limit** | **int**| Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. | [optional][default to 100]
339
-
**interval** | **str**| Interval time between data points | [optional][default to '5m']
339
+
**interval** | **str**| Interval time between data points. Note that `1w` means natual week(Mon-Sun), while `7d` means every 7d since unix 0 | [optional][default to '5m']
340
340
341
341
### Return type
342
342
@@ -974,7 +974,7 @@ Name | Type | Description | Notes
974
974
975
975
List futures orders
976
976
977
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
977
+
Zero-filled order cannot be retrieved 10 minutes after order cancellation
978
978
979
979
### Example
980
980
@@ -1055,7 +1055,7 @@ Name | Type | Description | Notes
1055
1055
1056
1056
Create a futures order
1057
1057
1058
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
1058
+
Zero-filled order cannot be retrieved 10 minutes after order cancellation
1059
1059
1060
1060
### Example
1061
1061
@@ -1126,7 +1126,7 @@ Name | Type | Description | Notes
1126
1126
1127
1127
Cancel all `open` orders matched
1128
1128
1129
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
1129
+
Zero-filled order cannot be retrieved 10 minutes after order cancellation
1130
1130
1131
1131
### Example
1132
1132
@@ -1199,7 +1199,7 @@ Name | Type | Description | Notes
1199
1199
1200
1200
Get a single order
1201
1201
1202
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
1202
+
Zero-filled order cannot be retrieved 10 minutes after order cancellation
_from =1546905600# int | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
323
323
to =1546935600# int | End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time (optional)
324
324
limit =100# int | Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. (optional) (default to 100)
325
-
interval ='5m'# str | Interval time between data points (optional) (default to '5m')
325
+
interval ='5m'# str | Interval time between data points. Note that `1w` means natual week(Mon-Sun), while `7d` means every 7d since unix 0 (optional) (default to '5m')
326
326
327
327
try:
328
328
# Get futures candlesticks
@@ -343,7 +343,7 @@ Name | Type | Description | Notes
343
343
**_from** | **int**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional]
344
344
**to** | **int**| End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time | [optional]
345
345
**limit** | **int**| Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. | [optional][default to 100]
346
-
**interval** | **str**| Interval time between data points | [optional][default to '5m']
346
+
**interval** | **str**| Interval time between data points. Note that `1w` means natual week(Mon-Sun), while `7d` means every 7d since unix 0 | [optional][default to '5m']
347
347
348
348
### Return type
349
349
@@ -1388,7 +1388,7 @@ Name | Type | Description | Notes
1388
1388
[[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)
print("Gate api exception, label: %s, message: %s\n"% (ex.label, ex.message))
@@ -1437,6 +1438,7 @@ Name | Type | Description | Notes
1437
1438
**settle** | **str**| Settle currency |
1438
1439
**contract** | **str**| Futures contract |
1439
1440
**leverage** | **str**| New position leverage |
1441
+
**cross_leverage_limit** | **str**| Cross margin leverage(valid only when `leverage` is 0) | [optional]
1440
1442
1441
1443
### Return type
1442
1444
@@ -1534,7 +1536,7 @@ Name | Type | Description | Notes
1534
1536
1535
1537
List futures orders
1536
1538
1537
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
1539
+
Zero-filled order cannot be retrieved 10 minutes after order cancellation
1538
1540
1539
1541
### Example
1540
1542
@@ -1615,7 +1617,7 @@ Name | Type | Description | Notes
1615
1617
1616
1618
Create a futures order
1617
1619
1618
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
1620
+
- Creating futures orders requires `size`, which is number of contracts instead of currency amount. You can use `quanto_multiplier` in contract detail response to know how much currency 1 size contract represents - Zero-filled order cannot be retrieved 10 minutes after order cancellation. You will get a 404 not found for such orders - Set `reduce_only` to `true` can keep the position from changing side when reducing position size - In single position mode, to close a position, you need to set `size` to 0 and `close` to `true` - In dual position mode, to close one side position, you need to set `auto_size` side, `reduce_only` to true and `size` to 0
1619
1621
1620
1622
### Example
1621
1623
@@ -1686,7 +1688,7 @@ Name | Type | Description | Notes
1686
1688
1687
1689
Cancel all `open` orders matched
1688
1690
1689
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
1691
+
Zero-filled order cannot be retrieved 10 minutes after order cancellation
1690
1692
1691
1693
### Example
1692
1694
@@ -1759,7 +1761,7 @@ Name | Type | Description | Notes
1759
1761
1760
1762
Get a single order
1761
1763
1762
-
Zero-fill order cannot be retrieved for 60 seconds after cancellation
1764
+
Zero-filled order cannot be retrieved 10 minutes after order cancellation
Currency has two forms: 1. Only currency name, e.g., BTC, USDT 2. `<currency>_<chain>`, e.g., `HT_ETH` The latter one occurs when one currency has multiple chains. Currency detail contains a `chain` field whatever the form is. To retrieve all chains of one currency, you can use use all the details which has the name of the currency or name starting with `<currency>_`.
Copy file name to clipboardExpand all lines: docs/Transfer.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
9
9
**to** | **str** | Account to transfer to |
10
10
**amount** | **str** | Transfer amount |
11
11
**currency_pair** | **str** | Margin currency pair. Required if transfer from or to margin account | [optional]
12
-
**settle** | **str** | Futures settle currency. Required if `currency` is `POINT` | [optional]
12
+
**settle** | **str** | Futures settle currency. Required if transferring from or to futures account | [optional]
13
13
14
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)
:param int _from: Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified
552
552
:param int to: End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time
553
553
:param int limit: Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected.
554
-
:param str interval: Interval time between data points
554
+
:param str interval: Interval time between data points. Note that `1w` means natual week(Mon-Sun), while `7d` means every 7d since unix 0
555
555
:param _preload_content: if False, the urllib3.HTTPResponse object will
:param int _from: Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified
582
582
:param int to: End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time
583
583
:param int limit: Maximum recent data points to return. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected.
584
-
:param str interval: Interval time between data points
584
+
:param str interval: Interval time between data points. Note that `1w` means natual week(Mon-Sun), while `7d` means every 7d since unix 0
585
585
:param _return_http_data_only: response data without head status code
586
586
and headers
587
587
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -1753,7 +1753,7 @@ def update_delivery_position_risk_limit_with_http_info(self, settle, contract, r
0 commit comments