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
Copy file name to clipboardExpand all lines: docs/MarginCurrencyPair.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
**min_base_amount** | **str** | Minimum base currency to loan, `null` means no limit | [optional]
11
11
**min_quote_amount** | **str** | Minimum quote currency to loan, `null` means no limit | [optional]
12
12
**max_quote_amount** | **str** | Maximum borrowable amount for quote currency. Base currency limit is calculated by quote maximum and market price. `null` means no limit | [optional]
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**verified** | **str** | Whether to pass the verification 0-unverified, 1-verified | [optional]
12
+
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)
**account** | **str** | Trading account type. Portfolio margin account must set to `cross_margin`- normal: spot trading - margin: margin trading - cross_margin: cross_margin trading | [default to 'normal']
11
11
**time_in_force** | **str** | time_in_force - gtc: GoodTillCancelled - ioc: ImmediateOrCancelled, taker only | [optional][default to 'gtc']
12
12
13
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)
[[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
+
**borrowed_net** | **str** | Total borrowed value in USDT * borrowed factor | [optional]
12
+
**net** | **str** | Total net assets in USDT | [optional]
13
+
**leverage** | **str** | Position leverage | [optional]
14
+
**interest** | **str** | Total unpaid interests in USDT, i.e., the sum of all currencies'`interest*price*discount` | [optional]
15
+
**risk** | **str** | Risk rate. When it belows 110%, liquidation will be triggered. Calculation formula: `total / (borrowed+interest)` | [optional]
16
+
**total_initial_margin** | **str** | Total initial margin | [optional]
17
+
**total_margin_balance** | **str** | Total margin balance | [optional]
18
+
**total_maintenance_margin** | **str** | Total maintenance margin | [optional]
19
+
**total_initial_margin_rate** | **str** | Total initial margin rate | [optional]
20
+
**total_maintenance_margin_rate** | **str** | Total maintenance margin rate | [optional]
21
+
**total_available_margin** | **str** | Total available margin | [optional]
22
+
23
+
[[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)
[**get_trade_fee**](WalletApi.md#get_trade_fee) | **GET** /wallet/fee | Retrieve personal trading fee
19
21
[**get_total_balance**](WalletApi.md#get_total_balance) | **GET** /wallet/total_balance | Retrieve user's total balances
20
22
@@ -299,7 +301,7 @@ Name | Type | Description | Notes
299
301
[[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)
300
302
301
303
# **transfer**
302
-
> transfer(transfer)
304
+
> TransactionID transfer(transfer)
303
305
304
306
Transfer between trading accounts
305
307
@@ -333,7 +335,8 @@ transfer = gate_api.Transfer() # Transfer |
333
335
334
336
try:
335
337
# Transfer between trading accounts
336
-
api_instance.transfer(transfer)
338
+
api_response = api_instance.transfer(transfer)
339
+
print(api_response)
337
340
except GateApiException as ex:
338
341
print("Gate api exception, label: %s, message: %s\n"% (ex.label, ex.message))
339
342
except ApiException as e:
@@ -348,7 +351,7 @@ Name | Type | Description | Notes
348
351
349
352
### Return type
350
353
351
-
void (empty response body)
354
+
[**TransactionID**](TransactionID.md)
352
355
353
356
### Authorization
354
357
@@ -357,12 +360,12 @@ void (empty response body)
357
360
### HTTP request headers
358
361
359
362
-**Content-Type**: application/json
360
-
-**Accept**: Not defined
363
+
-**Accept**: application/json
361
364
362
365
### HTTP response details
363
366
| Status code | Description | Response headers |
364
367
|-------------|-------------|------------------|
365
-
**204** | Balance transferred | - |
368
+
**200** | Balance transferred | - |
366
369
367
370
[[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)
368
371
@@ -781,6 +784,144 @@ Name | Type | Description | Notes
781
784
782
785
[[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)
[[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)
**chain** | **str**| Chain name | [optional][default to '']
903
+
**limit** | **str**| Maximum number returned, 100 at most | [optional][default to '50']
904
+
905
+
### Return type
906
+
907
+
[**list[SavedAddress]**](SavedAddress.md)
908
+
909
+
### Authorization
910
+
911
+
[apiv4](../README.md#apiv4)
912
+
913
+
### HTTP request headers
914
+
915
+
-**Content-Type**: Not defined
916
+
-**Accept**: application/json
917
+
918
+
### HTTP response details
919
+
| Status code | Description | Response headers |
920
+
|-------------|-------------|------------------|
921
+
**200** | List retrieved | - |
922
+
923
+
[[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)
0 commit comments