# Query Positions Data

## 1. **Get position list**

**Function input params**

* ownerAddress: The user account address.
* assignCollections: An array of posotion Collection

**Example**

```typescript
const positionList = await sdk.Position.getPositionList(key.accAddress)
```

## 2. Get one position&#x20;

**Function input params**

* pid: The position ID.
* calculateFee: Whether to calculate the fee, default is false.
* calculateReward: Whether to calculate the reward, default is false.

**Example**

```typescript
const position = await sdk.Position.getPositionInfo(positionId)
```

## 3. Calculate position fee

Calculate the position fee for a list of position IDs.

**Function input params**

* pids: The list of position IDs.

**Example**

```typescript
const posFees = await sdk.Position.calculatePositionFee([positionId])
```

## 4. Calculate position rewards

Calculate the position rewards for a list of position IDs.

**Function input params**

* pids: The list of position IDs.

**Example**

```typescript
const posFees = await sdk.Position.calculatePositionRewards([positionId])
```
