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
*UnifiedApi* | [**get_user_leverage_currency_config**](docs/UnifiedApi.md#get_user_leverage_currency_config) | **GET** /unified/leverage/user_currency_config | Maximum and minimum currency leverage that can be set
**create_time** | **float** | Created time of the contract | [optional]
42
42
**funding_cap_ratio** | **str** | The factor for the maximum of the funding rate. Maximum of funding rate = (1/market maximum leverage - maintenance margin rate) * funding_cap_ratio | [optional]
**delisting_time** | **int** | Timestamp when contract enters reduce-only state | [optional]
46
+
**delisted_time** | **int** | Contract delisting time | [optional]
45
47
46
48
[[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/ContractStat.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
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
16
16
**open_interest_usd** | **float** | Total open interest volume (quote currency) | [optional]
17
17
**top_lsr_account** | **float** | Top trader long/short account ratio | [optional]
18
18
**top_lsr_size** | **float** | Top trader long/short position ratio | [optional]
19
+
**mark_price** | **float** | Mark price | [optional]
19
20
20
21
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
last_id ='12345'# str | Use the ID of the last record in the previous list as the starting point for the next list.This field is no longer supported. For new requests, please use the fromand tofields to specify the time rang (optional)
248
248
_from =1546905600# int | Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned. (optional)
249
249
to =1546935600# int | Specify end time in Unix seconds, default to current time. (optional)
250
250
@@ -265,7 +265,7 @@ Name | Type | Description | Notes
265
265
**settle** | **str**| Settle currency |
266
266
**contract** | **str**| Futures contract |
267
267
**limit** | **int**| Maximum number of records returned in a single list | [optional][default to 100]
**last_id** | **str**| Use the ID of the last record in the previous list as the starting point for the next list.This field is no longer supported. For new requests, please use the fromand tofields to specify the time rang | [optional]
269
269
**_from** | **int**| Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items. If items between `from` and `to` are more than `limit`, only `limit` number will be returned. | [optional]
270
270
**to** | **int**| Specify end time in Unix seconds, default to current time. | [optional]
_from =1546905600# int | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
317
317
to =1546935600# int | Specify the end time of the K-line chart, defaults to current time if not specified, note that the time format is Unix timestamp with second precision (optional)
318
318
limit =100# int | Maximum number of recent data points to return. `limit` conflicts with `from` and `to`. If either `from` or `to` is specified, request will be rejected. (optional) (default to 100)
319
-
interval ='5m'# str | Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeTime interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeweek, 7d time is aligned with Unix initial time (optional) (default to '5m')
319
+
interval ='5m'# str | Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time (optional) (default to '5m')
320
320
321
321
try:
322
322
# Futures market K-line chart
@@ -337,7 +337,7 @@ Name | Type | Description | Notes
337
337
**_from** | **int**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional]
338
338
**to** | **int**| Specify the end time of the K-line chart, defaults to current time if not specified, note that the time format is Unix timestamp with second precision | [optional]
339
339
**limit** | **int**| Maximum number of recent data points to return. `limit` conflicts with `from` and `to`. If either `from` or `to` is specified, request will be rejected. | [optional][default to 100]
340
-
**interval** | **str**| Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeTime interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial timeweek, 7d time is aligned with Unix initial time | [optional][default to '5m']
340
+
**interval** | **str**| Time interval between data points, note that 1w represents a natural week, 7d time is aligned with Unix initial time | [optional][default to '5m']
limit =100# int | Maximum number of records returned in a single list (optional) (default to 100)
580
580
_from =1547706332# int | Start timestamp Specify start time, time format is Unix timestamp. If not specified, it defaults to (the data start time of the time range actually returned by to and limit) (optional)
581
581
to =1547706332# int | Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp (optional)
582
-
type='dnw'# str | Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate (optional)
582
+
type='dnw'# str | Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates (optional)
583
583
584
584
try:
585
585
# Query futures account change history
@@ -599,7 +599,7 @@ Name | Type | Description | Notes
599
599
**limit** | **int**| Maximum number of records returned in a single list | [optional][default to 100]
600
600
**_from** | **int**| Start timestamp Specify start time, time format is Unix timestamp. If not specified, it defaults to (the data start time of the time range actually returned by to and limit) | [optional]
601
601
**to** | **int**| Termination Timestamp Specify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp | [optional]
602
-
**type** | **str**| Changing Type: - dnw: Deposit & Withdraw - pnl: Profit & Loss by reducing position - fee: Trading fee - refr: Referrer rebate - fund: Funding - point_dnw: point_fee: POINT Trading fee - point_refr: POINT Referrer rebate | [optional]
602
+
**type** | **str**| Change types: - dnw: Deposit and withdrawal - pnl: Profit and loss from position reduction - fee: Trading fees - refr: Referrer rebates - fund: Funding fees - point_dnw: Point card deposit and withdrawal - point_fee: Point card trading fees - point_refr: Point card referrer rebates | [optional]
603
603
604
604
### Return type
605
605
@@ -1006,7 +1006,7 @@ status = 'open' # str | Query order list based on status
limit =100# int | Maximum number of records returned in a single list (optional) (default to 100)
1008
1008
offset =0# int | List offset, starting from 0 (optional) (default to 0)
1009
-
last_id ='12345'# str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional)
1009
+
last_id ='12345'# str | Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used (optional)
1010
1010
count_total =0# int | Whether to return total number matched, defaults to 0 (no return) (optional) (default to 0)
1011
1011
1012
1012
try:
@@ -1028,7 +1028,7 @@ Name | Type | Description | Notes
**limit** | **int**| Maximum number of records returned in a single list | [optional][default to 100]
1030
1030
**offset** | **int**| List offset, starting from 0 | [optional][default to 0]
1031
-
**last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional]
1031
+
**last_id** | **str**| Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used | [optional]
1032
1032
**count_total** | **int**| Whether to return total number matched, defaults to 0 (no return) | [optional][default to 0]
order =12345# int | Futures order ID, return related data only if specified (optional)
1370
1370
limit =100# int | Maximum number of records returned in a single list (optional) (default to 100)
1371
1371
offset =0# int | List offset, starting from 0 (optional) (default to 0)
1372
-
last_id ='12345'# str | Specify the currency name to query in batches, and support up to 100 pass parameters at a time (optional)
1372
+
last_id ='12345'# str | Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used (optional)
1373
1373
count_total =0# int | Whether to return total number matched, defaults to 0 (no return) (optional) (default to 0)
1374
1374
1375
1375
try:
@@ -1391,7 +1391,7 @@ Name | Type | Description | Notes
1391
1391
**order** | **int**| Futures order ID, return related data only if specified | [optional]
1392
1392
**limit** | **int**| Maximum number of records returned in a single list | [optional][default to 100]
1393
1393
**offset** | **int**| List offset, starting from 0 | [optional][default to 0]
1394
-
**last_id** | **str**| Specify the currency name to query in batches, and support up to 100 pass parameters at a time | [optional]
1394
+
**last_id** | **str**| Use the ID of the last record in the previous list as the starting point for the next list Operations based on custom IDs can only be checked when orders are pending. After orders are completed (filled/cancelled), they can be checked within 1 hour after completion. After expiration, only order IDs can be used | [optional]
1395
1395
**count_total** | **int**| Whether to return total number matched, defaults to 0 (no return) | [optional][default to 0]
1396
1396
1397
1397
### Return type
@@ -1636,7 +1636,7 @@ Name | Type | Description | Notes
1636
1636
1637
1637
Query risk limit tiers
1638
1638
1639
-
When the 'contract' parameter is not passed, the default is to query the risk limits for the top 100 markets.'Limit' and 'offset' correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect empty.
1639
+
When the 'contract' parameter is not passed, the default is to query the risk limits for the top 100 markets.'Limit' and 'offset' correspond to pagination queries at the market level, not to the length of the returned array. This only takes effect when the contract parameter is empty.
Copy file name to clipboardExpand all lines: docs/EarnApi.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -548,7 +548,7 @@ void (empty response body)
548
548
[[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)
549
549
550
550
# **find_coin**
551
-
> list[str] find_coin(find_coin)
551
+
> object find_coin(find_coin)
552
552
553
553
Staking coins
554
554
@@ -596,7 +596,7 @@ Name | Type | Description | Notes
[[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