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 cc501ff
Browse filesBrowse the repository at this point in the historyBrowse files
*CrossExApi* | [**list_crossex_open_orders**](docs/CrossExApi.md#list_crossex_open_orders) | **GET** /crossex/open_orders | Query All Current Open Orders
*EarnApi* | [**place_dual_stock_order**](docs/EarnApi.md#place_dual_stock_order) | **POST** /earn/dual/stock/orders | Place a stock dual investment order
*FuturesApi* | [**cancel_price_triggered_order_list**](docs/FuturesApi.md#cancel_price_triggered_order_list) | **DELETE** /futures/{settle}/price_orders | Cancel all auto orders
443
453
*FuturesApi* | [**get_price_triggered_order**](docs/FuturesApi.md#get_price_triggered_order) | **GET** /futures/{settle}/price_orders/{order_id} | Query single auto order details
444
454
*FuturesApi* | [**cancel_price_triggered_order**](docs/FuturesApi.md#cancel_price_triggered_order) | **DELETE** /futures/{settle}/price_orders/{order_id} | Cancel single auto order
445
-
*FuturesApi* | [**update_price_triggered_order**](docs/FuturesApi.md#update_price_triggered_order) | **PUT** /futures/{settle}/price_orders/amend | Modify a Single Auto Order
455
+
*FuturesApi* | [**update_price_triggered_order**](docs/FuturesApi.md#update_price_triggered_order) | **PUT** /futures/{settle}/price_orders/amend/{order_id} | Modify a Single Auto Order
446
456
*MarginApi* | [**list_margin_accounts**](docs/MarginApi.md#list_margin_accounts) | **GET** /margin/accounts | Margin account list
Copy file name to clipboardExpand all lines: docs/BatchOrder.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
@@ -42,8 +42,8 @@ Name | Type | Description | Notes
42
42
**stp_act** | **str** | Self-Trading Prevention Action. Users can use this field to set self-trade prevetion strategies 1. After users join the `STP Group`, he can pass `stp_act` to limit the user's self-trade prevetion strategy. If `stp_act` is not passed, the default is `cn` strategy。 2. When the user does not join the `STP group`, an error will be returned when passing the `stp_act` parameter。 3. If the user did not use 'stp_act' when placing the order, 'stp_act' will return '-' - cn: Cancel newest, Cancel new orders and keep old ones - co: Cancel oldest, new ones - cb: Cancel both, Both old and new orders will be cancelled | [optional]
43
43
**finish_as** | **str** | How the order finished: - open: Pending processing - filled: Fully filled - cancelled: Cancelled by user - liquidate_cancelled: Cancelled by liquidation - small: Order size too small - depth_not_enough: Cancelled due to insufficient order book depth - trader_not_enough: Cancelled due to insufficient counterparty liquidity - ioc: Not filled immediately because time-in-force is IOC - poc: Post-only requirement not met because time-in-force is set to poc (maker-only); rejected after being detected as taker - fok: Not fully filled immediately because time-in-force is FOK - stp: Cancelled due to self-trade prevention - price_protect_cancelled: Cancelled due to price protection - unknown: Unknown | [optional][readonly]
44
44
**slippage** | **str** | Maximum supported slippage ratio for Spot Market Order Placement, calculated based on the latest market price at the time of order placement as the benchmark (Example: 0.03 means 3%) | [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)
List trading pair information. Stock and ETF symbols use `{market}_{business_type}_{security_code}_USDT`, for example `US_STOCK_AAPL_USDT`, `HK_STOCK_00700_USDT`, or `US_ETF_SPY_USDT`.
**symbols** | **str**| List of trading pairs, comma-separated. Example: BINANCE_FUTURE_ADA_USDT,OKX_FUTURE_ADA_USDT | [optional]
85
+
**symbols** | **str**| Comma-separated list of trading pairsExample: BINANCE_FUTURE_ADA_USDT,OKX_FUTURE_ADA_USDT,US_STOCK_AAPL_USDT | [optional]
85
86
86
87
### Return type
87
88
@@ -376,7 +377,7 @@ Name | Type | Description | Notes
376
377
377
378
Create order
378
379
379
-
Rate Limit: 100 requests per 10 seconds, maximum 1,000 open orders per user
380
+
Rate limit: 100 requests per 10 seconds; each user may have up to 1,000 open orders. Stocks and ETFs have an additional per-user limit of one request per second and support only cross-exchange account mode and GTC. Stock and ETF orders must use qty; quote_qty is not supported. Stock and ETF order prices use the listing market currency: USD for US markets, HKD for Hong Kong, KRW for South Korea, and JPY for Japan.
380
381
381
382
### Example
382
383
@@ -1753,6 +1754,77 @@ Name | Type | Description | Notes
1753
1754
1754
1755
[[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)
List stock and ETF positions. Rate limit: 200 requests per 10 seconds. Prices, position values, and unrealized profit and loss use the listing market currency: USD for US markets, HKD for Hong Kong, KRW for South Korea, and JPY for Japan.
1763
+
1764
+
### Example
1765
+
1766
+
* Api Key Authentication (apiv4):
1767
+
```python
1768
+
from__future__import print_function
1769
+
import gate_api
1770
+
from gate_api.exceptions import ApiException, GateApiException
1771
+
# Defining the host is optional and defaults to https://api.gateio.ws/api/v4
1772
+
# See configuration.py for a list of all supported configuration parameters.
1773
+
# The client must configure the authentication and authorization parameters
1774
+
# in accordance with the API server security policy.
1775
+
# Examples for each auth method are provided below, use the example that
1776
+
# satisfies your auth use case.
1777
+
1778
+
# Configure APIv4 key authorization
1779
+
configuration = gate_api.Configuration(
1780
+
host="https://api.gateio.ws/api/v4",
1781
+
key="YOU_API_KEY",
1782
+
secret="YOUR_API_SECRET"
1783
+
)
1784
+
1785
+
api_client = gate_api.ApiClient(configuration)
1786
+
# Create an instance of the API class
1787
+
api_instance = gate_api.CrossExApi(api_client)
1788
+
symbol ='US_STOCK_AAPL_USDT'# str | Stock or ETF trading pair (optional)
**200** | Project-Id-Version: GateApiTools 1.0.0 Report-Msgid-Bugs-To: EMAIL@ADDRESS POT-Creation-Date: 2025-11-12 18:14+0800 PO-Revision-Date: 2019-01-02 17:30+0800 Last-Translator: FULL NAME <EMAIL@ADDRESS> Language: en Language-Team: en <L@li.org> Plural-Forms: nplurals=2; plural=(n !=1) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Generated-By: Babel 2.8.0 | - |
1825
+
1826
+
[[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/CrossexAccountBookRecord.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
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
**id** | **str** | Account Change Record ID |
7
7
**user_id** | **str** | User ID |
8
8
**business_id** | **str** | Business ID. Its meaning varies by `statement_type`. TRANSACTION: order ID TRADING_FEE: order ID LIQUIDATION_FEE: liquidation order ID FUNDING_FEE: position ID and funding fee settlement time For other types, it is a system-generated processing ID with no business meaning |
9
-
**statement_type** | **str** | Account book entry type `TRANSACTION`: trade`TRADING_FEE`: trading fee `FUNDING_FEE`: futures funding fee `LIQUIDATION_FEE`: liquidation fee `TRANSFER_IN`: transfer in `TRANSFER_OUT`: transfer out `BANKRUPT_COMPENSATION`: bankruptcy compensation `AUTO_REPAY`: automatic repayment of margin position liabilities`INTEREST_ISOLATED`: interest entry`ACCOUNT_MODE_CHANGE`: balance change caused by an account mode switch`KRAKEN_CONVERSION`: conversion of other margin currencies to cover a negative KRAKEN_USD balance `OTHER`: other |
9
+
**statement_type** | **str** | Account book transaction type `TRANSACTION`: Trade`TRADING_FEE`: Trading fee `FUNDING_FEE`: Futures funding fee `LIQUIDATION_FEE`: Liquidation fee `TRANSFER_IN`: Incoming transfer `TRANSFER_OUT`: Outgoing transfer `BANKRUPT_COMPENSATION`: Bankruptcy compensation `AUTO_REPAY`: Automatic margin liability repayment`INTEREST_ISOLATED`: Interest transaction`ACCOUNT_MODE_CHANGE`: Funds movement on account mode change`KRAKEN_CONVERSION`: Conversion of other collateral currencies to cover a negative KRAKEN_USD balance `SECURITY_DIVIDEND`: Stock or ETF dividend payout `SECURITY_CORPORATE_ACTION`: Stock or ETF split or reverse split `OTHER`: Other |
0 commit comments