接口文档研读 · 永续合约

独立教程与工具 · 非 Gate 官方网站

API REFERENCE / 永续合约

Gate 永续当前仓位列表与占用:参数、响应与查询工具

查询账户当前永续仓位,用 holding 决定是否只返回实际持仓,并保留各合约的保证金和数量。

需要官方 API 鉴权固定规格 v4.106.132资料核对:2026-09-10
GET /futures/{settle}/positions

这条查询解决什么问题

未指定 limit 时文档默认返回全部当前仓位,指定 limit 后需按 offset 分页,不能把第一页当作完整账户。

这是账户数据查询文档。真实调用需要在你自己的可信环境完成官方鉴权;此页没有登录、密钥输入或账户连接功能。

查看官方英文说明

Get user position list

此操作没有额外说明。

请求参数逐项核对

字段名和数据类型保留官方拼写。必填标记来自规格;描述中的条件约束还需要一起检查。

参数与位置类型与范围官方字段说明
settlepath · 必填string枚举:btc / usdt / usd1
Perpetual futures settlement currency
holdingquery · 可选boolean
Return only real positions - true, return all - false
limitquery · 可选integer最小:1;最大:100
Maximum number of positions returned. If omitted, all current positions are returned by default; if provided, the value must be within [1,100].
offsetquery · 可选integer默认:0;最小:0
List offset, starting from 0

在本页组装查询 URL

填写参数后生成一个 GET 地址,只在浏览器本地处理。留空的可选项不会发送。请勿填写密码、API Key 或 Secret。

path · string枚举:btc / usdt / usd1
query · boolean
query · integer最小:1;最大:100
query · integer默认:0;最小:0
尚未生成 URL。

不会向 Gate 或本站发送表单内容。

工具检查必填、枚举与简单数值范围,不代替服务端校验。复合参数、时间窗口、条件必填等请对照上方原文。

响应字段怎样阅读

以下展示的是规格中的类型定义,不是现场 API 响应,也不是行情样本。嵌套结构展开至三层;数组的 [] 表示其中一个元素。

HTTP 200 · List retrieved successfully

字段路径数据类型字段说明
$array<object>
未提供字段注释
$[]object
Futures position details
$[].userinteger格式:"int64"
User ID
$[].contractstring
Futures contract
$[].sizestring
Position size
$[].hedge_statusstring枚举:partial_hedged / full_hedged
The hedging status of the position under the Delta-neutral strategy. Including: - `partial_hedged`: partially hedged - `full_hedged`: fully hedged
$[].hedged_sizestring
The hedged position size under the Delta-neutral strategy.
$[].unhedged_sizestring
The unhedged position size under the Delta-neutral strategy, calculated as `max(abs(size) - abs(hedged_size), 0)`.
$[].leveragestring
leverage for isolated margin. 0 means cross margin. For leverage of cross margin, please refer to `cross_leverage_limit`.
$[].risk_limitstring
Position risk limit
$[].leverage_maxstring
the maximum permissible leverage given to the current positon value: the higher positon value, the lower maximum permissible leverage
$[].maintenance_ratestring
The maintenance margin requirement for the risk limit at which the current position size is located.Since the maintenance margin for the position has been calculated using a tiered system, the actual maintenance margin rate required for this position is based on `average_maintenance_rate`.
$[].valuestring
Position value calculated in settlement currency
$[].marginstring
Margin
$[].entry_pricestring
Entry price
$[].liq_pricestring
Estimated liquidation price, for reference only. The actual liquidation trigger is based on the position mmr or the account maintenance margin level.
$[].mark_pricestring
Current mark price
$[].initial_marginstring
Initial margin of postions
$[].maintenance_marginstring
Maintencance margin of postions
$[].unrealised_pnlstring
Unrealized PNL
$[].realised_pnlstring
Realised PnL, the sum of all cash flows generated by this position, including settlement of closing positions, settlement of funding fees, and transaction fee expenses.
$[].pnl_pnlstring
settled pnl when closing postion
$[].pnl_fundstring
funding fees
$[].pnl_feestring
trading fees
$[].history_pnlstring
Total realized PnL from closed positions
$[].last_close_pnlstring
PNL of last position close
$[].realised_pointstring
Realized POINT PNL
$[].history_pointstring
History realized POINT PNL
$[].adl_rankinginteger
Ranking of auto deleveraging, a total of 1-5 grades, `1` is the highest, `5` is the lowest, and `6` is the special case when there is no position held or in liquidation
$[].pending_ordersinteger
Current pending order quantity
$[].close_orderobject
Current close order information, or `null` if no close order
$[].close_order.idinteger格式:"int64"
Order ID
$[].close_order.pricestring
Order price
$[].close_order.is_liqboolean
Whether the close order is from liquidation
$[].modestring枚举:single / dual_long / dual_short
Position mode, including: - `single`: One-way Mode - `dual_long`: Long position in Hedge Mode - `dual_short`: Short position in Hedge Mode
$[].cross_leverage_limitstring
leverage for cross margin
$[].update_timeinteger格式:"int64"
Last update time
$[].update_idinteger格式:"int64"
Update ID. The value increments by 1 each time the position is updated
$[].open_timeinteger格式:"int64"
First Open Time
$[].risk_limit_tablestring
Risk limit table ID
$[].average_maintenance_ratestring
Average maintenance margin rate
$[].pidinteger格式:"int64"
Sub-account position ID
$[].pos_margin_modestring
Position Margin Mode isolated - Isolated Margin, cross - Cross Margin
$[].leverstring
Indicates the current leverage of the position, applicable to both isolated and cross margin, gradually replacing the current leverage and cross_leverage_limit

来源、版本与使用说明

本站独立整理 Gate 技术资料,不代表 Gate,不提供账户、交易、充值或软件下载服务。

参数和字段改编自 Gate 官方 SDK 的 Apache 2.0 开放规格,固定版本为 v4.106.132。核对时官网文档已为 v4.106.136,后续变更须以官网为准;本页并未声称对该接口做过在线实测。

中文用途解释、字段阅读界面和本地 URL 组装器由本站整理。访问日志用于站点运维;页面没有第三方统计脚本,表单参数仅在当前页面内存中处理。