Initialize User

glam-cli drift init

List Positions

glam-cli drift list 

Deposit

  • Deposits into a market
  • market: Index of the spot market to deposit into
  • amount: Amount to deposit
glam-cli drift deposit <market> <amount>

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 from
  • amount: Amount to withdraw
glam-cli drift withdraw <market> <amount>

Delete User

  • Deletes drift user. Must close all positions first.
glam-cli drift delete