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
*FuturesApi* | [**get_price_triggered_order**](docs/FuturesApi.md#get_price_triggered_order) | **GET** /futures/{settle}/price_orders/{order_id} | Get a single order
164
165
*FuturesApi* | [**cancel_price_triggered_order**](docs/FuturesApi.md#cancel_price_triggered_order) | **DELETE** /futures/{settle}/price_orders/{order_id} | Cancel a single order
165
166
*MarginApi* | [**list_margin_currency_pairs**](docs/MarginApi.md#list_margin_currency_pairs) | **GET** /margin/currency_pairs | List all supported currency pairs supported in margin trading
167
+
*MarginApi* | [**get_margin_currency_pair**](docs/MarginApi.md#get_margin_currency_pair) | **GET** /margin/currency_pairs/{currency_pair} | Query one single margin currency pair
166
168
*MarginApi* | [**list_funding_book**](docs/MarginApi.md#list_funding_book) | **GET** /margin/funding_book | Order book of lending loans
167
169
*MarginApi* | [**list_margin_accounts**](docs/MarginApi.md#list_margin_accounts) | **GET** /margin/accounts | Margin account list
168
170
*MarginApi* | [**list_margin_account_book**](docs/MarginApi.md#list_margin_account_book) | **GET** /margin/account_book | List margin account balance change history
**open_interest** | **int** | Open interest | [optional]
11
+
12
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
limit =100# int | Maximum number of records returned in one list (optional) (default to 100)
244
244
last_id ='12345'# str | Specify list staring point using the id of last record in previous list-query results This parameter is deprecated. Use `from` and `to` instead to limit time range (optional)
245
-
_from =1546905600#float | 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)
246
-
to =1546935600#float | Specify end time in Unix seconds, default to current time (optional)
245
+
_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)
246
+
to =1546935600#int | Specify end time in Unix seconds, default to current time (optional)
247
247
248
248
try:
249
249
# Futures trading history
@@ -263,8 +263,8 @@ Name | Type | Description | Notes
263
263
**contract** | **str**| Futures contract |
264
264
**limit** | **int**| Maximum number of records returned in one list | [optional][default to 100]
265
265
**last_id** | **str**| Specify list staring point using the id of last record in previous list-query results This parameter is deprecated. Use `from` and `to` instead to limit time range | [optional]
266
-
**_from** | **float**| 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]
267
-
**to** | **float**| Specify end time in Unix seconds, default to current time | [optional]
266
+
**_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]
267
+
**to** | **int**| Specify end time in Unix seconds, default to current time | [optional]
_from =1546905600#float | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
314
-
to =1546935600#float | End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time (optional)
313
+
_from =1546905600#int | Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified (optional)
314
+
to =1546935600#int | End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time (optional)
315
315
limit =100# int | Maximum recent data points returned. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. (optional) (default to 100)
316
316
interval ='5m'# str | Interval time between data points (optional) (default to '5m')
317
317
@@ -331,8 +331,8 @@ Name | Type | Description | Notes
**_from** | **float**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional]
335
-
**to** | **float**| End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time | [optional]
334
+
**_from** | **int**| Start time of candlesticks, formatted in Unix timestamp in seconds. Default to`to - 100 * interval` if not specified | [optional]
335
+
**to** | **int**| End time of candlesticks, formatted in Unix timestamp in seconds. Default to current time | [optional]
336
336
**limit** | **int**| Maximum recent data points returned. `limit` is conflicted with `from` and `to`. If either `from` or `to` is specified, request will be rejected. | [optional][default to 100]
337
337
**interval** | **str**| Interval time between data points | [optional][default to '5m']
[**list_futures_account_book**](FuturesApi.md#list_futures_account_book) | **GET** /futures/{settle}/account_book | Query account book
17
18
[**list_positions**](FuturesApi.md#list_positions) | **GET** /futures/{settle}/positions | List all positions of a user
@@ -538,6 +539,70 @@ No authorization required
538
539
539
540
[[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)
**settle** | **str**| Settle currency | [default to 'btc']
582
+
**contract** | **str**| Futures contract |
583
+
**interval** | **str**| | [optional][default to '5m']
584
+
**limit** | **int**| | [optional][default to 30]
585
+
586
+
### Return type
587
+
588
+
[**list[ContractStat]**](ContractStat.md)
589
+
590
+
### Authorization
591
+
592
+
No authorization required
593
+
594
+
### HTTP request headers
595
+
596
+
-**Content-Type**: Not defined
597
+
-**Accept**: application/json
598
+
599
+
### HTTP response details
600
+
| Status code | Description | Response headers |
601
+
|-------------|-------------|------------------|
602
+
**200** | List retrieved | - |
603
+
604
+
[[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/MarginApi.md
+59Lines changed: 59 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.gateio.ws/api/v4*
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
7
[**list_margin_currency_pairs**](MarginApi.md#list_margin_currency_pairs) | **GET** /margin/currency_pairs | List all supported currency pairs supported in margin trading
8
+
[**get_margin_currency_pair**](MarginApi.md#get_margin_currency_pair) | **GET** /margin/currency_pairs/{currency_pair} | Query one single margin currency pair
8
9
[**list_funding_book**](MarginApi.md#list_funding_book) | **GET** /margin/funding_book | Order book of lending loans
9
10
[**list_margin_accounts**](MarginApi.md#list_margin_accounts) | **GET** /margin/accounts | Margin account list
10
11
[**list_margin_account_book**](MarginApi.md#list_margin_account_book) | **GET** /margin/account_book | List margin account balance change history
@@ -76,6 +77,64 @@ No authorization required
76
77
77
78
[[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)
**id** | **int** | Order book ID, which is updated whenever the order book is changed. Valid only when `with_id` is set to `true` | [optional]
6
7
**asks** | **list[list[str]]** | Asks order depth |
7
8
**bids** | **list[list[str]]** | Bids order depth |
Copy file name to clipboardExpand all lines: docs/SpotApi.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,7 @@ No authorization required
196
196
[[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