@mrgnlabs/marginfi-cli v0.6.0
Marginfi Cli
Setup
yarn global add @mrgnlabs/marginfi-cliUsage
IMPORTANT! The CLI is configured by ENV variables. To use the CLI with you specific account do
export MARGINFI_ACCOUNT=<account-address>To set your wallet path do
export WALLET=<wallet-path>Marginfi Account
Managing marginfi accounts
Create
Create a new marginfi account
mfi account createGet
Get overview of a marginfi account
mfi account getList
List marginfi accounts owned by the signer.
mfi account listDeposit
Deposit collateral into the marginfi account
mfi account deposit <amount>Example, deposit of $2
mfi account deposit 2Withdraw
Withdraw collateral from marginfi account
mfi account withdraw <amount>Example, withdraw $60
mfi account withdraw 60Mango Markets
Mango Markets Marginfi interface. CLI for now only supports activating and collateral management. Trading is supported through the SDK.
Activate
Create a new Mango account in your marginfi account.
mfi account mango activateDeposit
Deposit collateral into the Mango Markets account form the Marginfi Account.
mfi account mango deposit <amount>Withdraw
Withdraw collateral form the Mango Markets account to the Marginfi Account.
mfi account mango withdraw <amount>01 Protocol
01 Protocol Marginfi interface. CLI for now only supports activating and collateral management. Trading is supported through the SDK.
Activate
Create a new 01 account in your marginfi account.
mfi account zo activateDeposit
Deposit collateral into the 01 account form the Marginfi Account.
mfi account zo deposit <amount>Withdraw
Withdraw collateral form the 01 account to the Marginfi Account.
mfi account zo withdraw <amount>3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago