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
{{ message }}
Repository navigation
Commit 64bdf87
Browse filesBrowse the repository at this point in the historyBrowse files
*CFDApi* | [**close_position**](docs/CFDApi.md#close_position) | **POST** /tradfi/positions/{position_id}/close | Close position
139
139
*CFDApi* | [**query_position_history_list**](docs/CFDApi.md#query_position_history_list) | **GET** /tradfi/positions/history | Query historical position list
140
140
*CrossExApi* | [**list_crossex_rule_symbols**](docs/CrossExApi.md#list_crossex_rule_symbols) | **GET** /crossex/rule/symbols | Query symbol information
*StockApi* | [**query_stock_fee_rate**](docs/StockApi.md#query_stock_fee_rate) | **GET** /stock/fee-rate | Query fee rates for Japanese and Korean stocks
229
233
*SubAccountApi* | [**list_sub_accounts**](docs/SubAccountApi.md#list_sub_accounts) | **GET** /sub_accounts | List sub-accounts
**id** | **int** | Balance record primary key ID | [optional]
7
+
**user_id** | **int** | User ID | [optional]
8
+
**change** | **str** | Cash amount change. Positive values are credits; negative values are debits. | [optional]
9
+
**balance** | **str** | Cash balance snapshot after the change | [optional]
10
+
**stock_change** | **str** | Stock quantity change, parsed from detail.amount for stock quantity records; may be an empty string for other records | [optional]
11
+
**type** | **str** | Raw record type. Common values include: - deposit: Funds transferred in. - withdraw: Funds transferred out. - fee: Trading fee. - dividend: Dividend payment. - sell: Proceeds from selling stocks. - buy: Payment for buying stocks. - award: Airdrop reward. - stock_transfer_in: Stocks transferred in. - stock_transfer_out: Stocks transferred out. | [optional]
12
+
**business** | **str** | Business identifier | [optional]
13
+
**business_id** | **int** | Related business ID | [optional]
14
+
**symbol** | **str** | Symbol | [optional]
15
+
**detail** | **str** | Raw business details as a JSON string; returned only when include_detail=true is requested | [optional]
16
+
**version** | **int** | Record version | [optional]
17
+
**time_create** | **int** | Business event time (Unix timestamp in seconds) | [optional]
18
+
**create_time** | **int** | Record creation time (Unix timestamp in seconds) | [optional]
19
+
20
+
[[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_page** | **int** | Total pages | [optional]
8
+
**list** | [**list[BalanceRecordItem]**](BalanceRecordItem.md) | Balance record details | [optional]
9
+
10
+
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**update_time_us** | **int** | Order update time as a Unix timestamp in microseconds; omitted when unavailable | [optional][readonly]
13
16
**finish_time** | **float** | Order finished time. Not returned if order is open | [optional][readonly]
17
+
**finish_time_us** | **int** | Order finish time as a Unix timestamp in microseconds; omitted if the order has not finished or the timestamp is unavailable | [optional][readonly]
14
18
**finish_as** | **str** | How the order was 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 the position was closed - reduce_out: only reduce positions by excluding hard-to-fill orders - stp: cancelled because self trade prevention | [optional][readonly]
15
19
**status** | **str** | Order status - `open`: Pending - `finished`: Completed | [optional][readonly]
[**list_crossex_rule_risk_limits**](CrossExApi.md#list_crossex_rule_risk_limits) | **GET** /crossex/rule/risk_limits | Query risk limit information
9
10
[**list_crossex_transfer_coins**](CrossExApi.md#list_crossex_transfer_coins) | **GET** /crossex/transfers/coin | Query supported transfer currencies
10
11
[**list_crossex_transfers**](CrossExApi.md#list_crossex_transfers) | **GET** /crossex/transfers | Query Fund Transfer History
@@ -104,6 +105,62 @@ No authorization required
104
105
105
106
[[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)
Query the current maximum remaining opening notional value for each futures trading pair in the LONG and SHORT directions. Only trading pairs and position sides with remaining opening capacity below the threshold are returned; omission means the remaining capacity is at least the threshold. When `available_to_open_notional` is `0`, no position can currently be opened for that trading pair and position side. Closing positions is not affected by this rule.
114
+
115
+
### Example
116
+
117
+
```python
118
+
from__future__import print_function
119
+
import gate_api
120
+
from gate_api.exceptions import ApiException, GateApiException
121
+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
122
+
# See configuration.py for a list of all supported configuration parameters.
[[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)
@@ -308,7 +365,7 @@ Name | Type | Description | Notes
308
365
309
366
Fund Transfer
310
367
311
-
Rate limit: 10 requests per 10 seconds - In cross-exchange mode, when transferring USDT, either `from` or `to` must be `SPOT`, and the other side must be `CROSSEX`. If `CROSSEX_${exchange_type}` (e.g. `CROSSEX_GATE`) is provided, it will be automatically treated as `CROSSEX`. - In isolated exchange mode, when transferring USDT, either `from` or `to` must be `CROSSEX_${exchange_type}`, and the other side must be `SPOT` or `CROSSEX_${exchange_type}`. If `CROSSEX` is provided, it will be automatically treated as `CROSSEX_GATE`. - When transferring non-USDT assets to or from CrossEx, neither `from` nor `to` can be `CROSSEX`; `CROSSEX_${exchange_type}` must be explicitly specified. - When transferring non-USDT assets, transfers between `CROSSEX_{exchange_type}` accounts are supported, for example: from = `CROSSEX_BINANCE`, to = `CROSSEX_GATE` - When either side of the transfer is `CROSSEX_KRAKEN`, only USDT is supported for now. - When either side of the transfer is `CROSSEX_HYPERLIQUID`, the other side must be `SPOT`, and only USDC is supported. - When either side of the transfer is `CROSSEX_LIGHTER`, the other side must be `SPOT`, and only USDC is supported.
368
+
Rate limit: 10 requests per 10 seconds - In cross-exchange mode, when transferring USDT, either `from` or `to` must be `SPOT`, and the other side must be `CROSSEX`. If `CROSSEX_${exchange_type}` (e.g. `CROSSEX_GATE`) is provided, it will be automatically treated as `CROSSEX`. - In isolated exchange mode, when transferring USDT, either `from` or `to` must be `CROSSEX_${exchange_type}`, and the other side must be `SPOT` or `CROSSEX_${exchange_type}`. If `CROSSEX` is provided, it will be automatically treated as `CROSSEX_GATE`. - When transferring non-USDT assets to or from CrossEx, neither `from` nor `to` can be `CROSSEX`; `CROSSEX_${exchange_type}` must be explicitly specified. - When transferring non-USDT assets, transfers between `CROSSEX_{exchange_type}` accounts are supported, for example: from = `CROSSEX_BINANCE`, to = `CROSSEX_GATE` - When either side of the transfer is `CROSSEX_KRAKEN`, only USDT is supported for now. - When either side of the transfer is `CROSSEX_DERIBIT`, only USDC is currently supported. - When either side of the transfer is `CROSSEX_HYPERLIQUID`, the other side must be `SPOT`, and only USDC is supported. - When either side of the transfer is `CROSSEX_LIGHTER`, the other side must be `SPOT`, and only USDC is supported.
**position_side** | **str** | Position side (LONG for long positions / SHORT for short positions) |
8
+
**available_to_open_notional** | **Decimal** | Current maximum remaining opening notional value for the position side; 0 means no position can currently be opened |
9
+
10
+
[[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