---
title: "GetPositionFeeInfo"
method: POST
path: "/position_service.v1.PositionService/GetPositionFeeInfo"
tags: ["Positions"]
---

# GetPositionFeeInfo

`POST /position_service.v1.PositionService/GetPositionFeeInfo`

Returns the trading fee paid and the rebate accrued so far for one
 specific position, identified by the composite key `position_id` +
 `market_id` + `address` (owner). All three must match an existing
 position, or the request fails.

## Headers

- `Connect-Protocol-Version` 1, required — Define the version of the Connect protocol. If omitted, use 1.
- `Connect-Timeout-Ms` number — Define the timeout, in ms

## Request body

- PositionServiceV1GetPositionFeeInfoRequest
  - `address` string — Wallet address that owns the position. Must match the position's actual owner, or the lookup fails.
  - `positionId` string, int64 — On-chain position identifier (same as the opening order's ID).
  - `marketId` string, int64 — Market the position belongs to.

## Response `200`

Success

- PositionServiceV1GetPositionFeeInfoResponse
  - `fees` number, double — Trading fee paid when the position was opened, in USDC, recomputed from the position's entry price and the market's fee rate. `-1` if required market configuration is unavailable.
  - `estimatedRebate` number, double — Rebate accrued to the position so far, in USDC — the same calculation as `Position.estimatedRebate`. `-1` if required market configuration is unavailable.

---

[API](https://skmtc.dev/fairground/apis/fairground-fi-api.md) · [All operations](https://skmtc.dev/fairground/apis/fairground-fi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fairground/fairground-fi-api/revisions/be66e6dc0ac0/schema)
