Skip to content

Commit

Permalink
update docs/index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbigz committed Nov 17, 2023
1 parent bb67c7a commit 971ac53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Note: requires Python >= 3.10.
## Key Components

- `DriftClient` / `drift_client.py`: Used to interact with the protocol (deposit, withdraw, trade, lp, etc.)
- `User` / `drift_user.py`: Used to fetch data from the protocol and view user metrics (leverage, free collateral, etc.)
- `DriftUser` / `drift_user.py`: Used to fetch data from the protocol and view user metrics (leverage, free collateral, etc.)
- `accounts.py`: Used to retrieve specific on-chain accounts (State, PerpMarket, SpotMarket, etc.)
- `addresses.py`: Used to derive on-chain addresses of the accounts (publickey of the sol-market)

Expand Down Expand Up @@ -48,7 +48,7 @@ connection = AsyncClient(config.default_http)
provider = Provider(connection, wallet)

drift_client = DriftClient.from_config(config, provider)
drift_user = User(drift_client)
drift_user = DriftUser(drift_client)

# open a 10 SOL long position
sig = await drift_client.open_position(
Expand Down

0 comments on commit 971ac53

Please sign in to comment.