Skip to content

Commit

Permalink
add unrealized pnl docs for python
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Nov 28, 2023
1 parent 035640d commit 77f8000
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,11 @@ orders = user.get_open_orders()
## Get Unrealized Perp Pnl

```typescript
const pnl = await user.getUnrealizedPNL();
const pnl = user.getUnrealizedPNL();
```

```python
pnl = user.get_unrealized_pnl()
```

| Parameter | Description | Optional | Default |
Expand All @@ -955,6 +959,10 @@ orders = user.get_open_orders()
const pnl = await user.getUnrealizedFundingPNL();
```

```python
pnl = user.get_unrealized_funding_pnl()
```

| Parameter | Description | Optional | Default |
| ----------- | ----------- | -------- | ------- |
| marketIndex | Whether to only return pnl for specific market | Yes | |
Expand Down

0 comments on commit 77f8000

Please sign in to comment.