Integrations
Drift
Initialize User
List Positions
Deposit
- Deposits into a market
market
: Index of the spot market to deposit intoamount
: Amount to deposit
Withdraw
- Withdraws from a spot market. If withdrawal amount is higher than existing position size, it becomes a borrow.
market
: Index of the spot market to withdraw fromamount
: Amount to withdraw
Delete User
- Deletes drift user. Must close all positions first.