Skip to content

Commit

Permalink
update settle pnl for python
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Nov 27, 2023
1 parent 1da5eac commit 1f3b1e7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,16 @@ await driftClient.settlePNL(
);
```

```python
market_index = 0
user = drift_client.get_user()
await drift_client.settle_pnl(
user.user_public_key,
user.get_user_account(),
market_index
)
```

| Parameter | Description | Optional | Default |
| ----------- | ----------- | -------- | ------- |
| settleeUserAccountPublicKey | User address you're settling pnl for | No | |
Expand Down

0 comments on commit 1f3b1e7

Please sign in to comment.